joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x631ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov ecx, dword [ebp - 0x20]
push 0x20
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [esi + 4]
lea edi, [esi + 0x2c]
mov ecx, edi
call fcn.00408e20
mov ecx, esi
lea eax, [esi + 0x24]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, edi
call fcn.0040c050
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1ec]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x24]
mov ecx, esi
mov byte [ebp - 4], 1
mov edx, dword [eax]
neg ecx
push 0
sbb ecx, ecx
lea eax, [esi + 0x28]
and ecx, eax
push edi
push ecx
push 0
push ecx
mov eax, esp
lea ecx, [ebp - 0x168]
mov dword [eax], edx
call fcn.0041eb10
mov ebx, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1ec]
lea ecx, [ebp - 0x1e8]
cmp eax, ecx
je 0x40f57a
push eax
call fcn.005e0510
add esp, 4
test ebx, ebx
jne 0x40f599
push 0x10
push 0x6b4e00
push 0x6b4e10
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
mov ecx, edi
call fcn.0040b530
mov edx, esi
lea eax, [esi + 0x20]
neg edx
mov ecx, edi
sbb edx, edx
and edx, eax
push edx
call fcn.0040bf60
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x40f5ce
push eax
call fcn.005e0510
add esp, 4
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x40f5e1
push eax
call fcn.005e0510
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41c850
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x109c], 0
je 0x41c8bc
cmp dword [ebp + 8], 0x100
jne 0x41c8ac
cmp word [ebp + 0xc], 0xd
jne 0x41c8ac
cmp byte [esi + 0x10a2], 0
je 0x41c88e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x41c8ac
cmp byte [esi + 0x10a3], 0
jne 0x41c8ac
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x41c8a5
push ecx
push 0
push 0
push 0x6b5688
push esi
call fcn.0040c3b0
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x109c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x43bee0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x43bf4d
cmp dword [esi + 0x10], 0
je 0x43bf4d
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.005bdc30
mov ebx, esp
test ebx, ebx
je 0x43bf4d
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1b8
call fcn.0040d920
mov ecx, dword [esi + 0x10]
push ecx
push 0
push 0
mov eax, dword [ecx]
push 0x6b5698
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0040c3b0
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44b8b0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x6ce8d4]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp eax, 0x4e
jne 0x44b903
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push eax
push dword [edi + 4]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 8
jne 0x44b9fc
push 0
push 0x6bad1c
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44b98f
xorps xmm0, xmm0
lea eax, [esp + 0x14]
push eax
movaps xmmword [esp + 0x14], xmm0
movaps xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x20
push eax
push 0
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x1c]
cmp eax, 0x1010003
je 0x44b977
cmp eax, 0x2010003
jne 0x44b9e7
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 8]
cmp eax, dword [esp + 0x10]
jl 0x44b9c4
cmp eax, dword [esp + 0x18]
jg 0x44b9c4
cmp eax, dword [esp + 0x14]
jl 0x44b9c4
cmp eax, dword [esp + 0x1c]
jle 0x44b9e7
push ecx
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push 8
call fcn.0044ba90
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x101
jne 0x44b8df
cmp esi, 0x2e
je 0x44ba39
cmp esi, 8
je 0x44ba39
cmp esi, 0x1b
jne 0x44b8df
push dword [ebp + 0x10]
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x14dc], 3
jmp 0x44ba62
push dword [ebp + 0x10]
push esi
push 0x101
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x14dc], 2
mov ecx, dword [edi + 0x10]
call fcn.0044bba0
push 0
push 0
push 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0xc
Function at 0x460010
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x633660
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
movzx eax, word [ebp + 8]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0x63d610
push eax
push esi
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x1b4], esi
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1ac], eax
test eax, eax
je 0x460226
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x460226
push dword [ebp - 0x1ac]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1a4], eax
cmp dword [ecx + 0x80], eax
je 0x4600f1
push 0x100
lea eax, [ebp - 0x138]
push esi
push eax
call fcn.005d7990
mov eax, dword [ebp - 0x1a8]
push dword [eax + 0x80]
lea eax, [ebp - 0x138]
push dword [ebp - 0x1a4]
push str.Get_File_size__u___u_
push eax
call fcn.0045ff70
add esp, 0x1c
jmp 0x460226
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1ac], eax
cmp eax, 0xffffffff
je 0x46013d
push 0
lea ecx, [ebp - 0x1a4]
push ecx
push dword [ebp - 0x1a4]
push dword [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x1ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1a0]
mov byte [ebp - 0x18], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.00459a30
movzx eax, byte [ebp - 0x139]
add esp, 8
push eax
movzx eax, byte [ebp - 0x13a]
push eax
movzx eax, byte [ebp - 0x13b]
push eax
movzx eax, byte [ebp - 0x13c]
push eax
movzx eax, byte [ebp - 0x13d]
push eax
movzx eax, byte [ebp - 0x13e]
push eax
movzx eax, byte [ebp - 0x13f]
push eax
movzx eax, byte [ebp - 0x140]
push eax
movzx eax, byte [ebp - 0x141]
push eax
movzx eax, byte [ebp - 0x142]
push eax
movzx eax, byte [ebp - 0x143]
push eax
movzx eax, byte [ebp - 0x144]
push eax
movzx eax, byte [ebp - 0x145]
push eax
movzx eax, byte [ebp - 0x146]
push eax
movzx eax, byte [ebp - 0x147]
push eax
movzx eax, byte [ebp - 0x148]
push eax
push 0x63cba0
lea eax, [ebp - 0x38]
push 0x21
push eax
call fcn.00451590
mov eax, dword [ebp - 0x1a8]
add eax, 0x84
push 0x21
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.005e5bd9
add esp, 0x58
test eax, eax
je 0x460213
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x460226
mov esi, 1
jmp 0x460226
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4713e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0xb42], 0
je 0x471463
cmp dword [edi + 0x600], 0
je 0x47142d
push esi
push 1
push edi
call fcn.004640c0
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004640c0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x471463
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x63e968
push 2
push eax
call fcn.005e5122
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005e5122
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4717e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov ecx, dword [ebx + eax*4 + 0x420]
mov edi, dword [ebp + 0x10]
push eax
push ebx
mov dword [ebp - 0x108], ecx
call fcn.00471c40
add esp, 8
test eax, eax
je 0x471837
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x4718ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x471884
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0049c5b0
push eax
push 0x63e98c
push dword [ebx]
call fcn.00471470
mov eax, dword [ebx]
add esp, 0x18
mov ecx, dword [ebp - 0x108]
mov dword [eax + 0xd9c], ecx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
Function at 0x471c40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x568]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x471cff
cmp dword [ebx + ecx*4 + 0x438], 0x4716f0
jne 0x471cff
cmp dword [esi], 0
je 0x471c8f
test edi, edi
je 0x471cff
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0047e6b0
add esp, 0x14
cmp eax, 0xffffffff
je 0x471cff
test al, 1
je 0x471cff
cmp dword [esi], 0
jne 0x471ce6
mov eax, dword [ebx]
mov eax, dword [eax + 0x91c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6ca040]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x471cd5
pop edi
pop esi
mov eax, 0x1b
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x471cff
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x474], 0
je 0x471eb0
push eax
call fcn.0046bf90
add esp, 4
test eax, eax
jne 0x471ed2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x471eac
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x471ed2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x4720b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.005d7990
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x47213e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.0049c5b0
push eax
push esi
push 0x63eb2c
push dword [ebx]
call fcn.00471470
add esp, 0x1c
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x3d4]
push eax
lea eax, [ebx + 0x3a4]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.00471d10
add esp, 0x10
test al, al
jne 0x47219a
push edi
call fcn.005e4466
mov esi, eax
call fcn.005e4466
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [esi]
call fcn.0049c5b0
push eax
push dword [edi]
push 0x63ec08
push dword [ebx]
call fcn.00471470
add esp, 0x1c
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
Function at 0x473740
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0xb4f], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x47379d
push edi
push 0x63ea28
push esi
call fcn.00471530
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
push dword [esi + 0xae8]
mov dword [ebp - 0x10], 1
call fcn.004739b0
push dword [esi + 0xaec]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004739b0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x47380d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push 0x63ea50
push esi
call fcn.00471530
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005bcf27
mov esp, ebp
pop ebp
ret

Function at 0x473820
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x108], 1
mov esi, dword [eax]
lea eax, [ebp - 0x108]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x473884
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0049c5b0
push eax
push 0x63ecdc
push esi
call fcn.00471530
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005bcf27
mov esp, ebp
pop ebp
ret

Function at 0x473990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004739c0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.005f480b
Function at 0x475970
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x570], 2
jne 0x475988
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00475910
mov al, 1
pop ebp
ret

Function at 0x475b10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x475b31
cmp dword [esi + 0x80], 0
je 0x475b31
push 2
push 3
push esi
call fcn.004750c0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004754d0
add esp, 4
test esi, esi
je 0x475b54
cmp dword [esi + 0x80], 0
je 0x475b54
push 3
push esi
call fcn.00475100
add esp, 8
pop esi
pop ebp
ret
Function at 0x483ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6d720d], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x160], ebx
jne 0x483cd6
call fcn.00487230
test al, al
je 0x483ce7
mov byte [0x6d720d], 1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x9f8]
test eax, eax
je 0x483d08
push 0x400
push eax
call fcn.004b62e0
add esp, 8
call fcn.00487230
test al, al
jne 0x483cd6
push esi
push edi
nop word [eax + eax]
mov esi, 2
mov dword [ebp - 0x150], 4
lea eax, [ebp - 0x44]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x14c], eax
nop
lea eax, [ebp - 0x190]
push eax
call fcn.00475140
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x180], xmm0
movups xmmword [ebp - 0x170], xmm0
call fcn.0047e7b0
movups xmm1, xmmword [ebp - 0x180]
add esp, 0xc
lea ecx, [esi - 1]
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push 0
push ecx
call fcn.005bda10
imul esi, dword [ebp - 0x168]
mov ebx, eax
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x154], edx
push eax
mov dword [ebp - 0x158], esi
call fcn.00475140
mov eax, dword [eax + 8]
cdq
mov esi, eax
mov edi, edx
lea eax, [ebp - 0x1b0]
push eax
call fcn.00475140
mov edx, dword [ebp - 0x148]
add esp, 8
inc edx
mov dword [ebp - 0x15c], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, esi
push 0
push edx
adc eax, edi
push eax
push ecx
call fcn.005bda10
shld edx, eax, 8
shl eax, 8
xor ebx, eax
mov eax, dword [ebp - 0x154]
xor eax, edx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x1c0]
push eax
call fcn.00475140
lea esi, [eax + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.00475140
add esp, 8
mov ecx, dword [eax]
add ecx, dword [esi]
mov eax, dword [ebp - 0x148]
mov esi, dword [ebp - 0x15c]
add eax, 2
imul ecx, eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x148], esi
shl ecx, 0x10
xor eax, ecx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x14c]
movups xmm0, xmmword [ebp - 0x170]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [ebp - 0x150], 1
mov dword [ebp - 0x14c], eax
jne 0x483d30
movsd xmm0, qword [0x642f60]
lea eax, [ebp - 0x44]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.004b5fa0
add esp, 0x10
call fcn.00487230
test al, al
je 0x483d10
lea eax, [ebp - 0x144]
mov byte [ebp - 0x144], 0
push 0x100
push eax
call fcn.004b61b0
add esp, 8
cmp byte [ebp - 0x144], 0
pop edi
pop esi
je 0x483ed5
lea eax, [ebp - 0x144]
push 0x400
push eax
call fcn.004b62e0
add esp, 8
call fcn.00487230
test al, al
jne 0x483cd6
push 0x64251c
push dword [ebp - 0x160]
call fcn.00471530
add esp, 8
call fcn.00487230
xor edx, edx
mov ecx, 0x23
test al, al
pop ebx
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bcf27
mov esp, ebp
pop ebp
ret

Function at 0x488a20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488990
Function at 0x48cdc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48ce08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x643814
push edi
call fcn.00471470
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x643830
push dword [esi]
call fcn.0048c6b0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48cf30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x138]
jne 0x48d086
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x48cf67
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48cf72
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48cf7d
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [ebp - 0xc], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [ebp - 0x14], ax
cmp ecx, edi
jae 0x48cfad
mov al, byte [ebp - 0xc]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x48cfba
mov al, byte [ebp - 0xb]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x48cfc7
mov al, byte [ebp - 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x48cfd4
mov al, byte [ebp - 0x13]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48cfdf
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x48cfea
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 4]
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.0048c7b0
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x48d042
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x643814
push edi
call fcn.00471470
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.0048ce20
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x48d085
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x643814
push edi
call fcn.00471470
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret