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

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [esi], 0
call fcn.0054c800
cmp eax, 3
jne 0x547d82
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 0
mov dword [esi], 0
call ebx
test eax, eax
jne 0x547d13
push esi
push str.NameServer
push dword [esp + 0x14]
call fcn.00547e70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x547d4f
push esi
push str.DhcpNameServer
push dword [esp + 0x14]
call fcn.00547e70
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x547d4f
lea eax, [esp + 0x18]
push eax
push 9
push edi
push str.Interfaces
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x547d23
push dword [esp + 0xc]
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
xor eax, eax
pop edi
test ecx, ecx
pop esi
setne al
pop ebx
add esp, 8
ret
push esi
push str.NameServer
push dword [esp + 0x20]
call fcn.00548550
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x547d4f
push esi
push str.DhcpNameServer
push dword [esp + 0x20]
call fcn.00548550
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x547d60
push eax
call ebx
push dword [esp + 0xc]
call ebx
test edi, edi
je 0x547d13
cmp dword [esi], 0
je 0x547d13
mov ecx, 1
xor eax, eax
pop edi
test ecx, ecx
pop esi
setne al
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x547e61
lea eax, [esp + 0x18]
mov dword [esi], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x547e61
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esi], eax
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x18]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
je 0x547dea
cmp eax, 0xea
jne 0x547e57
mov eax, dword [esp + 0xc]
test eax, eax
je 0x547e57
inc eax
push eax
call dword [0x5f09c4]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x547e57
lea ecx, [esp + 0xc]
push ecx
push eax
lea eax, [esp + 0x18]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
jne 0x547e46
mov ecx, dword [esp + 0xc]
cmp ecx, 1
je 0x547e46
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
je 0x547e61
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push dword [esi]
call dword [0x5f09cc]
add esp, 4
mov dword [esi], 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x547e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push dword [esp + 0x20]
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x547ea8
cmp eax, 0xea
jne 0x547f05
mov eax, dword [esp + 4]
test eax, eax
je 0x547f05
inc eax
push eax
call dword [0x5f09c4]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x547f05
lea ecx, [esp + 4]
push ecx
push eax
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x547ef4
mov ecx, dword [esp + 4]
cmp ecx, 1
je 0x547ef4
mov eax, dword [esi]
pop esi
mov byte [ecx + eax], 0
mov eax, 1
pop ecx
ret
push dword [esi]
call dword [0x5f09cc]
add esp, 4
mov dword [esi], 0
xor eax, eax
pop esi
pop ecx
ret
Function at 0x548550
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x114], eax
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0x11c]
push ebp
push esi
mov esi, dword [esp + 0x12c]
mov ebp, 1
push 0
push 0
push 0
push 0
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], eax
push ecx
push 0
push eax
mov dword [esi], 0
mov dword [esp + 0x30], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x54869e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [esp + 0x10]
push eax
push 1
push 0
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x54865e
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x54860c
cmp eax, 0xea
jne 0x548658
mov eax, dword [esp + 0x14]
test eax, eax
je 0x548658
inc eax
push eax
call dword [0x5f09c4]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x548658
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
push 0
push dword [esp + 0x2c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x548647
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jne 0x548690
push dword [esi]
call dword [0x5f09cc]
add esp, 4
mov dword [esi], 0
push dword [esp + 0x10]
call edi
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x100
push ecx
lea ecx, [esp + 0x38]
mov eax, ebp
push ecx
push eax
push dword [esp + 0x3c]
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x5485c1
jmp 0x54869c
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [esp + 0x10]
call edi
pop ebx
pop edi
mov ecx, dword [esp + 0x11c]
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.00551e44
add esp, 0x118
ret
Function at 0x549900
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
nop
mov eax, dword [esi + 0x2c]
mov al, byte [eax]
cmp al, 0x62
je 0x549ab1
cmp al, 0x66
jne 0x549b02
test dword [esi + 0x14], 0x100
lea ebp, [esi + 0x14]
je 0x549956
push str.CARES_HOSTS
call fcn.00574aad
add esp, 4
test eax, eax
jne 0x549a17
mov byte [esp + 0x18], 0
call fcn.0054c800
cmp eax, 3
jne 0x5499d1
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5499ea
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x120]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5499ea
cmp eax, 2
jne 0x549af6
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x5499f0
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x5bee5c]
mov word [ecx + 4], ax
mov al, byte [0x5bee5e]
mov byte [ecx + 6], al
lea eax, [esp + 0x18]
push 0x5bee60
push eax
call fcn.00562bf5
mov edi, eax
add esp, 8
test edi, edi
jne 0x549a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
inc dword [esi + 0x2c]
jmp 0x549920
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push dword [esi + 4]
push edi
call fcn.0054dc00
push edi
mov ebx, eax
call fcn.00562da0
add esp, 0x18
cmp ebx, 4
jne 0x549aa5
mov edi, dword [esi + 4]
mov ecx, str.localhost
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x549a88
test dl, dl
je 0x549a84
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x549a88
add eax, 2
add ecx, 2
test dl, dl
jne 0x549a68
xor eax, eax
jmp 0x549a8d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x549aa5
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push edi
call fcn.0054e090
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x549afe
inc dword [esi + 0x2c]
jmp 0x549920
mov ecx, dword [esi + 4]
mov eax, str.localhost
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x549ae0
test dl, dl
je 0x549adc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x549ae0
add ecx, 2
add eax, 2
test dl, dl
jne 0x549ac0
xor eax, eax
jmp 0x549ae5
sbb eax, eax
or eax, 1
test eax, eax
je 0x549af6
push esi
call fcn.00549790
add esp, 4
test eax, eax
jne 0x549b12
inc dword [esi + 0x2c]
jmp 0x549920
push 0
jmp 0x549b09
push dword [esp + 0x22c]
push esi
call fcn.00549430
add esp, 8
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00551e44
add esp, 0x214
ret
Function at 0x549ea0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x91b8]
test ecx, ecx
je 0x549ec9
push dword [eax + 0x91bc]
mov eax, dword [ecx + 8]
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call eax
add esp, 0x10
ret
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_connect]
ret

Function at 0x54a190
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
cmp dword [esi + 0x91b8], 0
jne 0x54a288
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [esi + 0x1c], 0
lea eax, [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
jle 0x54a1f3
push 4
push eax
push 0x1001
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x54a250
cmp dword [esi + 0x20], 0
lea eax, [esi + 0x20]
jle 0x54a211
push 4
push eax
push 0x1002
push 0xffff
push edi
call ebx
cmp eax, 0xffffffff
je 0x54a250
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x54a265
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x54a288
xorps xmm0, xmm0
mov ecx, 2
movups xmmword [esp + 0x10], xmm0
push eax
mov word [esp + 0x14], cx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x54a288
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
cmp eax, 0x17
jne 0x54a288
lea ebx, [esi + 0x60]
mov edx, 0x5bee74
mov ecx, ebx
lea esi, [eax - 0xb]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x54a29c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x54a277
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x10], xmm0
mov eax, 0x17
movq qword [esp + 0x20], xmm0
movups xmm0, xmmword [ebx]
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push 0x1c
push eax
push edi
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
test eax, eax
pop edi
setns cl
pop esi
pop ebx
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
Function at 0x54a460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
push edi
mov edi, dword [esp + 0x40]
imul esi, ebp, 0x58
add esi, dword [edi + 0x74]
push esi
push edi
call fcn.0054d030
lea eax, [esp + 0x20]
push eax
call fcn.0054c910
lea eax, [esp + 0x24]
push eax
lea ebx, [esi + 0x44]
call fcn.0054c970
push ebx
mov esi, eax
call fcn.0054c970
movq xmm1, qword [ebx]
add esp, 0x14
movq xmm0, qword [esp + 0x18]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
movq qword [esp + 0x24], xmm0
movq qword [esp + 0x10], xmm1
movq qword [esp + 0x30], xmm1
mov dword [esp + 0x44], ecx
test esi, esi
je 0x54a4e2
push ebx
call fcn.0054c910
movq xmm1, qword [esp + 0x14]
add esp, 4
mov ecx, dword [esp + 0x44]
jmp 0x54a4f6
movq qword [ebx], xmm0
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, dword [esp + 0x24]
mov dword [eax + 4], ebx
cmp dword [esp + 0x40], 0
je 0x54a50c
lea eax, [esp + 0x18]
push eax
call fcn.0054c910
add esp, 4
jmp 0x54a527
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x18]
movq qword [esp + 0x18], xmm1
mov dword [eax], ecx
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
cmp esi, eax
je 0x54a569
mov ebx, dword [esp + 0x48]
nop word [eax + eax]
cmp dword [edi + 0x78], 1
mov ecx, dword [esi + 8]
mov esi, dword [esi + 4]
jle 0x54a556
mov eax, dword [ecx + 0x5c]
mov dword [eax + ebp*8], 1
push ebx
push ecx
push edi
call fcn.0054a760
lea eax, [esp + 0x24]
add esp, 0xc
cmp esi, eax
jne 0x54a540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x54a580
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
cmp ebp, 0xc
jl 0x54a74f
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x10], 0
movzx ecx, byte [ebx + 4]
lea esi, [ebx + 0xc]
movzx eax, byte [ebx + 5]
movzx edx, byte [ebx + 6]
shl edx, 8
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 7]
or edx, eax
mov dword [esp + 0x28], ecx
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], edx
movzx edx, byte [ebx + 8]
shl edx, 8
or edx, eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x18], edx
movzx edx, byte [ebx + 0xa]
shl edx, 8
or edx, eax
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x54a63e
nop dword [eax + eax]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push esi
call fcn.0054e9f0
add esp, 0x14
test eax, eax
jne 0x54a74f
push dword [esp + 0x20]
call fcn.0054ebb0
mov eax, dword [esp + 0x28]
lea edi, [ebx + ebp]
add eax, 4
add esp, 4
add esi, eax
cmp esi, edi
ja 0x54a74f
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x28]
jb 0x54a5f0
jmp 0x54a641
lea edi, [ebx + ebp]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0
add eax, dword [esp + 0x18]
je 0x54a6bf
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebx
push esi
call fcn.0054e9f0
add esp, 0x14
test eax, eax
jne 0x54a74f
push dword [esp + 0x28]
call fcn.0054ebb0
mov eax, dword [esp + 0x30]
add esp, 4
lea edx, [eax + 0xa]
add edx, esi
cmp edx, edi
ja 0x54a74f
movzx ecx, byte [eax + esi + 8]
movzx esi, byte [eax + esi + 9]
shl ecx, 8
or esi, ecx
add esi, edx
cmp esi, edi
ja 0x54a74f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x10], eax
cmp eax, ecx
jb 0x54a653
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x38], 0
jbe 0x54a738
nop
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
push esi
call fcn.0054e9f0
add esp, 0x14
test eax, eax
jne 0x54a74f
push dword [esp + 0x18]
call fcn.0054ebb0
mov edx, dword [esp + 0x18]
add esp, 4
add edx, esi
lea esi, [edx + 0xa]
cmp esi, edi
ja 0x54a74f
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl cx, 8
or cx, ax
cmp cx, 0x29
je 0x54a742
movzx ecx, byte [edx + 8]
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
add esi, ecx
cmp esi, edi
ja 0x54a74f
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x1c]
jb 0x54a6d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret
Function at 0x54aa40
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x24
mov eax, dword [0x5f0a00]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push edi
mov eax, dword [ebx]
sub eax, 2
je 0x54aab2
sub eax, 0x15
jne 0x54ab49
mov eax, 0x17
mov dword [esp + 0xc], 0x1c
xorps xmm0, xmm0
mov word [esp + 0x10], ax
mov eax, dword [ebx + 0x14]
movlpd qword [esp + 0x14], xmm0
movlpd qword [esp + 0x1c], xmm0
movlpd qword [esp + 0x24], xmm0
test eax, eax
je 0x54aa9a
push eax
jmp 0x54aa9d
push dword [esi + 0x14]
call fcn.005088c0
movups xmm0, xmmword [ebx + 4]
mov word [esp + 0x16], ax
movups xmmword [esp + 0x1c], xmm0
jmp 0x54aaeb
mov eax, 2
mov dword [esp + 0xc], 0x10
mov word [esp + 0x10], ax
xorps xmm0, xmm0
mov eax, dword [ebx + 0x14]
movlpd qword [esp + 0x18], xmm0
test eax, eax
je 0x54aad7
push eax
jmp 0x54aada
push dword [esi + 0x14]
call fcn.005088c0
mov word [esp + 0x16], ax
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x91b8]
add esp, 4
mov ecx, dword [ebx]
test eax, eax
je 0x54ab0e
push dword [esi + 0x91bc]
mov eax, dword [eax]
push 0
push 2
push ecx
call eax
add esp, 0x10
jmp 0x54ab19
push 0
push 2
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x54ab49
push esi
push dword [ebx]
push edi
call fcn.0054a190
add esp, 0xc
test eax, eax
jns 0x54ab7a
mov eax, dword [esi + 0x91b8]
test eax, eax
je 0x54ab5e
push dword [esi + 0x91bc]
mov eax, dword [eax + 4]
push edi
call eax
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
mov eax, dword [esi + 0x91b0]
push ebp
test eax, eax
je 0x54ab99
push dword [esi + 0x91b4]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
js 0x54ac03
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push edi
push esi
call fcn.00549ea0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x54abe5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x54abe5
cmp eax, 0x2733
je 0x54abe5
push edi
push esi
call fcn.00549e70
add esp, 8
or eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
mov eax, dword [esi + 0x91a8]
test eax, eax
je 0x54ac22
push dword [esi + 0x91ac]
push 2
push edi
call eax
mov ebp, eax
add esp, 0xc
test ebp, ebp
jns 0x54ac22
push edi
push esi
call fcn.00549e70
add esp, 8
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
mov eax, dword [esi + 0x91a0]
test eax, eax
je 0x54ac3c
push 0
push 1
push edi
push dword [esi + 0x91a4]
call eax
add esp, 0x10
mov ecx, dword [esp + 0x30]
xor eax, eax
pop ebp
mov dword [ebx + 0x1c], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00551e44
add esp, 0x24
ret
Function at 0x54b650
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 8
mov edx, dword [ecx + 0x91b8]
test edx, edx
je 0x54b68e
push dword [ecx + 0x91bc]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
lea eax, [esp + 4]
push 1
push eax
push dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
call eax
add esp, 0x10
add esp, 8
ret
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
add esp, 8
ret
Function at 0x54b6b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x54b6c9
cmp edx, 0xffffffff
je 0x54b88b
push ebx
mov ebx, dword [esp + 0x18]
push ebp
xor ebp, ebp
cmp dword [ebx + 0x78], ebp
jle 0x54b889
xor eax, eax
mov dword [esp + 0xc], eax
push edi
mov edi, dword [ebx + 0x74]
add edi, eax
cmp dword [edi + 0x38], 0
je 0x54b875
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x54b875
cmp dword [edi + 0x54], 0
jne 0x54b875
test esi, esi
je 0x54b772
push esi
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x54b871
mov edx, dword [esi]
xor eax, eax
test edx, edx
je 0x54b77a
mov ecx, dword [esp + 0x24]
mov esi, dword [edi + 0x20]
add ecx, 4
nop dword [eax + eax]
cmp dword [ecx], esi
je 0x54b73e
inc eax
add ecx, 4
cmp eax, edx
jb 0x54b730
jmp 0x54b77a
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x54b767
mov ebx, dword [esp + 0x24]
lea esi, [ebx + 4]
lea esi, [esi + eax*4]
nop
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
mov dword [esi - 4], ecx
inc eax
mov edx, dword [ebx]
lea ecx, [edx - 1]
cmp eax, ecx
jb 0x54b750
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea eax, [edx - 1]
mov dword [ecx], eax
jmp 0x54b77a
cmp eax, edx
jne 0x54b875
mov eax, dword [edi + 0x38]
xor ecx, ecx
test eax, eax
je 0x54b78b
mov eax, dword [eax + 0x10]
inc ecx
test eax, eax
jne 0x54b783
lea eax, [ecx*8]
push eax
call dword [0x5f09c4]
mov ecx, dword [edi + 0x38]
mov esi, eax
add esp, 4
test esi, esi
je 0x54b821
xor edx, edx
test ecx, ecx
je 0x54b7c4
nop
mov eax, dword [ecx]
mov dword [esi + edx*8], eax
mov eax, dword [ecx + 4]
mov dword [esi + edx*8 + 4], eax
inc edx
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x54b7b0
mov ecx, dword [ebx + 0x91b8]
mov eax, dword [edi + 0x20]
test ecx, ecx
je 0x54b7e4
push dword [ebx + 0x91bc]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x10
jmp 0x54b7ef
push edx
push esi
push eax
call fcn.0054ebe0
add esp, 0xc
push esi
mov edi, eax
call dword [0x5f09cc]
add esp, 4
test edi, edi
jns 0x54b81e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x54b86d
cmp eax, 0x2733
je 0x54b86d
push dword [esp + 0x2c]
push ebp
push ebx
call fcn.0054a460
jmp 0x54b86a
push edi
jmp 0x54b863
mov esi, dword [ebx + 0x91b8]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov edx, dword [edi + 0x20]
test esi, esi
je 0x54b853
push dword [ebx + 0x91bc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push 1
push eax
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0x10]
push edx
call eax
add esp, 0x10
jmp 0x54b85e
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x54b7ff
push eax
push ebp
push ebx
call fcn.00549de0
add esp, 0xc
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
add dword [esp + 0x10], 0x58
inc ebp
mov eax, dword [esp + 0x10]
cmp ebp, dword [ebx + 0x78]
jl 0x54b6e1
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x54bfe0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 2
jne 0x54bffb
push 4
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.0054c1a0
jmp 0x54c00f
cmp eax, 0x17
jne 0x54c033
push 0x10
push dword [esp + 0x14]
push dword [esp + 0x14]
call fcn.0054c530
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x54c028
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x54c028
xor eax, eax
pop esi
ret
sar esi, 0x1f
and esi, 0xfffffffe
lea eax, [esi + 1]
pop esi
ret
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop esi
ret