joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f6c3
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x523fdb
call fcn.0050da0f
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.004054a0
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
cmp esi, 0x80000000
jne 0x40f725
call fcn.0040a542
cmp eax, 1
jne 0x40f725
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.0040f1d4
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404e40
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00405670
inc esi
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
test ecx, ecx
je 0x40f737
call fcn.0040f0a6
jmp 0x40f73d
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405670
mov eax, esi
call fcn.0050dae7
ret 0xc

Function at 0x41004b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x78], 0
mov eax, dword [edi + 0x7c]
mov esi, dword [edi + 0x80]
mov dword [ebp - 4], eax
je 0x410045
call fcn.0040acc0
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x78]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410056
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x410093
mov edx, dword [esi]
mov eax, 0xffff
cmp word [esi + 2], ax
jne 0x410077
mov edx, dword [esi + 0xc]
movzx eax, word [esi + 0x12]
movzx ecx, word [esi + 0x14]
jmp 0x41007f
movzx eax, word [esi + 0xa]
movzx ecx, word [esi + 0xc]
test edx, 0x1801
jne 0x410091
test ax, ax
jne 0x410091
test cx, cx
je 0x410093
xor ebx, ebx
cmp dword [edi + 0x78], 0
je 0x4100a2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4104b5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040acc0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4104ee
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004100f2
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x41054c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x410570
cmp dword [edi + 0x74], 0
jne 0x410570
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040acc0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041050d
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x418096
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4180dd
call fcn.0040acc0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4180dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4180f9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417b96
mov esi, eax
test edi, edi
je 0x4180f7
test ebx, ebx
je 0x4180f7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4188cf
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x528282
call fcn.0050da0f
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x4188f4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418946
call fcn.0041a414
push eax
lea ecx, [ebp - 0x10]
call fcn.004055c0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0050d4ca
push eax
call fcn.00405100
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00405670
mov eax, esi
call fcn.0050dae7
ret 8

Function at 0x41c817
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0041c4bb
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41c861
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411b54
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404f00
jmp 0x41c86c
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041f4c6
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41c872
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004181a2
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41c8af
call fcn.0041c4bb
mov dword [esi + 0xc], 1
jmp 0x41c8b4
call fcn.0041c4bb
cmp dword [esi], 0
je 0x41c8fd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x41c8d5
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411b54
jmp 0x41c8e7
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004057d0
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404f00
jmp 0x41c921
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41c921
push dword [esi]
push dword [ebp + 8]
call fcn.0041f4c6
pop esi
pop ebp
ret 0xc

Function at 0x4235fc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x57ed80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x423631
xor eax, eax
jmp 0x423684
lea eax, [ebp - 0x210]
push eax
call fcn.0050d597
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x423662
push 0x534050
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050e0c9
add esp, 0xc
test eax, eax
jne 0x42362d
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0050e0c9
add esp, 0xc
test eax, eax
jne 0x42362d
lea eax, [ebp - 0x210]
push eax
call fcn.0040bcf1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0050a54b
leave
ret
Function at 0x4675e0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004e6217
call fcn.0040a6dd
cmp dword [eax + 0x14], 0
jne 0x4675fd
mov ecx, esi
pop esi
jmp fcn.004670e5
pop esi
ret

Function at 0x46abaa
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004f9c99
call fcn.0040a6dd
cmp dword [eax + 0x14], 0
jne 0x46abc7
mov ecx, esi
pop esi
jmp fcn.0046a57d
pop esi
ret

Function at 0x47ae16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47ae30
call fcn.0040acc0
mov esi, dword [eax + 0xc]
push dword [0x5840e0]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47ae4e
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x47ae46
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x47ae7b
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x47ae48
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0047ad44
mov esi, eax
jmp 0x47ae6d

Function at 0x4f175a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f1772
mov edi, dword [esi + 0xc]
jmp 0x4f17b2
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f178b
call fcn.0041aaf8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f17a0
call fcn.0041aaf8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f17b2
call fcn.0041aaf8
call fcn.0040acc0
cmp dword [eax + 0x3c], 0
je 0x4f17c7
push edi
mov ecx, ebx
call fcn.004f058c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f1674
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f17e5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f17f1
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50a54b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57ed80]
jne 0x50a555
repz ret
jmp fcn.00511d33
Function at 0x51d7a8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57ed80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0051175b
and dword [ebp - 0x14], 0
cmp dword [0x586a88], 0
mov dword [ebp - 0x18], eax
jne 0x51d85b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x51d903
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x55b278
push ebx
call edi
test eax, eax
je 0x51d903
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55b268
push ebx
mov dword [0x586a88], eax
call edi
push eax
call esi
push 0x55b254
push ebx
mov dword [0x586a8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x586a90], eax
call edi
push eax
call esi
mov dword [0x586a98], eax
test eax, eax
je 0x51d85b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x586a94], eax
mov eax, dword [0x586a94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x51d8b4
cmp dword [0x586a98], ecx
je 0x51d8b4
push eax
call esi
push dword [0x586a98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x51d8b4
test ebx, ebx
je 0x51d8b4
call edi
test eax, eax
je 0x51d8ab
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x51d8ab
test byte [ebp - 8], 1
jne 0x51d8b4
or dword [ebp + 0x10], 0x200000
jmp 0x51d8e7
mov eax, dword [0x586a8c]
cmp eax, dword [ebp - 0x18]
je 0x51d8e7
push eax
call esi
test eax, eax
je 0x51d8e7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x51d8e7
mov eax, dword [0x586a90]
cmp eax, dword [ebp - 0x18]
je 0x51d8e7
push eax
call esi
test eax, eax
je 0x51d8e7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x586a88]
call esi
test eax, eax
je 0x51d903
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x51d905
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050a54b
leave
ret
Function at 0x402b00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
je 0x402b1e
xor al, al
jmp 0x402b82
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0xffffffff
jne 0x402b3d
xor al, al
jmp 0x402b82
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00408c40
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x402d20
push 0
push 0
call fcn.005100ef
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402b80
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00457a50
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4030b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5a5014]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], 0x25a207b9
mov eax, 0xddf3
mov word [ebp - 0x10], ax
mov ecx, 0x4660
mov word [ebp - 0xe], cx
mov byte [ebp - 0xc], 0x8e
mov byte [ebp - 0xb], 0xe9
mov byte [ebp - 0xa], 0x76
mov byte [ebp - 9], 0xe5
mov byte [ebp - 8], 0x8c
mov byte [ebp - 7], 0x74
mov byte [ebp - 6], 6
mov byte [ebp - 5], 0x3e
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x403115
xor al, al
jmp 0x403151
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00403060
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x28], 0
je 0x403147
mov dword [ebp - 0x20], 1
jmp 0x40314e
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1084
mov esp, ebp
pop ebp
ret
Function at 0x403cf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
jne 0x403d33
mov ecx, dword [ebp - 4]
call fcn.00403a30
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], 4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
push 0x10000
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00420840
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00420800
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00420820
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x40], 0x1c
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x14]
add eax, 0x40
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x24
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
test eax, eax
je 0x403dd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x403dd0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00402c30
movzx edx, al
test edx, edx
jne 0x403dcc
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
call fcn.00403af0
mov al, 1
jmp 0x403dd2
mov al, 1
mov esp, ebp
pop ebp
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], 0
jne 0x403e23
mov ecx, dword [ebp - 4]
call fcn.00403a30
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], 2
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
push 0x10000
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00420840
push 0
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00420800
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x44
call fcn.00420820
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x403ea8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x403ea8
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00402c30
movzx edx, al
test edx, edx
jne 0x403ea4
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
call fcn.00403af0
mov al, 1
jmp 0x403eaa
mov al, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403eb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00403a30
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push str.UDPProxy::startTcpSend__I64u_bytes_d
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 0x14
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x20], 1
cmp dword [ebp + 0x10], 0
jle 0x403f2f
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.00420840
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.00420800
push eax
call fcn.00505bc0
add esp, 0xc
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.00420800
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.00420820
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
lea edx, [ebp - 0x10]
push edx
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x403fdf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
je 0x403fdf
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str.UDPProxy::startTcpSend__I64u_failed__err_d
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 0x14
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], 2
mov ecx, dword [ebp - 4]
add ecx, 0x44
call fcn.00420460
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.00402c30
movzx edx, al
test edx, edx
jne 0x403fdb
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
call fcn.00403af0
xor al, al
jmp 0x403fe1
mov al, 1
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4041f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54adbd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5a5014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x14], 0
je 0x404264
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
push str.UDPProxy::onConnectComplete__I64u_failed__err_d
call fcn.004557e0
push eax
call fcn.00456d70
add esp, 0x14
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00403530
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00403af0
jmp 0x4043a1
mov edx, dword [ebp - 0x14]
add edx, 0x7c
push edx
lea ecx, [ebp - 0x28]
call fcn.00456640
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, 0x18
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.0041d3d0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.0041d460
push eax
lea ecx, [ebp - 0x18]
call fcn.0041d340
movzx eax, al
test eax, eax
je 0x404386
mov dword [ebp - 0x1c], 1
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 1
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x1c]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov byte [ebp - 0x10], 5
mov byte [ebp - 0xf], 1
lea ecx, [ebp - 0x18]
call fcn.0041d320
mov ecx, dword [eax + 8]
add ecx, 0x2c
call fcn.00420950
movzx edx, al
test edx, edx
jne 0x404316
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0xe], 2
jmp 0x404323
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0xe], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ecx + 0x18]
push eax
push 3
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041d320
mov edx, dword [eax + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00403eb0
movzx ecx, al
test ecx, ecx
je 0x404363
lea ecx, [ebp - 0x18]
call fcn.0041d320
mov edx, dword [eax + 8]
mov dword [edx + 8], 1
push 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [eax + 0x18]
push edx
lea ecx, [ebp - 0x18]
call fcn.0041d320
mov eax, dword [eax + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004566c0
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.00403af0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404db0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.00408c40
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp dword [ebp + 8], 0
jg 0x404df6
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x404df6
mov dword [ebp + 8], 1
mov dword [ebp - 8], 0
jmp 0x404e08
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x404e4b
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x404f90
push 0
push 0
call fcn.005100ef
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404e49
cmp dword [ebp - 0xc], 0xffffffff
je 0x404e49
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0041dc70
jmp 0x404dff
mov al, 1
mov esp, ebp
pop ebp
ret 8