joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ed40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x11c]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x118
push 0
push eax
mov dword [ebp - 0x240], esi
call fcn.004ef230
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x49edab
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
mov dword [edi], ecx
mov dword [ebx], edx
mov dword [esi], eax
cmp ecx, 6
jb 0x49ee35
cmp edx, 2
jb 0x49ee35
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x49ee35
push 0x118
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004ef230
add esp, 0xc
mov dword [ebp - 0x23c], 0x11c
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
jne 0x49ee35
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x240]
mov dword [edi], eax
mov eax, dword [ebp - 0x234]
mov dword [ebx], eax
mov eax, dword [ebp - 0x230]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c8c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d773d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x640844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004c8db0
cmp byte [esi + 0x86], 0
jne 0x4c8cfb
push 0x10
call fcn.004ece2f
add esp, 4
test eax, eax
je 0x4c8cb6
mov dword [eax], 0x4c8f40
mov dword [eax + 4], 0
mov dword [eax + 8], esi
jmp 0x4c8cb8
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x452be0
push 0
push 0
call fcn.004f8f45
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4c8d0d
cmp dword [esi + 0x94], 0
jne 0x4c8d1b
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x90], ecx
mov dword [esi + 0x94], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x14], 0
call fcn.004d835f
call fcn.004f8dad
int3

Function at 0x4cb8b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d773d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x640844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.004cbda0
mov ecx, esi
call fcn.004cba70
cmp byte [esi + 0x10e], 0
je 0x4cb902
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x10
call fcn.004ece2f
add esp, 4
test eax, eax
je 0x4cb922
mov dword [eax], 0x4ce610
mov dword [eax + 4], 0
mov dword [eax + 8], esi
jmp 0x4cb924
xor eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x452be0
push 0
push 0
call fcn.004f8f45
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x4cb979
cmp dword [esi + 0x114], 0
jne 0x4cb987
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x114], eax
xor eax, eax
mov dword [esi + 0x110], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [ebp - 0x14], 0
call fcn.004d835f
call fcn.004f8dad
int3
Function at 0x4d3410
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x800
push 0
push eax
call fcn.004ef230
push 0x5e555c
push edi
call fcn.004faa21
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4d3486
push edi
push str.cant_open_file:
push 0x648198
call fcn.004518f0
add esp, 8
push eax
call fcn.004cf4f0
push eax
call fcn.004cf860
add esp, 0xc
lea eax, [esi + 2]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 4
push esi
push 0x800
lea eax, [ebp - 0x804]
push 1
push eax
call fcn.004fadcb
add esp, 0x10
mov dword [ebp - 0x808], eax
test eax, eax
jne 0x4d34e6
push edi
push str.cant_read_file:
push 0x648198
call fcn.004518f0
add esp, 8
push eax
call fcn.004cf4f0
push eax
call fcn.004cf860
push esi
call fcn.004f7b75
add esp, 0x10
mov eax, 3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
call fcn.004f83fd
add esp, 0xc
test eax, eax
je 0x4d3536
push edi
push str.cant_seek_file:
push 0x648198
call fcn.004518f0
add esp, 8
push eax
call fcn.004cf4f0
push eax
call fcn.004cf860
push esi
call fcn.004f7b75
add esp, 0x10
mov eax, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 4
movaps xmm1, xmmword [0x5e58d0]
xor eax, eax
nop
movups xmm0, xmmword [ebp + eax*4 - 0x804]
pxor xmm0, xmm1
movups xmmword [ebp + eax*4 - 0x804], xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x7f4]
pxor xmm0, xmm1
movups xmmword [ebp + eax*4 - 0x7f4], xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x7e4]
pxor xmm0, xmm1
movups xmmword [ebp + eax*4 - 0x7e4], xmm0
movups xmm0, xmmword [ebp + eax*4 - 0x7d4]
pxor xmm0, xmm1
movups xmmword [ebp + eax*4 - 0x7d4], xmm0
add eax, 0x10
cmp eax, 0x200
jb 0x4d3540
push esi
push dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push 1
push eax
call fcn.004f8637
add esp, 0x10
mov dword [ebp - 0x80c], eax
cmp eax, dword [ebp - 0x808]
je 0x4d3646
push edi
push str.cant_write_file:
push 0x648198
call fcn.004518f0
add esp, 8
push eax
call fcn.004cf4f0
push eax
call fcn.004cf860
add esp, 0xc
push dword [ebp - 0x80c]
push str._was_updated_just:
push dword [ebp - 0x808]
push str.need_to_update_first:
push 0x648198
call fcn.004518f0
add esp, 8
mov ecx, eax
call fcn.004cfe30
push eax
call fcn.004518f0
add esp, 8
mov ecx, eax
call fcn.004cfe30
push eax
call fcn.004cf860
push esi
call fcn.004f7b75
add esp, 8
mov eax, 5
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.004f7b75
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret 4
Function at 0x4d45c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d930b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x640844]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [ebp - 4], 0
mov dword [esi], 0
call fcn.004c4e30
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x3d0], 0
mov dword [esi + 0x3d4], 0
test ecx, ecx
je 0x4d4627
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x3d0], eax
mov dword [esi + 0x3d4], ecx
push 0x420
mov byte [ebp - 4], 2
call fcn.004ece2f
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4d476e
mov edi, dword [esi + 0x3d4]
test edi, edi
je 0x4d466c
lock inc dword [edi + 4]
mov edi, dword [esi + 0x3d4]
mov eax, dword [esi + 0x3d0]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
lea eax, [esi + 4]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebx + 4]
mov dword [ebx], vtable.AsyncOfferInstall::AsyncOfferInstallImpl.0
call fcn.004c4e30
xorps xmm0, xmm0
mov dword [ebx + 0x3d0], 0
movq qword [ebx + 0x3d8], xmm0
lea eax, [ebx + 0x3e0]
push 0x102
push eax
call fcn.004d8036
mov dword [ebx + 0x410], 0
mov dword [ebx + 0x414], 0
lea eax, [ebx + 0x418]
mov byte [ebp - 4], 8
push eax
call fcn.0048fd60
push 8
mov byte [ebp - 4], 9
call fcn.004ece2f
add esp, 0x10
test eax, eax
je 0x4d46f5
mov dword [eax], 0x4d49a0
mov dword [eax + 4], ebx
jmp 0x4d46f7
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
push ecx
push 0
push eax
push 0x44a5e0
push 0
push 0
call fcn.004f8f45
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x4d47b5
cmp dword [ebx + 0x3dc], 0
jne 0x4d47b0
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebx + 0x3d8], ecx
mov dword [ebx + 0x3dc], eax
test edi, edi
je 0x4d4770
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x4d4770
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x4d4770
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x4d4770
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov dword [esi], ebx
test edi, edi
je 0x4d479a
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x4d479a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x4d479a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004f8dad
push 6
mov dword [ebp - 0x18], 0
call fcn.004d835f
int3
Function at 0x4d61b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea esi, [edi + 0x14]
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [eax], ecx
cmp dword [edi + 4], 0
je 0x4d6227
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [edi + 0xc]
je 0x4d6216
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d6216
push 0xfffffffffffffffe
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi + 4]
test eax, eax
je 0x4d6227
push eax
call esi
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
test eax, eax
je 0x4d6238
push eax
call esi
mov dword [edi + 8], 0
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4d6249
push eax
call esi
mov dword [edi + 0x28], 0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4d625a
push eax
call esi
mov dword [edi + 0x20], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4d626b
push eax
call esi
mov dword [edi + 0x24], 0
mov dword [edi + 0xc], 0
pop edi
pop esi
pop ebp
ret 4

Function at 0x4d6280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
push esi
mov dword [ebp - 0x14], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
movlpd qword [ebp - 0x28], xmm0
or dword [ebp - 0x28], 0x100
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push dword [ebp + 8]
movups xmmword [ebp - 0x10], xmm0
mov dword [ebp - 0x20], 0
push dword [ebp + 0xc]
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4d6303
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
mov dword [esi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4d68f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0
push eax
push 0
mov ebx, ecx
or esi, 0xffffffff
push 0
push 0
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x4d6a11
nop word [eax + eax]
mov edi, dword [ebp - 0x108]
test edi, edi
je 0x4d6a63
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004ef230
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
cmp edi, 0xfe
push 0
push eax
mov eax, 0xfe
cmova edi, eax
lea eax, [ebp - 0x104]
push edi
push eax
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6a11
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x4d6a11
mov word [ebp + eax - 0x104], 0
cmp esi, 0xffffffff
jne 0x4d6a4c
cmp eax, 4
jb 0x4d69d3
cmp byte [ebp - 0x103], 0
jne 0x4d6a37
cmp byte [ebp - 0x101], 0
jne 0x4d6a37
mov esi, 1
lea eax, [ebp - 0x104]
push eax
push 0x5e5fa8
call fcn.0043c3d0
add esp, 8
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0x108]
push 0
push eax
push 0
push 0
push 0
push dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x4d6940
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4d6a79
cmp eax, 0xe8
je 0x4d6a79
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
xor esi, esi
push eax
push 0x5e0fa8
call fcn.00438280
jmp 0x4d69e4
test esi, esi
jne 0x4d69d3
lea eax, [ebp - 0x104]
push eax
push 0x5e0fa8
call fcn.00438280
jmp 0x4d69e4
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret

Function at 0x50a1bb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00509e6c

Function at 0x50a1c6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00509ff6

Function at 0x510b80
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005106d3
Function at 0x5202a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x640844]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x52036b
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.0053b100
add esp, 0xc
test eax, eax
jne 0x52036b
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.0053b100
add esp, 0xc
test eax, eax
jne 0x52036b
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5202f4
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.0053b0d0
add esp, 0xc
test eax, eax
je 0x520328
sub eax, esi
push eax
push 0x2e
push esi
call fcn.0053b0d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x52032a
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x520356
mov al, byte [esi]
push eax
call fcn.0052e310
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x520338
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004ed0cc
add esp, 0x18
ret

Function at 0x520f50
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x6412c4]
cmp eax, 0xffffffff
jne 0x520f92
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x520f78
xor eax, eax
test eax, eax
mov dword [0x6412c4], eax
setg al
ret
push eax
push 0
mov dword [0x6412c4], 1
call fcn.0052b690
mov eax, dword [0x6412c4]
add esp, 8
test eax, eax
setg al
ret

Function at 0x520fa0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2d0], 2
jne 0x520ff5
mov eax, dword [0x6412c4]
cmp eax, 0xffffffff
jne 0x520fef
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x520fd5
xor eax, eax
test eax, eax
mov dword [0x6412c4], eax
setg al
ret
push eax
push 0
mov dword [0x6412c4], 1
call fcn.0052b690
mov eax, dword [0x6412c4]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret
Function at 0x52aa30
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x600], 0
je 0x52aa74
push esi
push 1
push edi
call fcn.0051c120
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0051c120
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov edx, dword [esp + 0xc]
mov ecx, edx
sub ecx, 0
je 0x52aa89
sub ecx, 1
je 0x52aa89
sub ecx, 1
jne 0x52aaba
push dword [edi + 0x590]
lea eax, [edx*2 + 0x5f2f38]
push 1
add eax, edx
push 2
push eax
call fcn.004f8637
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004f8637
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x52b1c0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x640844]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x1c4]
cmp edx, ecx
push esi
sete al
mov esi, 0x1e4
push edi
lea eax, [eax*4 + 0x1c0]
mov eax, dword [eax + ebx]
mov dword [esp + 0x10], eax
mov eax, 0x1f4
cmove esi, eax
mov eax, dword [ebx + 0x2c8]
add esi, ebx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x52b2ce
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1d4]
cmp dword [eax + ebx], 0x52ad80
jne 0x52b2ce
cmp dword [esi], 0
je 0x52b258
test edi, edi
je 0x52b2ce
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [esp + 0x20]
call fcn.0052df00
add esp, 0x14
cmp eax, 0xffffffff
je 0x52b2ce
test al, 1
je 0x52b2ce
mov ecx, dword [esi]
test ecx, ecx
jne 0x52b2ab
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6412b0]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x52b2c7
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x52b2ce
add dword [esi + 8], eax
jmp 0x52b2ce
mov dword [esi + 4], 0
push 0
push dword [esp + 0xb0]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
cmp edi, 0xffffffff
jne 0x52b337
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x52b308
mov dword [ebp], 0
lea eax, [edi + 0x52]
jmp 0x52b33c
push 0x80
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00552980
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.0052aac0
mov eax, dword [ebx]
add esp, 0x18
mov dword [eax + 0xcb4], esi
mov eax, 0x37
jmp 0x52b339
xor eax, eax
mov dword [ebp], edi
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ed0cc
add esp, 0x8c
ret
Function at 0x52b750
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
test byte [eax + 0x210], 1
je 0x52b76d
push eax
call fcn.00524430
add esp, 4
test eax, eax
jne 0x52b78c
xor al, al
ret
mov eax, dword [eax + 0x1c0]
cmp eax, 0xffffffff
je 0x52b76a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x52b76a
mov al, 1
ret
Function at 0x52d4b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x52d4ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x5f33b8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x5f33c8
push esi
call fcn.00516bf0
add esp, 8
test eax, eax
je 0x52d512
test ebp, ebp
je 0x52d503
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x52d538
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x52d538
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x52d5ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d555
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x6412b0]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x52d5e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x52d5e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d587
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52d5a0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x52d5b0
test ebp, ebp
je 0x52d5dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x6412b4]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x6412b4]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x5329e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
test dword [eax + 0xa9c], 0x1000000
je 0x5329fb
mov dword [esp + 4], ecx
jmp fcn.00555920
mov dword [esp + 4], ecx
jmp fcn.005208c0