joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53eafa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x541330
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, edi
push 1
call fcn.0053da14
test al, al
je 0x53eb63
mov ecx, esi
call fcn.005405e8
mov ecx, 4
lea edx, [ebp + 0xc]
push ecx
push edx
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x53ec2b
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x24], eax
lea ecx, [eax + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], edi
mov edx, edi
push esi
call fcn.00540770
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.0043fd32
lea ecx, [ebp - 0x6c]
call fcn.0043fd32
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x4c]
push str.Cant_set_value_of__s
call fcn.00401278
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa0]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea esi, [ebp - 0xa0]
mov dword [ecx + 4], esi
call fcn.00492b51
add esp, 0x28
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x4c]
call fcn.0043fda0
lea ecx, [ebp - 0x6c]
call fcn.0043fda0
lea ecx, [ebp - 0x8c]
call fcn.0043fda0
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, 1
jmp 0x53ec17
Function at 0x53ef6c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x541350
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, edi
push 1
call fcn.0053da14
test al, al
je 0x53efeb
mov esi, edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0053408e
mov ebx, eax
mov ecx, edi
call fcn.00534094
mov edi, eax
mov ecx, dword [ebp + 8]
call fcn.005405e8
push ebx
push edi
mov edi, esi
mov esi, dword [ebp + 8]
push 3
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x53f0b3
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x24
mov eax, esp
mov dword [ebp - 0x24], eax
lea ecx, [eax + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x2c], edi
mov edx, edi
push esi
call fcn.00540770
add esp, 4
lea ecx, [ebp - 0x8c]
call fcn.0043fd32
lea ecx, [ebp - 0x6c]
call fcn.0043fd32
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x4c]
push str.Cant_set_value_of__s
call fcn.00401278
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa0]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea esi, [ebp - 0xa0]
mov dword [ecx + 4], esi
call fcn.00492b51
add esp, 0x28
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x4c]
call fcn.0043fda0
lea ecx, [ebp - 0x6c]
call fcn.0043fda0
lea ecx, [ebp - 0x8c]
call fcn.0043fda0
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov al, 1
jmp 0x53f09f
Function at 0x54011c
Capabilities:
Query or enumerate registry key

Disassembly:
push edi
push esi
mov esi, ecx
mov edi, dword [esp + 0x10]
push 0
call fcn.0053da14
test al, al
je 0x54013e
mov dword [edi], 0
mov ecx, esi
pop esi
pop edi
jmp fcn.00540146
xor eax, eax
pop esi
pop edi
ret 8

Function at 0x540146
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c4
mov ebx, ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5413a0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5401c4
lea ecx, [eax + 1]
mov dword [esi], ecx
lea edi, [ebp - 0x2ce]
push 0x105
push edi
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x20], ebx
mov dword [ebx + 0x30], eax
test eax, eax
sete bl
je 0x5401cb
cmp eax, 0x103
jne 0x5401d9
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], 0
mov dword [esi], 0xffffffff
jmp 0x5402ae
xor ebx, ebx
jmp 0x5402ae
mov ecx, dword [ebp + 8]
push edi
call fcn.0044a480
jmp 0x5402ae
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esp
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x28], eax
lea edi, [eax + 8]
lea esi, [ebp - 0xc4]
mov ecx, dword [ebp - 0x20]
push 1
push esi
call fcn.0053d95a
mov dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x24], edi
push edi
call fcn.004415d4
lea ecx, [ebp - 0x90]
call fcn.0043fd32
lea ecx, [ebp - 0x70]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x50]
push str.Cant_enumerate_subkeys_of_key__s
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa4]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
lea esi, [ebp - 0xa4]
mov dword [ecx + 4], esi
call fcn.0049cae0
add esp, 0x14
mov esp, dword [ebp - 0x2c]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x50]
call fcn.0043fda0
lea ecx, [ebp - 0x70]
call fcn.0043fda0
lea ecx, [ebp - 0x90]
call fcn.0043fda0
lea ecx, [ebp - 0xc4]
call fcn.0043fda0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x54032e
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
push esi
mov esi, ecx
mov edi, dword [esp + 0x10]
push 0
call fcn.0053da14
test al, al
je 0x540350
mov dword [edi], 0
mov ecx, esi
pop esi
pop edi
jmp fcn.00540358
xor eax, eax
pop esi
pop edi
ret 8
Function at 0x540358
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8bc
mov ebx, ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5413b0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5403f2
lea ecx, [ebp - 0x34]
mov dword [ecx], 0x400
lea edx, [eax + 1]
mov dword [esi], edx
mov edx, dword [ebx]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0xc], ecx
lea edi, [ebp - 0x8c8]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x20], ebx
mov dword [ebx + 0x30], eax
test eax, eax
sete bl
je 0x5403f9
cmp eax, 0x103
jne 0x540407
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x30], 0
mov dword [esi], 0xffffffff
jmp 0x5404dc
xor ebx, ebx
jmp 0x5404dc
mov ecx, dword [ebp + 8]
push edi
call fcn.0044a480
jmp 0x5404dc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esp
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x28], eax
lea edi, [eax + 8]
lea esi, [ebp - 0xc8]
mov ecx, dword [ebp - 0x20]
push 1
push esi
call fcn.0053d95a
mov dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x24], edi
push edi
call fcn.004415d4
lea ecx, [ebp - 0x94]
call fcn.0043fd32
lea ecx, [ebp - 0x74]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x54]
push str.Cant_enumerate_values_of_key__s
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa8]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
lea esi, [ebp - 0xa8]
mov dword [ecx + 4], esi
call fcn.0049cae0
add esp, 0x14
mov esp, dword [ebp - 0x2c]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x54]
call fcn.0043fda0
lea ecx, [ebp - 0x74]
call fcn.0043fda0
lea ecx, [ebp - 0x94]
call fcn.0043fda0
lea ecx, [ebp - 0xc8]
call fcn.0043fda0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x5409aa
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov esi, esp
mov dword [esi + 0x90], ebp
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x98]
mov dword [ecx - 4], esp
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x541410
mov edx, dword fs:[0]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov dword fs:[0], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 0x10], eax
mov edi, dword [ebp + 8]
mov ecx, ebx
push 1
call fcn.0053da14
test al, al
je 0x540a2b
mov ecx, edi
call fcn.005405e8
lea ecx, [esi + 0x10]
push 8
push ecx
push 0xb
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x540aec
mov dword [esi + 8], esp
push eax
sub esp, 0x24
mov eax, esp
mov dword [esi + 4], eax
lea ecx, [eax + 8]
mov dword [esi], ecx
mov dword [esi + 0xc], ebx
mov edx, ebx
push edi
call fcn.00540770
add esp, 4
lea ecx, [esi + 0x5c]
call fcn.0043fd32
lea ecx, [esi + 0x3c]
call fcn.0043fd32
mov dword [esi + 0xa0], 0
lea ecx, [esi + 0x1c]
push str.Cant_set_value_of__s
call fcn.00401278
mov dword [esi + 0xa0], 1
lea eax, [esi + 0x5c]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x1c]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [esi + 0x7c]
push eax
call fcn.00447d20
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x30]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
lea edi, [esi + 0x7c]
mov dword [ecx + 4], edi
call fcn.00492b51
add esp, 0x28
mov esp, dword [esi + 8]
mov ecx, edi
call fcn.00440f8a
lea ecx, [esi + 0x1c]
call fcn.0043fda0
lea ecx, [esi + 0x3c]
call fcn.0043fda0
lea ecx, [esi + 0x5c]
call fcn.0043fda0
xor eax, eax
mov ecx, dword [esi + 0x98]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov al, 1
jmp 0x540ad5
Function at 0x540b3a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc0
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x541420
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, esi
push 0
call fcn.0053da14
test al, al
je 0x540c82
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x78]
mov dword [ebx], 8
mov ecx, esi
call fcn.005405e8
lea ecx, [ebp - 0x30]
push ebx
push edi
mov edi, dword [ebp - 0x2c]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x540c98
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x10
mov eax, esp
mov dword [ebp - 0x24], eax
lea ebx, [eax + 8]
lea esi, [ebp - 0x98]
mov ecx, edi
push 1
push esi
call fcn.0053d95a
mov dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 0x20], ebx
push ebx
call fcn.004415d4
lea ecx, [ebp - 0x74]
call fcn.0043fd32
lea ecx, [ebp - 0x54]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0xb8]
push str.Cant_read_value_of_key__s
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xcc]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
lea esi, [ebp - 0xcc]
mov dword [ecx + 4], esi
call fcn.0049cae0
add esp, 0x14
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0xb8]
call fcn.0043fda0
lea ecx, [ebp - 0x54]
call fcn.0043fda0
lea ecx, [ebp - 0x74]
call fcn.0043fda0
lea ecx, [ebp - 0x98]
call fcn.0043fda0
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xb
ja 0x540cac
mov al, 1
mov edx, 0x830
bt edx, ecx
jb 0x540c84
mov dword [ebp - 0x28], esp
push eax
sub esp, 0x40
mov ebx, esp
lea ecx, [ebx + 0x24]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
call fcn.00540800
mov dword [ebp - 0x24], ebx
lea ecx, [ebx + 4]
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x34], ecx
mov edx, edi
push esi
call fcn.00540770
add esp, 4
lea ecx, [ebp - 0x98]
call fcn.0043fd32
lea ecx, [ebp - 0x74]
call fcn.0043fd32
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x54]
push str.Registry_value___s__is_not_numeric__but_of_type__s_
call fcn.00401278
mov dword [ebp - 0x10], 5
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xb8]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x24]
lea esi, [ebp - 0xb8]
mov dword [eax], esi
call fcn.0044a26b
add esp, 0x44
mov esp, dword [ebp - 0x28]
mov ecx, esi
call fcn.00440f8a
jmp 0x540c67
Function at 0x55bd1a
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, ecx
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x55c360
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
call fcn.00445ec4
mov dword [edi], 0x6358c0
lea ecx, [edi + 8]
call fcn.00441a50
lea ecx, [edi + 0x10]
call fcn.00441a50
lea ecx, [edi + 0x18]
call fcn.00441a50
lea ecx, [edi + 0x20]
call fcn.00441a50
lea ecx, [edi + 0x28]
call fcn.00441a50
mov dword [ebp - 0x20], edi
lea ecx, [edi + 0x38]
mov dword [esi + 8], 0
mov dword [ebp - 0x24], ecx
call fcn.0055ba0a
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x20]
call fcn.0055c104
xor eax, eax
lea esi, [ebp - 0x2c]
mov ecx, esi
push eax
push eax
call fcn.00451d04
movq xmm0, qword [esi]
pshufd xmm0, xmm0, 0x44
mov eax, dword [ebp - 0x20]
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
mov byte [eax + 0x30], 0
mov dword [eax + 0x31], 0x1010101
mov word [eax + 0x35], 0
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x577a10
Capabilities:
Query environment variable

Disassembly:
mov ecx, dword [esp + 4]
jmp 0x577a20
push ebp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, 1
xor ebp, ebp
nop dword [eax]
push ebx
push ebp
call dword [0x7c3884]
add esp, 8
test eax, eax
je 0x577a66
mov edi, eax
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x577a63
cmp eax, ebx
je 0x577a63
cmp eax, 0x8001
jae 0x577a63
mov ebp, edi
cmp eax, ebx
mov ebx, eax
jae 0x577a30
jmp 0x577a72
push edi
jmp 0x577a67
push ebp
call dword [0x7c3880]
add esp, 4
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x57e280
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.005f11b2
add esp, 0x18
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
test eax, eax
cmovne eax, ecx
ret

Function at 0x57ed20
Capabilities:
Terminate process

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x57ed5d
cmp dword [esi + 0x78], 0
je 0x57ed41
push 2
push 3
push esi
call fcn.0052af20
add esp, 0xc
push edi
call fcn.0059cd50
add esp, 4
cmp dword [esi + 0x78], 0
je 0x57ed66
push 3
push esi
call fcn.0052af60
add esp, 8
jmp 0x57ed66
push edi
call fcn.0059cd50
add esp, 4
pop esi
pop edi
ret
Function at 0x57f9c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 0x30], eax
mov dword [esp + 4], 0x10
mov dword [esp], 1
push 6
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
je 0x57fb91
mov esi, eax
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov word [esp + 0x20], 2
push 0x7f000001
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0x24], eax
mov word [esp + 0x22], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
mov eax, esp
push 4
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x57fb73
lea ebp, [esp + 0x20]
push 0x10
push ebp
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x57fb73
lea edi, [esp + 4]
push edi
push ebp
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x57fb73
cmp dword [esp + 4], 0x10
jl 0x57fb73
push 1
push esi
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
je 0x57fb73
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x57fb73
push 0x10
push ebp
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x57fb73
push 1
push esi
call fcn.005a1350
add esp, 8
test eax, eax
js 0x57fb73
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x300
lea eax, [esp + 8]
push 0
push 0x2710
push 1
push eax
call fcn.0058a7c0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WSOCK32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x57fb73
mov dword [esp + 4], 0x10
push edi
push ebp
push dword [ebx]
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x57fb73
cmp dword [esp + 4], 0x10
jl 0x57fb73
mov dword [esp + 4], 0x10
lea eax, [esp + 0x10]
push edi
push eax
push dword [ebx + 4]
call dword [sym.imp.WSOCK32.dll_getpeername]
cmp eax, 0xffffffff
je 0x57fb73
cmp dword [esp + 4], 0x10
jl 0x57fb73
movzx eax, word [esp + 0x20]
cmp ax, word [esp + 0x10]
jne 0x57fb73
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x14]
jne 0x57fb73
movzx eax, word [esp + 0x22]
xor edi, edi
cmp ax, word [esp + 0x12]
je 0x57fb88
mov edi, dword [sym.imp.WSOCK32.dll_closesocket]
push esi
call edi
push dword [ebx]
call edi
mov esi, dword [ebx + 4]
mov edi, 0xffffffff
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x57fb96
mov edi, 0xffffffff
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005db451
mov eax, edi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5893b0
Capabilities:
Set socket configuration

Disassembly:
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 8], eax
mov eax, esp
lea edi, [esp + 4]
push 0
push 0
push eax
push 4
push edi
push 0
push 0
push 0x4004747b
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x5893f8
push 4
push edi
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005db451
add esp, 0xc
pop esi
pop edi
ret

Function at 0x58abe0
Capabilities:
Get socket status

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, edx
mov esi, ecx
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 8], eax
test esi, esi
je 0x58ac0b
cmp dword [esi], 0
jne 0x58ac1d
test edi, edi
je 0x58ac14
cmp dword [edi], 0
jne 0x58ac1d
test ebx, ebx
je 0x58ac5d
cmp dword [ebx], 0
je 0x58ac5d
mov eax, 0
test ecx, ecx
js 0x58ac78
mov eax, ebp
or eax, ecx
je 0x58ac69
push 0
push 0x3e8
push ecx
push ebp
call fcn.005dfea0
imul ecx, eax, 0x3e8
sub ebp, ecx
cmp dword [esp + 0x28], 0x1f3
mov ecx, bind
cmovle ecx, eax
mov dword [esp], ecx
imul eax, ebp, 0x3e8
jmp 0x58ac72
push ecx
push ebp
call fcn.0058a640
add esp, 8
jmp 0x58acb7
mov dword [esp], 0
xor eax, eax
mov dword [esp + 4], eax
mov eax, esp
test ebx, ebx
mov ebp, 0
je 0x58ac8a
mov ecx, dword [ebx]
test ecx, ecx
cmove ebx, ecx
mov ebp, ebx
xor ecx, ecx
mov edx, 0
test edi, edi
je 0x58ac9e
mov edx, dword [edi]
test edx, edx
cmove edi, edx
mov edx, edi
test esi, esi
je 0x58acab
mov ecx, dword [esi]
test ecx, ecx
cmove esi, ecx
mov ecx, esi
push eax
push ebp
push edx
push ecx
push 0
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.005db451
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x58ca70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push edi
push esi
mov esi, ecx
lea eax, [edx - 0xc8]
cmp eax, 0x64
jae 0x58cab9
mov ebx, dword [esp + 0x10]
mov edi, dword [esi + 0xc]
cmp edx, 0xc8
je 0x58ca9e
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0051ec50
add esp, 0xc
add ebx, 0xffffffed
cmp ebx, 3
ja case.default.0x58caa6
jmp dword [ebx*4 + 0x638640]
mov ecx, esi
mov edx, edi
pop esi
pop edi
pop ebx
jmp fcn.0058dcb0
push str.Couldnt_set_desired_mode
push esi
call fcn.0051ed60
add esp, 8
mov eax, 0x11
pop esi
pop edi
pop ebx
ret
xor eax, eax
jmp 0x58cacc
mov ecx, esi
pop esi
pop edi
pop ebx
jmp 0x58e590
mov ecx, esi
pop esi
pop edi
pop ebx
jmp 0x58e6c0
mov ecx, esi
pop esi
pop edi
pop ebx
jmp 0x58e6d0
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov eax, dword [0x7c3824]
xor eax, esp
mov dword [esp + 4], eax
mov edi, dword [ecx + 0xc]
xor ebp, ebp
cmp dword [ecx + 0x508], 2
jne 0x58e615
mov eax, dword [esi + 0x134]
cmp dword [eax], 0
je 0x58e615
mov ebx, edi
mov dword [esp], 0
mov ecx, esp
push 3
push 0
push ecx
push 0
push dword [eax]
push esi
call fcn.00589660
add esp, 0x18
test eax, eax
je 0x58e5e5
mov edi, eax
jmp 0x58e6a6
mov edi, dword [esp]
push 0x2f
push edi
call fcn.005e2a90
add esp, 8
test eax, eax
je 0x58e609
sub eax, edi
mov ecx, 1
cmovne ecx, eax
mov byte [edi + ecx], 0
mov ebp, edi
jmp 0x58e613
push edi
call dword [0x7c3880]
add esp, 4
mov edi, ebx
test ebp, ebp
mov edx, 0x672026
mov eax, ebp
cmove eax, edx
mov ecx, 0x67186a
cmove ecx, edx
mov edx, dword [esi + 0x54c]
test edx, edx
jne 0x58e64b
cmp byte [esi + 0xd15], 0
mov ebx, edi
mov edi, str.LIST
mov edx, str.NLST
cmove edx, edi
mov edi, ebx
push eax
push ecx
push edx
push 0x65e67e
call fcn.00579a80
add esp, 0x10
mov ebx, eax
push ebp
call dword [0x7c3880]
add esp, 4
test ebx, ebx
je 0x58e6a1
add edi, 0x438
push ebx
push 0x65f416
push edi
push esi
call fcn.005ba900
add esp, 0x10
mov edi, eax
push ebx
call dword [0x7c3880]
add esp, 4
test edi, edi
jne 0x58e6a6
mov ecx, esi
mov edx, 0x1f
call fcn.0058bbd0
xor edi, edi
jmp 0x58e6a6
mov edi, 0x1b
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.005db451
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 1
push 0xd
call fcn.0058c5d0
add esp, 4
ret
mov edx, 1
push 0xe
call fcn.0058c5d0
add esp, 4
ret

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

Disassembly:
push edi
push esi
mov esi, ecx
add edx, 0xffffff38
cmp edx, 0x64
jae 0x58d311
push str.Connect_data_stream_actively
push esi
call fcn.0051ec50
add esp, 8
mov ecx, esi
xor edx, edx
call fcn.0058bbd0
mov ecx, esi
xor edx, edx
pop esi
pop edi
jmp fcn.0058e800
mov edi, dword [esi + 0xc]
mov edx, dword [edi + 0x4b0]
test edx, edx
je 0x58d33c
add edx, 1
cmp edx, 2
jne 0x58d356
push str.Failed_to_do_PORT
push esi
call fcn.0051ed60
add esp, 8
mov eax, 0x1e
pop esi
pop edi
ret
push str.disabling_EPRT_usage
push esi
call fcn.0051ec50
add esp, 8
mov byte [edi + 0x26c], 0
mov edx, 1
mov ecx, esi
pop esi
pop edi
jmp fcn.0058de20