joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e8af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x505b30
mov ebx, ecx
mov esi, edx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4e8b51
js 0x4e8bbd
movzx eax, byte [0x5dc8e8]
mov ecx, edi
mov edx, 1
call fcn.00420530
test eax, eax
jne 0x4e8b56
mov ecx, 1
mov edx, edi
call fcn.00535cf0
mov eax, 1
push edi
push esi
mov dword [ebp - 0x20], eax
push eax
call fcn.00527800
add esp, 0xc
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x28]
jne 0x4e8b87
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
call fcn.004e8bf0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
inc edx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edi
mov byte [eax + ecx*4 + 0x10], 0
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004206e0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 8], 0
je 0x4e8bea
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.00420590
add esp, 0xc
pop ebp
ret

Function at 0x4e8d90
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x5db0bc]
test eax, eax
je 0x4e8e75
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4e8dc1
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4e8e6a
mov eax, dword [0x5db0bc]
test eax, eax
je 0x4e8e84
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4e8e47
mov esi, eax
test eax, eax
jne 0x4e8e27
movzx eax, byte [0x5dc8e8]
mov ecx, 0x20
mov edx, 8
call fcn.00420530
test eax, eax
je 0x4e8e9f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x5db0bc
mov esi, eax
mov eax, dword [0x5db0bc]
test eax, eax
je 0x4e8e93
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x4e8e4b
movaps xmm0, xmmword [esp]
jmp 0x4e8e59
xor esi, esi
jmp 0x4e8e6d
lea ecx, [esp + 0x10]
call fcn.004e35b0
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x5db0bc
call fcn.00538720
jmp 0x4e8da8
mov ecx, 0x5db0bc
call fcn.00538720
jmp 0x4e8dcf
mov ecx, 0x5db0bc
call fcn.00538720
jmp 0x4e8e1f
mov ecx, 8
mov edx, 0x20
call fcn.00535cf0
int3
Function at 0x4ec39c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
lea eax, [esi + 0x38]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x505dd0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004ec288
pop eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
mov dword [esi + 0x18], eax
add ecx, 8
mov eax, dword [esi + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x40], 1
mov dword [esi + 8], ecx
mov dword [esi + 0x14], eax
call fcn.004ec4cc
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
movsd xmm0, qword [eax + 0x10]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
and dword [esi + 0x40], 0
mov ecx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x18]
push dword [esi + 0x1c]
call fcn.004ec2d1
pop eax
pop ecx
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f1fff
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x4f2001
test al, 1
je 0x4f2018
test al, 2
jne 0x4f202a
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x5926a8
call fcn.005360b0
push 0x25
pop edx
mov ecx, 0x5926b8
push 0x5926e0
call fcn.005360b0
Function at 0x4f2f75
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
mov edi, edx
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x2c]
mov dword [ecx - 4], esp
or dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x506100
mov dword [ebp - 0x40], edi
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
xor edx, edx
lea ecx, [edi + 0xc]
cmp dword [edi + 0xc], 0xffffffff
cmove ecx, edx
mov edx, 0x7fffffff
cmp eax, edx
mov dword [ebp - 0x44], ecx
cmovb edx, eax
mov dword [ebp - 0x50], edx
mov edx, dword [edi + 8]
mov ecx, esi
push dword [ebp + 8]
call fcn.004f2c4f
pop eax
mov edx, dword [ebp - 0x2c]
cmp edx, 2
je 0x4f3119
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
test edx, edx
jne 0x4f3121
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov edx, 0x590dd8
mov dword [ebp - 0x54], eax
mov ecx, esi
call fcn.00452010
push 0
push dword [ebp - 0x50]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4f3027
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x34], 4
jmp 0x4f30cf
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
and word [ebp - 0x33], 0
mov byte [ebp - 0x31], al
mov dword [ebp - 0x30], esi
call fcn.0043d0d4
cmp al, 0xd
jne 0x4f30cf
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f30c4
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], esi
mov edx, dword [ecx]
lock inc dword [eax]
jle 0x4f314c
mov edi, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
add edx, 8
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.00468408
add esp, 0xc
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], eax
push 4
pop ecx
call fcn.004cc65b
cmp byte [ebp - 0x2c], 4
mov edi, dword [ebp - 0x40]
je 0x4f30cf
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
cmp bl, 4
je 0x4f30cf
mov esi, dword [ebp - 0x28]
or dword [ebp - 0x10], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
call fcn.004cc65b
jmp 0x4f30e0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 4
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp bl, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ebx
je 0x4f312b
lea ecx, [ebp - 0x4c]
call fcn.004eada0
cmp al, 0xd
jne 0x4f3133
mov ecx, edi
lea edx, [ebp - 0x58]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 2
call fcn.004f293f
or dword [ebp - 0x10], 0xffffffff
lea esi, [ebp - 0x2c]
push esi
call fcn.004e94b6
pop eax
mov edi, dword [ebp - 0x40]
jmp 0x4f2fc9
mov eax, dword [ebp - 0x20]
mov byte [eax], 5
jmp 0x4f313b
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4f313b
mov eax, dword [ebp - 0x20]
mov byte [eax], 4
jmp 0x4f3138
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x4f7cef
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
lea edi, [ebp - 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [edi - 4], esp
or dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0x506270
mov eax, dword fs:[0]
mov ecx, esi
mov dword [edi], eax
mov dword fs:[0], edi
call fcn.004f1655
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
lea ecx, [edx + 8]
mov dword [ebp - 0x20], edx
add edx, 0x78
test eax, eax
mov dword [ebp - 0x24], eax
cmove ecx, edx
and dword [edi + 8], 0
mov edx, esi
call fcn.004edc48
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.004ec0fd
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x38], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x44], 0
and dword [ebp - 0x48], 0
and dword [ebp - 0x4c], 0
or dword [ebp - 0x10], 0xffffffff
movsd xmm0, qword [ebp - 0x50]
movsd xmm1, qword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], esi
movsd qword [ecx + 0x14], xmm0
movsd xmm0, qword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
movsd qword [ecx + 0x24], xmm1
mov dword [ecx + 0x2c], eax
movsd qword [ecx + 0x1c], xmm0
or dword [ecx + 0x34], 0xffffffff
or dword [ecx + 0x30], 0xffffffff
and dword [ecx + 0x38], 0
and dword [ecx + 0x40], 0
xor eax, eax
mov byte [ecx + 0x44], al
mov byte [ecx + 0x48], al
lea ecx, [ebp - 0x34]
call fcn.0046bc80
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ff811
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp + 8]
mov esi, edx
mov edx, dword [ebp + 0x10]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x506310
mov dword [ebp - 0x20], esi
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 8], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
je 0x4ff87b
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
and dword [ebp - 0x10], 0
push eax
call fcn.004ff9f3
pop ecx
mov dword [ebp - 0x24], eax
mov eax, edx
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
jmp 0x4ff884
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x18]
and dword [ebp - 0x10], 0
sub edx, ecx
mov ecx, esi
mov dword [ebp - 0x28], eax
add edx, eax
call fcn.0046a4d9
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, edx
add eax, dword [ebp - 0x28]
push eax
call fcn.0046a4a7
pop eax
push 0x23
pop edx
mov ecx, dword [ebp - 0x20]
call fcn.004f8b4c
lea esi, [ebp - 0x34]
mov ecx, esi
call fcn.004f91a9
mov edx, dword [esi]
mov ecx, dword [ebp - 0x20]
push dword [esi + 4]
call fcn.004ffa04
pop eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
movsd xmm0, qword [edx]
mov edx, dword [ebp + 8]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [edx + 0x3c]
mov dword [ecx + 0x18], eax
mov bl, byte [edx + 0x44]
mov edi, dword [edx]
mov esi, dword [edx + 4]
movsd qword [ecx + 0x3c], xmm0
movsd xmm0, qword [edx + 0x34]
mov byte [ecx + 0x44], bl
movsd qword [ecx + 0x34], xmm0
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov edi, dword [ebp - 0x28]
mov esi, dword [edx + 0x1c]
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x1c], esi
mov edi, dword [edx + 0x20]
mov esi, dword [edx + 0x24]
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], esi
mov edi, dword [edx + 0x28]
mov esi, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x30], edx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5065b8
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x1c]
and esi, 0x1f
push edi
mov edi, dword [esp + 0x1c]
cmp esi, 8
jb 0x50664c
mov eax, esi
shr eax, 3
mov dword [esp + 0x20], eax
cmp dword [esp + 0x24], 1
jne 0x5065fe
push 8
lea eax, [esp + 0x18]
push edi
push eax
call fcn.00527800
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
jmp 0x506603
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push ecx
push eax
push 0
push 0
call fcn.00506784
push 0x1b
xor edx, ebx
xor eax, ebp
push edx
push eax
add edi, 8
call fcn.0052b42c
add esp, 0x1c
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.00526e90
mov ebp, eax
mov ebx, edx
add ebp, 0xc2b2ae63
adc ebx, 0x85ebca77
sub esi, 8
sub dword [esp + 0x20], 1
jne 0x5065dd
cmp esi, 4
jb 0x5066bf
cmp dword [esp + 0x24], 1
jne 0x50666e
push 4
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00527800
mov ecx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x506670
mov ecx, dword [edi]
mov eax, 0x9e3779b1
mov dword [esp + 0x20], ecx
mul ecx
push 0x17
mov ecx, eax
add edi, 4
mov eax, 0x85ebca87
mul dword [esp + 0x24]
add ecx, edx
xor eax, ebp
xor ecx, ebx
push ecx
push eax
call fcn.0052b42c
add esp, 0xc
push 0xc2b2ae3d
push 0x27d4eb4f
push edx
push eax
call fcn.00526e90
mov ebp, eax
mov ebx, edx
add ebp, 0x9e3779f9
adc ebx, 0x165667b1
sub esi, 4
test esi, esi
je 0x506703
movzx eax, byte [edi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00526e90
xor ebx, edx
xor ebp, eax
push 0xb
push ebx
push ebp
inc edi
call fcn.0052b42c
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.00526e90
mov ebp, eax
mov ebx, edx
sub esi, 1
jne 0x5066c3
push 0xc2b2ae3d
xor ecx, ecx
mov esi, ebx
push 0x27d4eb4f
xor ecx, ebx
shr esi, 1
push ecx
xor esi, ebp
push esi
call fcn.00526e90
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00526e90
xor esi, esi
mov ecx, edx
pop edi
xor edx, esi
xor eax, ecx
pop esi
pop ebp
pop ebx
ret
Function at 0x514582
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x5dbef0]
xor eax, esp
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
push ebx
mov ebx, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x80]
add ecx, ebp
push esi
push edi
mov edi, dword [esp + 0x98]
lea esi, [edx + ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ebx
mov ebx, ebp
mov dword [esp + 0x38], ebp
push edx
lea ebp, [eax + edi]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
lea esi, [eax + 0x1004]
mov dword [esp + 0x30], esi
lea edx, [eax + 0x1004]
mov esi, dword [eax + 0x2810]
lea ecx, [eax + 0x1808]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
push esi
push edx
push ecx
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00514a48
add esp, 0x20
cmp eax, 0xffffff88
ja 0x514768
push 0xc
add esi, eax
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00527d80
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
sub eax, esi
mov dword [esp + 0x70], 1
push eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.0051392d
add esp, 0x18
cmp eax, 0xfffffff8
ja 0x514765
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.005138ff
push dword [esp + 0x38]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.005138ff
push dword [esp + 0x48]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.005138ff
lea eax, [esp + 0x60]
push eax
call fcn.00513cc3
mov edx, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 2
ja 0x514726
test edx, edx
jle 0x514722
lea eax, [esp + 0x3c]
dec edx
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x14], edx
push eax
call fcn.0051439c
pop ecx
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push dword [esp + 0x38]
lea esi, [esp + 0x78]
push ebp
push eax
sub esp, 0xc
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0051477b
add esp, 0x20
cmp eax, 0xffffff88
ja 0x514768
add ebx, eax
lea eax, [esp + 0x3c]
push eax
call fcn.00513cc3
mov edx, dword [esp + 0x14]
pop ecx
cmp eax, 2
jbe 0x5146ca
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
call fcn.00509bdd
pop ecx
test eax, eax
je 0x514765
test edx, edx
js 0x514765
sub ebp, edi
lea esi, [ebx + ebp]
cmp esi, dword [esp + 0x1c]
jbe 0x514748
push 0xffffffffffffffba
jmp 0x514767
test ebp, ebp
je 0x51475d
cmp ebx, edi
je 0x51475b
push ebp
push edi
push ebx
call fcn.00527800
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x38]
mov eax, ebx
jmp 0x514768
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00526e79
add esp, 0x70
ret
Function at 0x518c7c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [0x5dbef0]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, dword [esp + 0x80]
mov ebx, edi
add eax, edi
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x2820]
lea edx, [ecx + esi]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x2824]
add eax, edi
mov dword [esp + 0x28], edx
push ecx
mov dword [esp + 0x1c], eax
lea edx, [ebp + 0x1004]
mov eax, dword [ebp + 0x2810]
push esi
mov dword [esp + 0x34], eax
lea eax, [ebp + 0x1808]
push edx
push eax
push ebp
lea eax, [esp + 0x38]
mov dword [esp + 0x24], edi
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00517751
add esp, 0x20
cmp eax, 0xffffff88
ja 0x518e4c
push 0xc
add esi, eax
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.00527d80
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
push 4
pop eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x34]
sub eax, esi
push eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.005150a2
add esp, 0x18
cmp eax, 0xffffff88
ja 0x518e49
push ebp
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00515776
lea eax, [ebp + 0x1004]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00515776
lea eax, [ebp + 0x1808]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00515776
lea eax, [esp + 0x58]
push eax
call fcn.00513cc3
mov ebp, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 2
jg 0x518e00
test ebp, ebp
jle 0x518dfc
lea eax, [esp + 0x34]
dec ebp
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00518911
pop ecx
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push dword [esp + 0x30]
lea esi, [esp + 0x70]
push dword [esp + 0x20]
push eax
sub esp, 0xc
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00518e5f
add esp, 0x20
cmp eax, 0xffffff88
ja 0x518e4c
add ebx, eax
lea eax, [esp + 0x34]
push eax
call fcn.00513cc3
pop ecx
cmp eax, 2
jle 0x518da9
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x34]
push eax
call fcn.00509bdd
pop ecx
test eax, eax
je 0x518e49
test ebp, ebp
js 0x518e49
mov eax, dword [esp + 0x18]
sub eax, edi
cmp edi, dword [esp + 0x18]
ja 0x518e49
lea esi, [eax + ebx]
cmp esi, dword [esp + 0x1c]
jbe 0x518e2c
push 0xffffffffffffffba
jmp 0x518e4b
test eax, eax
je 0x518e41
cmp ebx, edi
je 0x518e3f
push eax
push edi
push ebx
call fcn.00527800
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x30]
mov eax, ebx
jmp 0x518e4c
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00526e79
add esp, 0x68
ret
Function at 0x5274c9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x527508
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x527508
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x527508
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x527508
cmp dword [ecx + 0x74], 0xe
jbe 0x527508
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x535770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x53579d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53579d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x538720
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x5387a1
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x5387dc
cmp dword [esp + 4], 0
je 0x5387c3
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x5387fa
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x5dc87c]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x5dc87c], esi
jne 0x538780
mov byte [0x5dc878], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x5387d3
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x53883b
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x5387c7
mov edi, dword [esp]
jmp 0x5387d3
mov edi, dword [esi]
jmp 0x5387d2
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x58f9c8
push 0x58fa28
push eax
call fcn.00538870
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x58fa18
mov dword [esp + 8], 0x58f9e0
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x5b8dd0
mov dword [esp + 0x14], 0
call fcn.00535f60
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x58f9e0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x5b8dd0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.005388a0
int3

Function at 0x538d00
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.00420840
add esp, 4
mov eax, dword [esp + 4]
cmp eax, 0x80000000
jne 0x538d73
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x538d95
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x538da9
mov ecx, dword [0x58e8c8]
mov edx, dword [0x58e8cc]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x538dbe
mov ecx, dword [esp + 8]
jmp 0x538db4
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x538dbe
mov ecx, edi
mov edx, 1
call fcn.00420590
add esp, 0x34
pop esi
pop edi
pop ebx
ret