joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481820
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d1340
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CPen.0
mov dword [esp + 0x48], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], vtable.CBrush.0
mov byte [esp + 0x48], 1
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x24]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea eax, [esp + 0x20]
push eax
call fcn.004dc3c4
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0xac]
mov dword [esp + 0x34], ecx
mov edi, eax
mov eax, dword [esi + 0xa8]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x1c]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
call fcn.004dc3c4
mov ecx, dword [esi + 4]
mov ebx, eax
mov eax, dword [esi + 0x10]
push eax
call fcn.004db927
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x20]
push eax
call edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x90]
mov ecx, dword [eax + 8]
add ecx, 0xffffffff
js 0x4819b2
cmp ecx, dword [eax + 8]
jge 0x4819b2
mov eax, dword [eax + 4]
mov edx, dword [eax + ecx*8]
lea eax, [eax + ecx*8]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push edx
lea edx, [esp + 0x30]
push edx
call fcn.004dbd2e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 4]
push eax
push edx
call fcn.004dba1e
mov ecx, dword [esi + 4]
push ebx
call fcn.004dc3c4
mov ecx, dword [esi + 4]
push edi
call fcn.004dc3c4
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push eax
call fcn.004db927
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov byte [esp + 0x48], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.004dc33f
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004dc33f
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004d633a
int3
Function at 0x4826f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], vtable.CPen.0
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CBrush.0
mov byte [esp + 0x48], 1
mov ecx, dword [edi + 4]
push 0xd
call fcn.004db955
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
mov ebp, eax
mov eax, dword [edi + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x2c]
call fcn.004dc2ec
mov ecx, dword [edi + 4]
lea eax, [esp + 0x28]
push eax
call fcn.004dc3c4
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0xac]
mov dword [esp + 0x34], ecx
mov ebx, eax
mov eax, dword [edi + 0xa8]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x34], eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x24]
call fcn.004dc2ec
lea esi, [esp + 0x20]
call fcn.00483c90
mov ecx, dword [edi + 4]
mov edx, esi
push edx
call fcn.004dc3c4
mov ecx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi + 0x10]
push eax
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x20]
push eax
call edx
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2c]
push ecx
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [edi + 4]
push esi
call fcn.004dc3c4
mov ecx, dword [edi + 4]
push ebx
call fcn.004dc3c4
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [edi + 4]
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x1c]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov ecx, dword [edi + 4]
push ebp
call fcn.004db955
mov byte [esp + 0x48], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004dc33f
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], esi
call fcn.004dc33f
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482db0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd4c0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], vtable.CPen.0
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], vtable.CBrush.0
mov byte [esp + 0x40], 1
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x24]
call fcn.004dc2ec
mov ecx, dword [edi + 4]
lea eax, [esp + 0x20]
push eax
call fcn.004dc3c4
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0xac]
mov dword [esp + 0x2c], ecx
mov ebp, eax
mov eax, dword [edi + 0xa8]
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push eax
lea ecx, [esp + 0x1c]
call fcn.004dc2ec
lea esi, [esp + 0x18]
call fcn.00483c90
mov ecx, dword [edi + 4]
mov edx, esi
push edx
call fcn.004dc3c4
mov ecx, dword [edi + 4]
mov esi, eax
mov eax, dword [edi + 0x10]
push eax
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
mov ebx, eax
mov eax, dword [edi + 0x20]
push eax
call edx
mov ecx, dword [edi + 0x30]
mov edx, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x2c]
push ecx
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [edi + 0x24]
push eax
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.GDI32.dll_Rectangle]
mov ecx, dword [edi + 4]
push esi
call fcn.004dc3c4
mov ecx, dword [edi + 4]
push ebp
call fcn.004dc3c4
mov ecx, dword [edi + 4]
push ebx
call fcn.004db927
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov ecx, dword [edi + 4]
push 7
call fcn.004db955
mov byte [esp + 0x40], 0
mov esi, vtable.CGdiObject.0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], esi
call fcn.004dc33f
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], esi
call fcn.004dc33f
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4834f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5cc03d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CUnit1.0
xor edi, edi
mov dword [esi + 0x94], vtable.CArray_class_CPoint__class_CPoint_.0
mov dword [esi + 0x98], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x9c], edi
mov dword [esp + 0x14], edi
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov eax, 0xff00
push 0x14
mov dword [esi + 0x10], 2
mov dword [esi + 0x8c], edi
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], 5
mov dword [esi + 0xc], 1
mov dword [esi + 0x20], 0x10101
mov dword [esi + 8], edi
mov dword [esi + 0x14], 0xa
mov dword [esi + 0xc8], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
call fcn.004d3c8b
add esp, 4
cmp eax, edi
je 0x4835ce
mov dword [eax], vtable.CArray_class_CPoint__class_CPoint_.0
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov dword [esi + 0x90], eax
jmp 0x4835d4
mov dword [esi + 0x90], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4839b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd488
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CPen.0
push 0xff0000
push 1
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x18]
call fcn.004dc2ec
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004dc3c4
mov ecx, dword [esi + 4]
push 0xa
mov edi, eax
call fcn.004db955
mov ecx, dword [esi + 4]
push 2
mov ebx, eax
call fcn.004db927
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004dbd2e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.004dba1e
mov ecx, dword [esi + 4]
push edi
call fcn.004dc3c4
mov ecx, dword [esi + 4]
push ebx
call fcn.004db955
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push edx
call fcn.004db927
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.004dc33f
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x484670
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 0x34], 0
jne 0x4846f4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
mov dword [esi], 0xffffffff
mov dword [esi + 0x10], 0
call edi
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xffffffff
call fcn.00405270
xor eax, eax
push eax
mov dword [esi + 0x20], eax
push eax
mov dword [esi + 0x24], eax
push 1
mov dword [esi + 0x30], eax
push eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call edi
test eax, eax
mov dword [esi + 0x30], eax
pop edi
je 0x4846f4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
call fcn.00484700
cmp dword [esi], 0xffffffff
je 0x4846f0
push 0
push 0
push esi
push 0x484aa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 0x34], 1
pop esi
ret 8

Function at 0x484980
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
push eax
push eax
push 1
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x484a78
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x484a77
mov ecx, dword [ebx + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
push 0
lea edx, [esp + 0x30]
push edx
push 1
mov dword [esp + 0x38], ecx
call edi
cmp eax, 0x102
jne 0x484a76
mov edx, dword [ebx]
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x484a6c
call ebp
push 0x19
mov esi, eax
push 0
lea eax, [esp + 0x30]
push eax
push 1
call edi
cmp eax, 0x102
jne 0x484a68
cmp esi, 0x3e4
jne 0x484a4f
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
add dword [eax], ecx
mov ecx, dword [ebx]
push 1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x484a25
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x484a76
add dword [esi], eax
pop edi
pop ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp dword [esi], ecx
pop esi
sete al
add esp, 0x18
ret 0xc
Function at 0x484c70
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5cf362
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push fcn.00484da0
push fcn.00404ce0
push 0x32
push 4
lea ebp, [esi + 0x3c]
push ebp
call fcn.004f50c9
mov dword [esp + 0x18], 0
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x484cd0
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x140], eax
mov byte [esp + 0x18], 1
lea edi, [esi + 0x144]
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x484d07
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x18], 2
lea ecx, [esi + 0x128]
mov dword [esi + 0x104], ebp
mov dword [esi + 0x108], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ecx
mov dword [esi + 0x38], 1
mov dword [esi + 0x10c], 0
call ebp
lea edx, [esi + 0x110]
push edx
call ebp
mov ecx, edi
mov dword [0x648ff4], esi
call fcn.00405270
call fcn.004851a0
call fcn.00484e70
push 0
push 0
push esi
push 0x485140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x160], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x484e70
Capabilities:
Link many functions at runtime

Disassembly:
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x34], eax
jne 0x484e94
push 0x10
push eax
push str.NO_hinstmail
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push eax
call edi
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x34]
push str.MAPIResolveName
push eax
call edi
mov ecx, dword [esi + 0x34]
push str.MAPILogon
push ecx
mov dword [esi + 0x14c], eax
call edi
mov edx, dword [esi + 0x34]
push str.MAPILogoff
push edx
mov dword [esi + 0x150], eax
call edi
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0x34]
push str.MAPIFreeBuffer
push eax
call edi
mov ecx, dword [esi + 0x150]
push esi
push 0
push 0
push 0
push 0
push 0
mov dword [esi + 0x158], eax
call ecx
neg eax
sbb eax, eax
add eax, 1
pop edi
ret
Function at 0x487850
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x1c
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x14], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x487882
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f2719
add esp, 0x1c
ret
push edi
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xf61a
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esp + 8], 0xffffffff
mov word [esp + 6], ax
jne 0x4878ce
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4878ec
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004ff920
add esp, 0xc
mov eax, dword [esi]
push 0x10
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4878fe
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f2719
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov eax, 1
call fcn.004f2719
add esp, 0x1c
ret

Function at 0x487920
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5d1df0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi]
mov esi, dword [0x648fc4]
xor eax, eax
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x18
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x487a5a
cmp eax, ebx
je 0x487a5a
mov eax, dword [esp + 0x24]
cmp eax, 0x2714
je 0x4879f4
cmp eax, 0x2711
je 0x487a5a
cmp eax, 0x2712
je 0x487a5a
cmp eax, 0x2718
je 0x487a5a
cmp eax, 0x2717
jne 0x4879c7
mov dword [esi + 0xcc], ebx
jmp 0x487a5a
cmp eax, 0x271a
jne 0x4879e6
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x20]
mov dword [esi + 0xcc], eax
mov word [esi + 0xd0], cx
jmp 0x487a5a
cmp eax, 0x271b
je 0x487a5a
cmp eax, 0x271d
jne 0x487a00
mov edx, dword [esp + 0x18]
mov dword [esi + 0xc8], edx
jmp 0x487a5a
cmp eax, 0x271e
jne 0x487a5a
lea ecx, [esp + 0x10]
mov dword [esi + 0xc8], ebx
call fcn.00404ce0
push 0x6e5
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x40], ebx
call fcn.00422af0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00404f90
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00484da0
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
call fcn.004d5d86
lea ecx, [esp + 0x10]
call fcn.00484da0
mov edx, dword [edi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x487a80
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
push edi
push 0
mov edi, eax
mov edx, dword [edi]
xor eax, eax
push 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x24], 0x2719
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_send]
call fcn.00487920
xor eax, eax
pop edi
add esp, 0x1c
ret 4
Function at 0x487fc0
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5d1d30
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [0x648fc0]
test eax, eax
mov edi, dword [0x648fc4]
jne 0x488020
push 0x8490
call fcn.004d3c8b
add esp, 4
test eax, eax
je 0x488019
mov esi, eax
call fcn.0044f4c0
jmp 0x48801b
xor eax, eax
mov dword [0x648fc0], eax
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov word [esp + 0x1a], 0x2716
mov word [esp + 0x18], 0x28
mov dword [esp + 0x20], 0xfed8d0e6
mov eax, 3
movzx ecx, byte [esp + eax + 0x14]
add dword [esp + 0x14], ecx
add eax, 1
cmp eax, 0x28
jb 0x488073
push 0xf61b
mov word [esp + 0x40], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3e], ax
mov eax, dword [edi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
jne 0x488185
mov eax, dword [edi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x48816d
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4880de
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x573
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x64], 0
call fcn.00422af0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.00404f90
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push 0
push 0
push esi
call fcn.004d5d86
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4881a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4881a2
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004ff920
add esp, 0xc
mov ecx, dword [esi + 0x8488]
push 0x10
lea edx, [esp + 0x40]
push edx
push 0
push 0x28
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f2719
add esp, 0x54
ret 4