joyce8/EMBER2024-capa huggingface dataset:
Function at 0x564b10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
push 0
lea ecx, [esp + 0x1c]
push ecx
mov byte [eax], 0
mov edx, dword [esi + 0x14]
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x564b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test eax, eax
je 0x564b6c
mov ecx, esi
call fcn.005647d0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x564ba4
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
jne 0x564ba4
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
push 0
adc ecx, ebx
add eax, 4
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x564bee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x564bee
mov ecx, esi
call fcn.005647d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x18
Function at 0x564e70
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x14]
cmp eax, 0xffffffff
jne 0x564e7f
xor eax, eax
pop ecx
ret 4
push esi
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp eax, 0xffffffff
jne 0x564ebe
cmp dword [esi + 4], 0
jne 0x564ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x564ebe
mov dword [esi], eax
mov dword [esi + 4], 0
xor eax, eax
pop esi
pop ecx
ret 4
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
call fcn.0061cd30
add dword [esi], eax
mov eax, 1
adc dword [esi + 4], edx
pop esi
pop ecx
ret 4

Function at 0x564ef0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
call fcn.005647d0
mov eax, dword [esp + 0x18]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x564f37
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x565036
mov eax, 1
pop edi
add esp, 0x10
ret 0xc
push ebx
push esi
lea esi, [edi + 8]
push esi
mov ecx, edi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00564e70
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x564f6b
mov eax, dword [ebx]
cdq
cmp edx, dword [esi + 4]
jl 0x564f6b
jg 0x564f67
cmp eax, dword [esi]
jbe 0x564f6b
mov ecx, dword [esi]
mov dword [ebx], ecx
mov eax, dword [ebx]
mov ecx, dword [esi]
cdq
sub ecx, eax
mov eax, dword [esi + 4]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
sbb eax, edx
push 0
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x564fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x564ffe
mov eax, dword [ebx]
test eax, eax
je 0x565011
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [edi + 0x14]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56501d
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx]
jne 0x56501d
mov eax, dword [edi + 0x14]
push 2
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0xffffffff
jne 0x565011
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x565011
mov ecx, edi
call fcn.005647d0
pop ebp
mov eax, esi
pop esi
pop ebx
pop edi
add esp, 0x10
ret 0xc
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.005647d0
test esi, esi
jne 0x565005
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
pop edi
add esp, 0x10
ret 0xc
Function at 0x5651b0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x4c]
mov ebp, ecx
test edi, edi
je 0x5652f2
mov eax, dword [esi + 0x3c]
fld qword [esi + 0x28]
mov ecx, dword [esi + 0x40]
fstp qword [esp + 0x1c]
mov edx, dword [esi + 0x44]
push ebx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x3c]
push 0x6a54d0
push ecx
mov dword [esp + 0x3c], edx
call fcn.0061af5b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0xc
push 0x18
lea edx, [esp + 0x24]
push edx
push 0
push 0
lea eax, [esp + 0x48]
push eax
push edi
call ebx
cmp dword [ebp + 0x54], 0
je 0x56525b
mov ecx, dword [esi + 0x38]
push ecx
lea edx, [esp + 0x3c]
push str.fn_d
push edx
call fcn.0061af5b
mov edx, dword [esi + 0x48]
mov eax, edx
add esp, 0xc
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x565243
sub eax, ebp
inc eax
push eax
push edx
push 1
push 0
lea eax, [esp + 0x48]
push eax
push edi
call ebx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, eax
or edx, ecx
je 0x5652a6
mov edx, dword [esi + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x3c]
push str.fl_d
push eax
mov dword [esp + 0x20], ecx
call fcn.0061af5b
add esp, 0xc
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x48]
push edx
push edi
call ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, eax
or edx, ecx
je 0x5652f1
mov edx, dword [esi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x3c]
push str.fse_d
push ecx
mov dword [esp + 0x20], edx
call fcn.0061af5b
add esp, 0xc
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push 0
lea eax, [esp + 0x48]
push eax
push edi
call ebx
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0061807e
add esp, 0x3c
ret 8

Function at 0x565440
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x56545b
mov edx, dword [esp + 8]
jmp 0x565450
cmp edx, dword [eax + 0x38]
je 0x56545e
mov eax, dword [eax]
test eax, eax
jne 0x565450
ret 8
mov dword [eax + 0x44], 1
mov dword [esp + 8], eax
jmp fcn.005651b0
Function at 0x5654b0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x565569
push ebx
mov ebx, dword [esi + 0x40]
test ebx, ebx
je 0x5654d7
push ebx
push edi
mov ecx, esi
call fcn.005651b0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x5654c8
mov ecx, dword [esi + 8]
mov eax, ecx
lea ebx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5654e0
sub eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push str.f_templ
push edi
call ebx
mov eax, dword [esi + 0x10]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.f_tfc
push edi
mov dword [esp + 0x28], eax
call ebx
xor edx, edx
cmp byte [esi + 0xc], dl
push 4
lea eax, [esp + 0x14]
push eax
push 4
setne dl
push 0
push str.f_uf
push edi
mov dword [esp + 0x28], edx
call ebx
push 8
lea ecx, [esi + 0x18]
push ecx
push 0
push 0
push str.f_td
push edi
call ebx
xor edx, edx
cmp dword [esi + 0x54], edx
push 4
lea eax, [esp + 0x14]
push eax
push 4
setne dl
push 0
push str.f_uu
push edi
mov dword [esp + 0x28], edx
call ebx
pop ebx
pop edi
pop esi
ret 4

Function at 0x565570
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x6473bb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CFragmentsList.0
call fcn.00402500
xor eax, eax
mov dword [esp + 0x14], eax
fldz
fstp qword [esi + 0x18]
mov dword [esi + 0x40], eax
mov dword [esi + 0x10], eax
mov byte [esi + 0xc], al
mov byte [esi + 0x20], al
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x566940
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc0]
cmp dword [eax + 0x28], 2
je 0x5669fd
mov ecx, dword [str.NOOP_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x6a56d8]
mov word [ebp - 0x18], dx
mov al, byte [0x6a56da]
mov byte [ebp - 0x16], al
push str.Sending_NOOP_n
mov ecx, esi
call fcn.0055b6c0
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5669b4
sub eax, edx
push str.send___NOOP
push 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 0x31f4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
test eax, eax
je 0x5669ef
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], eax
jmp 0x566a2b
mov ecx, esi
call fcn.005665c0
mov byte [esi + 0x321c], 1
xor eax, eax
jmp 0x566a2b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061807e
mov esp, ebp
pop ebp
ret

Function at 0x566c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658d00
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x3204]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0xb8]
push ecx
push edx
mov ecx, dword [esi + 0xc0]
cmp dword [ebp + 0xc], ebx
je 0x566c68
call fcn.005cb500
jmp 0x566c6d
call fcn.005c94f0
mov eax, dword [esi + 0x3204]
mov ecx, dword [eax + 0xc8]
or ecx, dword [eax + 0xcc]
je 0x566cc2
mov byte [ebp - 0x11], bl
mov dword [ebp + 8], 4
lea edx, [ebp + 8]
push edx
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push str.bIgnMTCh
mov ecx, dword [0x754bec]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x566cb6
cmp dword [ebp + 0xc], ebx
je 0x566cb6
mov byte [ebp - 0x11], 1
jmp 0x566cc2
push ebx
mov ecx, dword [esi + 0x3204]
call fcn.00571e00
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x567130
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658d50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
cmp dword [esi + 0x3234], 0
jne 0x567180
cmp dword [esi + 0x9c], 1
jne 0x56720d
lea edi, [esi + 0x31e8]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.005a1df0
test eax, eax
jne 0x56719b
cmp dword [ebp - 0x24], 0x12
je 0x56720d
mov ecx, dword [str.QUIT_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x6a5860]
mov word [ebp - 0x18], dx
mov al, byte [0x6a5862]
mov byte [ebp - 0x16], al
push 1
mov ecx, dword [0x755ad0]
push ecx
mov ecx, esi
call fcn.0055bf00
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5671d0
sub eax, edx
push str.send___QUIT
push 0
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [esi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
test eax, eax
jne 0x56723b
push 0x12
mov ecx, edi
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
xor eax, eax
jmp 0x56723b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061807e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x118
push 0xffffffffffffffff
push 0x658de0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x114], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
push 1
mov eax, dword [0x755af4]
push eax
call fcn.0055bf00
push 0x6722a4
push str.PASV_s
lea ecx, [ebp]
push ecx
call fcn.0061af5b
add esp, 0xc
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x567781
sub eax, edx
push str.send___PASV
push 0
push eax
lea edx, [ebp]
push edx
mov eax, dword [esi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
test eax, eax
je 0x5677bc
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], eax
jmp 0x567808
push 4
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
xor eax, eax
jmp 0x567808
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x114]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x118
mov esp, ebp
pop ebp
ret
Function at 0x567ac0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658e40
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x50], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x54], 0x10
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [esi + 0x3230]
push edx
call sub.WS2_32.dll_accept
mov dword [esi + 0x31f8], eax
or ebx, 0xffffffff
cmp eax, ebx
jne 0x567bc8
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0x2733
je 0x567ba4
mov eax, dword [esi + 0x3230]
push eax
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3230], ebx
mov dword [esi + 0x323c], 0
push edi
push str.Error_code___ld_n
lea ecx, [ebp - 0x34]
push ecx
call fcn.0061af5b
add esp, 0xc
push 1
mov edx, dword [0x755a58]
push edx
mov ecx, esi
call fcn.0055bf00
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [0x755a58]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov edx, dword [esi + 0x3204]
mov dword [edx + 0x140], edi
mov eax, edi
jmp 0x567c41
mov ecx, esi
call fcn.0055b8e0
cmp eax, 0x1e
jle 0x567bc4
mov eax, dword [esi + 0x3204]
mov edi, 0x7533
mov dword [eax + 0x140], edi
mov dword [ebp - 0x4c], edi
mov eax, edi
jmp 0x567c41
push 1
mov ecx, dword [0x755b08]
push ecx
mov ecx, esi
call fcn.0055bf00
mov edx, dword [esi + 0x3230]
push edx
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3230], ebx
mov dword [esi + 0x323c], edi
mov eax, 1
mov dword [esi + 0x3238], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0x8004667e
mov ecx, dword [esi + 0x31f8]
push ecx
call sub.WS2_32.dll_ioctlsocket
xor eax, eax
jmp 0x567c41
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061807e
mov esp, ebp
pop ebp
ret
Function at 0x567c60
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x158]
sub esp, 0x158
push 0xffffffffffffffff
push 0x658e70
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x154], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x3204]
cmp dword [eax + 0x244], ebx
je 0x567cdc
mov ecx, dword [0x755a68]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov edx, dword [esi + 0x3204]
mov eax, 0x755a
mov dword [edx + 0x140], eax
jmp 0x567e87
mov dword [esi + 0x323c], ebx
lea edi, [esi + 0x3a40]
push edi
mov ecx, esi
call fcn.00567830
cmp eax, ebx
jne 0x567e87
mov eax, dword [esi + 0x194]
cmp eax, ebx
je 0x567d0e
cmp byte [eax + 0x15c], bl
jne 0x567e59
mov ebx, 0x10
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp]
push ecx
mov edx, dword [edi]
push edx
call sub.WS2_32.dll_getsockname
test eax, eax
jge 0x567d97
call sub.WS2_32.dll_WSAGetLastError
mov ebx, eax
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_closesocket
mov dword [edi], 0xffffffff
push ebx
push str.Error_code___ld_n
lea ecx, [ebp + 0x134]
push ecx
call fcn.0061af5b
add esp, 0xc
push 1
mov edx, dword [0x755a5c]
push edx
mov ecx, esi
call fcn.0055bf00
lea eax, [ebp + 0x134]
push eax
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [0x755a5c]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov edx, dword [esi + 0x3204]
mov dword [edx + 0x140], ebx
mov eax, ebx
jmp 0x567e87
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [esi + 0x31f4]
push edx
call sub.WS2_32.dll_getsockname
test eax, eax
jl 0x567d2a
movzx eax, byte [ebp + 3]
push eax
movzx ecx, byte [ebp + 2]
push ecx
movzx edx, byte [ebp + 0x17]
push edx
movzx eax, byte [ebp + 0x16]
push eax
movzx ecx, byte [ebp + 0x15]
push ecx
movzx edx, byte [ebp + 0x14]
push edx
push str.PORT__d__d__d__d__d__d_r_n
lea eax, [ebp + 0x20]
push eax
call fcn.0061af5b
add esp, 0x20
push 1
mov ecx, dword [0x755b0c]
push ecx
mov ecx, esi
call fcn.0055bf00
lea eax, [ebp + 0x20]
lea edx, [eax + 1]
jmp 0x567e00
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x567e00
sub eax, edx
push str.send___PORT
push 0
push eax
lea edx, [ebp + 0x20]
push edx
mov eax, dword [esi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
test eax, eax
je 0x567e3b
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], eax
jmp 0x567e87
push 6
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
xor eax, eax
jmp 0x567e87
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x154]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x158
mov esp, ebp
pop ebp
ret
Function at 0x567eb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658ea0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
lea edi, [esi + 0x3640]
push 0x3ff
push 0
push edi
call fcn.00618760
add esp, 0xc
push str.recv___PORT
push edi
mov ecx, esi
call fcn.00566d00
test eax, eax
jne 0x567ff2
push str.Reply_on_PORT:_n
mov ecx, esi
call fcn.0055b6c0
push edi
mov ecx, esi
call fcn.0055b6c0
mov ecx, esi
cmp byte [edi], 0x32
je 0x567f7f
push 1
mov eax, dword [0x755a60]
push eax
call fcn.0055bf00
mov ecx, dword [esi + 0x3a40]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3a40], 0xffffffff
push edi
mov ecx, dword [esi + 0xac]
call fcn.005646e0
mov edx, dword [esi + 0x3204]
mov eax, 0x7550
mov dword [edx + 0x140], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
push edi
mov eax, dword [0x755b10]
push eax
call fcn.0055bf00
mov eax, dword [esi + 0x3a40]
mov dword [esi + 0x3230], eax
mov dword [esi + 0x323c], edi
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x14]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x12c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
push 1
mov eax, dword [0x755b24]
push eax
call fcn.0055bf00
push 0x6722a4
push edi
push str.TYPE__s_s
lea ecx, [ebp - 0x128]
push ecx
call fcn.0061af5b
add esp, 0x10
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x568203
sub eax, edx
push str.send___TYPE
push 0
push eax
lea edx, [ebp - 0x128]
push edx
mov eax, dword [esi + 0x31f4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
test eax, eax
je 0x568241
mov ecx, dword [esi + 0x3204]
mov dword [ecx + 0x140], eax
jmp 0x568299
lea ecx, [esi + 0x31e8]
cmp byte [edi], 0x41
jne 0x568250
push 0x11
jmp 0x568252
push 7
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
xor eax, eax
jmp 0x568299
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0061807e
mov esp, ebp
pop ebp
ret 4
Function at 0x5683e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x118
push 0xffffffffffffffff
push 0x658f30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x74f8a0]
xor eax, ebp
mov dword [ebp + 0x114], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push 1
mov eax, dword [0x755b30]
push eax
call fcn.0055bf00
mov edi, dword [ebp + 0x120]
mov ecx, dword [ebp + 0x124]
cmp byte [esi + 0xd0], bl
je 0x56844c
add edi, 0x30
adc ecx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
cmp byte [esi + 0xd7], bl
je 0x56847d
mov eax, dword [esi + 0x18c]
cdq
cmp ecx, edx
jl 0x568477
jg 0x56846b
cmp edi, eax
jb 0x568477
sub edi, eax
mov dword [ebp - 0x18], edi
sbb ecx, edx
mov dword [ebp - 0x14], ecx
jmp 0x56847d
mov byte [esi + 0xd7], bl
mov dword [esi + 0x3a60], edi
mov dword [esi + 0x3a64], ecx
push 0x6722a4
push ecx
push edi
push str.REST__I64d_s
lea ecx, [ebp]
push ecx
call fcn.0061af5b
add esp, 0x14
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.0055b6c0
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5684b2
sub eax, edx
push str.send___REST
push ebx
push eax
lea eax, [ebp]
push eax
mov ecx, dword [esi + 0x31f4]
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
cmp eax, ebx
je 0x5684ec
mov edx, dword [esi + 0x3204]
mov dword [edx + 0x140], eax
jmp 0x568538
push 0xa
lea ecx, [esi + 0x31e8]
call fcn.005a1cc0
mov ecx, esi
call fcn.0055b910
mov dword [esi + 0x9c], 4
xor eax, eax
jmp 0x568538
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x114]
xor ecx, ebp
call fcn.0061807e
add ebp, 0x118
mov esp, ebp
pop ebp
ret 8