joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e090
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46e2d1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 4]
call fcn.0046d418
xor eax, eax
push ebp
push 0x46e2a7
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046d7b4
test al, al
je 0x46e28b
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404c1c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x46e28b
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404fec
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x46e27f
mov eax, dword [ebp - 0x14]
call fcn.00404fec
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00404d24
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046dc9c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46e27f
xor eax, eax
push ebp
push 0x46e278
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0046d418
xor eax, eax
push ebp
push 0x46e25a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00404fec
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00404d24
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046d41c
mov eax, dword [ebp - 0x14]
call fcn.00404fec
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00404d24
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046dc9c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x46e237
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0046df68
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0046e090
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e23e
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x46e11b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e2ae
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0046d418
ret
Function at 0x46fd98
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
mov eax, dword [ebp - 8]
call fcn.00404fdc
mov eax, dword [ebp - 0xc]
call fcn.00404fdc
mov eax, dword [ebp + 8]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x46feea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0x46fefc
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404fec
push eax
push 0
push 2
push 0x110
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00404fec
push eax
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
push ebx
call sub.advapi32.dll_CreateServiceA
mov ebx, eax
mov eax, dword [0x4a07b4]
cmp dword [eax], 0
je 0x46febf
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x400
mov edx, 1
mov eax, dword [ebp + 8]
call fcn.0040504c
mov eax, 4
call fcn.0040272c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
call fcn.00404dec
inc eax
call fcn.0040272c
mov esi, eax
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
xor eax, eax
push ebp
push 0x46feb8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 0x18]
call fcn.00409d28
mov eax, dword [ebp - 0x14]
push eax
push 1
push ebx
mov eax, dword [0x4a07b4]
mov eax, dword [eax]
call eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46febf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0040274c
mov eax, dword [ebp - 0x14]
call fcn.0040274c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fef1
lea eax, [ebp - 0x18]
call fcn.00404b2c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b50
lea eax, [ebp + 8]
call fcn.00404b2c
ret

Function at 0x46ff00
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x46ffb2
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46ff92
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0xf003f
push 0
push 0x46ffc4
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x46ff7a
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov edi, eax
test edi, edi
je 0x46ff74
push edi
call sub.advapi32.dll_DeleteService
mov esi, 1
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
test esi, esi
jle 0x46ff84
mov byte [ebp - 5], 1
jmp 0x46ff88
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ff9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ffb9
lea eax, [ebp - 4]
call fcn.00404b2c
ret
Function at 0x46fffc
Capabilities:
Stop service

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov ebx, eax
mov byte [esp], 1
mov eax, ebx
call fcn.004701fc
mov esi, eax
xor eax, eax
mov al, bl
lea eax, [eax + eax*8]
push esi
lea esi, [eax*4 + 0x4a1d3c]
lea edi, [esp + 8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [esp + 4]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x470049
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [esp], 0
jmp 0x47004f
push esi
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [esp]
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x47005c
Capabilities:
Pause service
Stop service

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov ebx, eax
mov byte [esp], 1
mov eax, ebx
call fcn.004701fc
mov esi, eax
xor eax, eax
mov al, bl
lea eax, [eax + eax*8]
push esi
lea esi, [eax*4 + 0x4a1d3c]
lea edi, [esp + 8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [esp + 4]
push eax
push 2
push esi
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x4700a9
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [esp], 0
jmp 0x4700af
push esi
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [esp]
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x4700bc
Capabilities:
Continue service
Stop service

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov ebx, eax
mov byte [esp], 1
mov eax, ebx
call fcn.004701fc
mov esi, eax
xor eax, eax
mov al, bl
lea eax, [eax + eax*8]
push esi
lea esi, [eax*4 + 0x4a1d3c]
lea edi, [esp + 8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
pop esi
lea eax, [esp + 4]
push eax
push 3
push esi
call sub.advapi32.dll_ControlService
test eax, eax
jne 0x470109
push esi
call sub.advapi32.dll_CloseServiceHandle
mov byte [esp], 0
jmp 0x47010f
push esi
call sub.advapi32.dll_CloseServiceHandle
mov al, byte [esp]
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x47015c
Capabilities:
Modify service

Disassembly:
push ebx
push esi
mov bl, 1
call fcn.004701fc
mov esi, eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
jne 0x47018f
push esi
call sub.advapi32.dll_CloseServiceHandle
xor ebx, ebx
jmp 0x470195
push esi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x470288
Capabilities:
Query service configuration

Disassembly:
push ebx
push esi
add esp, 0xfffffbfc
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00404b2c
mov eax, ebx
call fcn.004701fc
mov ebx, eax
lea eax, [esp + 4]
mov edx, 0x400
call fcn.00407a64
push esp
push 0x400
lea eax, [esp + 0xc]
push eax
push 1
push ebx
call sub.ADVAPI32.DLL_QueryServiceConfig2A
test al, al
je 0x4702d4
mov eax, esi
lea edx, [esp + 8]
call fcn.00404d24
push ebx
call sub.advapi32.dll_CloseServiceHandle
add esp, 0x404
pop esi
pop ebx
ret
Function at 0x4707c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x470827
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4138d4]
call fcn.00403d28
mov dword [0x4a6534], eax
push 0
push 0x470610
call sub.user32.dll_EnumWindows
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov edx, ebx
mov eax, dword [0x4a6534]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47082e
mov eax, dword [0x4a6534]
call fcn.00403d58
ret
Function at 0x4710e8
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor ecx, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x264], ecx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
mov eax, dword [ebp - 8]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x471347
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x254]
call fcn.00409c24
mov edx, dword [ebp - 0x254]
lea eax, [ebp - 0x110]
mov ecx, 0xff
call fcn.00404dc8
mov eax, dword [ebp - 4]
call fcn.004028d0
call fcn.00402894
lea eax, [ebp - 0x250]
push eax
push 0x471358
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4712d4
mov eax, dword [ebp - 8]
call fcn.00409678
test al, al
jne 0x4711a0
mov eax, dword [ebp - 8]
call fcn.0040969c
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x224]
mov ecx, 0x104
call fcn.00404d9c
mov eax, dword [ebp - 0x10]
mov edx, 0x471364
call fcn.00404f38
je 0x4712b7
mov eax, dword [ebp - 0x10]
mov edx, 0x471370
call fcn.00404f38
je 0x4712b7
cmp dword [ebp - 0x250], 0x10
jne 0x471286
push dword [ebp - 8]
push 0x47137c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404eac
mov eax, dword [ebp - 0xc]
call fcn.00409678
test al, al
jne 0x471212
mov eax, dword [ebp - 0xc]
call fcn.0040969c
mov eax, dword [ebp - 4]
call fcn.00404dec
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x47124f
push dword [ebp - 4]
push 0x47137c
push dword [ebp - 0x10]
lea eax, [ebp - 0x258]
mov edx, 3
call fcn.00404eac
mov eax, dword [ebp - 0x258]
mov edx, dword [ebp - 0xc]
call fcn.004710e8
jmp 0x4712b7
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404e38
mov eax, dword [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00404e38
mov eax, dword [ebp - 0x260]
pop edx
call fcn.004710e8
jmp 0x4712b7
push dword [ebp - 8]
push 0x47137c
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404eac
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
call fcn.00404fec
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404fec
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4711a0
jmp 0x4712f9
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x110]
call fcn.00404d90
mov eax, dword [ebp - 0x264]
call fcn.004028d0
call fcn.00402894
xor ebx, ebx
jmp 0x47131c
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x110]
call fcn.00404d90
mov eax, dword [ebp - 0x268]
call fcn.004028d0
call fcn.00402894
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47134e
lea eax, [ebp - 0x268]
mov edx, 6
call fcn.00404b50
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404b50
ret
Function at 0x472910
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x472999
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a6540
push 0x101
call sub.wsock32.dll_WSAStartup_1
mov ebx, eax
test ebx, ebx
je 0x472983
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c520
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4729b0
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4a06b0]
mov dl, 1
mov eax, dword [0x47193c]
call fcn.0040ce44
call fcn.004044e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4729a0
lea eax, [ebp - 0x1c]
call fcn.00404b2c
ret

Function at 0x473064
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00472f88
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f54
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4730c8
call fcn.00472858
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4730ba
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403f54
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00472e0c
xor eax, eax
push ebp
push 0x47316b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404b2c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x473125
call fcn.00404590
jmp 0x473172
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x473155
push dword [ebp - 0x14]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404d24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473172
mov eax, dword [ebp - 4]
call fcn.00472e18
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x473178
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00472e0c
xor eax, eax
push ebp
push 0x4731f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404b2c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x4731b4
call fcn.00404590
jmp 0x4731f8
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
call sub.wsock32.dll_gethostname_1
test eax, eax
jne 0x4731db
mov eax, ebx
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404d9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4731f8
mov eax, dword [ebp - 4]
call fcn.00472e18
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473200
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00472e0c
xor eax, eax
push ebp
push 0x47327b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x473236
call fcn.00404590
jmp 0x473282
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x473265
mov ax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473282
mov eax, dword [ebp - 4]
call fcn.00472e18
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4733bc
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404fec
push eax
call sub.wsock32.dll_gethostbyname_1
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004032b8
test ebx, ebx
je 0x473407
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x473515
mov ecx, dword [0x4a0810]
mov dl, 1
mov eax, dword [0x47193c]
call fcn.0040ce08
call fcn.004044e4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x473542
mov ecx, dword [0x4a04bc]
mov dl, 1
mov eax, dword [0x47193c]
call fcn.0040ce08
call fcn.004044e4
xor eax, eax
push ebp
push 0x4735c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403f54
cmp byte [ebp + 8], 0
je 0x47359d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047344c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00472fe4
jmp 0x4735b9
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00472b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4735e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4735ec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47361d
mov ecx, dword [0x4a0554]
mov dl, 1
mov eax, dword [0x47193c]
call fcn.0040ce08
call fcn.004044e4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x47364a
mov ecx, dword [0x4a04bc]
mov dl, 1
mov eax, dword [0x47193c]
call fcn.0040ce08
call fcn.004044e4
xor eax, eax
push ebp
push 0x4736c6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403f54
cmp byte [ebp + 8], 0
je 0x4736a2
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0047344c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00473064
jmp 0x4736bc
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00472b44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4736e3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4738c4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00472e0c
xor eax, eax
push ebp
push 0x473a35
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x473a1f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x47390f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x473919
call fcn.00404590
jmp 0x473a3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e10
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x473a14
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4739c7
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4739b4
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403f54
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0047387c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x473a48]
cmp dl, byte [eax + 0x28]
je 0x473a1b
call fcn.0040cd2c
jmp 0x473a1b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e30
jmp 0x473a1b
cmp ecx, ebx
jge 0x4739e3
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e30
jmp 0x473919
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00417e10
cmp edx, dword [esp + 4]
jne 0x473a03
cmp eax, dword [esp]
pop edx
pop eax
jne 0x473919
push ebp
call fcn.0047387c
pop ecx
jmp 0x473a1b
push ebp
call fcn.0047387c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a3c
mov eax, dword [ebp - 4]
call fcn.00472e18
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret