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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00555be0
mov eax, dword [esp + 0x24]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x555c9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x555db9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 0xc
lea esi, [edi + 8]
mov ecx, edi
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00556220
mov ebx, dword [esp + 0x2c]
test eax, eax
je 0x555cd1
mov eax, dword [ebx]
mov ecx, dword [esi + 4]
cdq
cmp edx, ecx
jl 0x555cd1
jg 0x555ccd
cmp eax, dword [esi]
jbe 0x555cd1
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]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
sbb eax, edx
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x555d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x555d1d
mov ecx, edi
call fcn.00555be0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x555d2f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
mov eax, dword [edi + 0x10]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x555d97
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
cmp ecx, eax
jne 0x555d97
mov eax, dword [edi + 0x10]
lea edx, [esp + 0x14]
push 2
push edx
push 0
push eax
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0xffffffff
jne 0x555d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x555d23
mov ecx, edi
call fcn.00555be0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call fcn.00555be0
test esi, esi
je 0x555db6
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x555ee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x10], ebp
mov eax, dword [esi]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x18]
sub eax, 4
push ebp
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [edi + 0x10]
sbb ecx, ebp
push eax
mov dword [esp + 0x28], ecx
call ebx
cmp eax, 0xffffffff
jne 0x555f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x556038
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ebp
push ecx
lea edx, [esp + 0x24]
push 4
push edx
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5560c9
cmp dword [esp + 0x34], 4
jne 0x5560c9
lea ecx, [esp + 0x1c]
push ecx
call fcn.005a0610
add esp, 4
cmp eax, ebp
jbe 0x5560c9
mov ecx, 0xfffffffc
xor edx, edx
sub ecx, eax
mov eax, 0xffffffff
sbb eax, edx
mov edx, dword [esi]
add edx, ecx
mov dword [esi], edx
mov ecx, dword [esi + 4]
adc ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
cmp eax, ebp
jl 0x5560c9
jg 0x555fa5
cmp ecx, ebp
jbe 0x5560c9
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
push ebp
push edx
push ecx
push eax
mov dword [esp + 0x24], ecx
call ebx
cmp eax, 0xffffffff
jne 0x555fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x556038
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x34]
push ebp
push ecx
lea edx, [esp + 0x24]
push 0xc
push edx
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x555ff5
cmp dword [esp + 0x34], 0xc
jne 0x5560c9
mov al, byte [esp + 0x2c]
test al, al
mov al, byte [esp + 0x1c]
je 0x55600a
cmp al, 8
je 0x556022
jmp 0x555ef9
cmp al, 9
jne 0x555ef9
mov cl, byte [esp + 0x27]
and cl, 0xf0
cmp cl, 0x10
jne 0x555ef9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jge 0x55604b
jmp 0x555ef9
mov ecx, edi
call fcn.00555be0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov ax, word [esp + 0x20]
mov cl, byte [esp + 0x22]
xor edx, edx
mov byte [esp + 0x2c], 0
mov word [esp + 0x2d], dx
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], dl
mov byte [esp + 0x2f], cl
mov edx, dword [esp + 0x2c]
push edx
call sub.WS2_32.dll_ntohl
movsx ecx, byte [esp + 0x23]
mov edx, dword [esp + 0x38]
push 2
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x30], ebp
mov dword [edx], eax
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x30]
push eax
push ebp
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x5560bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebp
je 0x5560bd
mov ecx, edi
call fcn.00555be0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
Function at 0x5560e0
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
mov esi, ecx
push edi
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov byte [eax], 0
mov edx, dword [esi + 0x10]
push 0
push ecx
push edi
push edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], ebx
call ebp
cmp eax, 0xffffffff
jne 0x55613c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x10], eax
je 0x55613c
mov ecx, esi
call fcn.00555be0
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]
lea eax, [esp + 0x20]
push 0
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x556176
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cmp eax, ecx
jne 0x556176
mov edx, dword [esp + 0x34]
mov byte [edx], 1
mov eax, dword [esp + 0x28]
xor ecx, ecx
add eax, edi
lea edx, [esp + 0x18]
adc ecx, ebx
add eax, 4
push 0
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi + 0x10]
adc ecx, 0
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x5561c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x5561c0
mov ecx, esi
call fcn.00555be0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x18
mov ecx, dword [esi + 0x10]
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 0x5561e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
jne 0x5561ed
xor eax, eax
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 0xc

Function at 0x556220
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 0x10]
push esi
cmp eax, 0xffffffff
jne 0x556231
xor eax, eax
pop esi
pop ecx
ret 4
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 dword [esi], 0xffffffff
jne 0x556270
mov eax, dword [esi + 4]
test eax, eax
jne 0x556270
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x556270
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.005e9a70
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x556840
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x5568f7
push edi
mov edi, dword [esi + 0x28]
test edi, edi
je 0x556867
push edi
push ebx
mov ecx, esi
call fcn.00556900
mov edi, dword [edi]
test edi, edi
jne 0x556858
mov edx, dword [esi + 8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
push edx
push 1
push eax
push str.f_templ
push ebx
call edi
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.f_tfc
push ebx
mov dword [esp + 0x28], eax
call edi
mov cl, byte [esi + 0xc]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
push 4
test cl, cl
push 0
push str.f_uf
setne dl
push ebx
mov dword [esp + 0x28], edx
call edi
lea ecx, [esi + 0x18]
push 8
push ecx
push 0
push 0
push str.f_td
push ebx
call edi
mov eax, dword [esi + 0x3c]
xor edx, edx
test eax, eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.f_uu
setne dl
push ebx
mov dword [esp + 0x28], edx
call edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x556900
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
push edi
mov edi, ecx
test ebx, ebx
je 0x5569ee
mov esi, dword [esp + 0x50]
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x38], edx
mov edx, dword [esi + 0x38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x44]
push edx
lea eax, [esp + 0x14]
push 0x6c00bc
push eax
mov dword [esp + 0x4c], ecx
call fcn.005e7bd3
add esp, 0xc
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push 0x18
push ecx
push 0
push 0
push edx
push ebx
call ebp
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5569a3
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x10]
push eax
push str.fn_d
push ecx
call fcn.005e7bd3
mov edx, dword [esi + 0x48]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
lea edx, [esp + 0x1c]
push eax
push edx
push ebx
call ebp
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov edx, eax
or edx, ecx
je 0x5569ee
mov edx, dword [esi + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x14]
push str.fl_d
push eax
mov dword [esp + 0x30], ecx
call fcn.005e7bd3
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push 0x10
push ecx
push 0
push 0
push edx
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8
Function at 0x5580b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b9af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6cd768]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov ecx, dword [esi + 0x184]
mov byte [ebp - 4], 2
cmp dword [ecx], 0
je 0x55814e
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x14]
cmp eax, 0x15
je 0x55811a
push eax
lea eax, [ebp - 0x18]
push str.:_ld
push eax
call fcn.005fc86b
add esp, 0xc
jmp 0x558127
push 0x6d1c98
lea ecx, [ebp - 0x18]
call fcn.00603bc5
mov eax, dword [esi + 0xb0]
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
mov edx, dword [eax]
mov eax, dword [eax + 0xc]
push edx
push eax
push str._s__s_s
push ecx
call fcn.005fc86b
mov eax, dword [0x6cd768]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov edx, dword [0x6d35bc]
push 1
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0054d1d0
mov eax, dword [esi + 0x184]
cmp dword [eax], 0
je 0x558175
mov eax, dword [ebp - 0x1c]
jmp 0x558195
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.00603aaa
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 4
push 0x6a1db0
push eax
lea eax, [ebp - 0x14]
push str.USER__s_s
push eax
call fcn.005fc86b
add esp, 0x10
mov dword [ebp - 4], 3
test bl, 1
je 0x5581c0
lea ecx, [ebp - 0x24]
call fcn.00603a3c
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0054d2a0
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push str.send___USER_n
dec ecx
push 0
push ecx
push edx
mov edx, dword [esi + 0x31e4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
mov edi, eax
test edi, edi
je 0x558240
mov eax, dword [esi + 0x31f4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [eax + 0x140], edi
call fcn.00603a3c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00603a3c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 2
lea ecx, [esi + 0x31d8]
call fcn.0059db90
mov ecx, esi
call fcn.0054f6f0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], 2
call fcn.00603a3c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00603a3c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00603a3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5582d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b9c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x184]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x55841b
cmp dword [eax + 0x168], ebx
je 0x55841b
mov eax, dword [0x6cd768]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6d35bc]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0054d1d0
mov edx, dword [esi + 0x184]
push 0x6a1db0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x168]
push eax
push str.USER__s_s
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0054d2a0
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x31e4]
push str.send___Proxy_USER_n
not ecx
dec ecx
push ebx
push ecx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
mov edi, eax
cmp edi, ebx
je 0x5583ba
mov ecx, dword [esi + 0x31f4]
mov byte [ebp - 4], bl
mov dword [ecx + 0x140], edi
lea ecx, [ebp - 0x14]
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
lea ecx, [esi + 0x31d8]
call fcn.0059db90
mov ecx, esi
call fcn.0054f6f0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], bl
call fcn.00603a3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x558430
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x6cd768]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6d35b8]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0054d1d0
mov edx, dword [esi + 0xb0]
push 0x6a1db0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
push str.PASS__s_s
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push str.send___PASS_n
dec ecx
push ebx
push ecx
push edx
mov edx, dword [esi + 0x31e4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
mov edi, eax
cmp edi, ebx
je 0x5584f2
mov eax, dword [esi + 0x31f4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [eax + 0x140], edi
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
lea ecx, [esi + 0x31d8]
call fcn.0059db90
mov ecx, esi
call fcn.0054f6f0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], bl
call fcn.00603a3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ba08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x184]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x5586b0
cmp dword [eax + 0x16c], ebx
je 0x5586b0
mov eax, dword [0x6cd768]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6d35b8]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0054d1d0
mov edx, dword [esi + 0x184]
push 0x6a1db0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x16c]
push eax
push str.PASS__s_s
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push str.send___proxy_PASS_n
dec ecx
push ebx
push ecx
push edx
mov edx, dword [esi + 0x31e4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
mov edi, eax
cmp edi, ebx
je 0x55864f
mov eax, dword [esi + 0x31f4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [eax + 0x140], edi
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x15
lea ecx, [esi + 0x31d8]
call fcn.0059db90
mov ecx, esi
call fcn.0054f6f0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], bl
call fcn.00603a3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5589d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ba40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x6d35a4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push 1
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.0054d1d0
push 0x6a1db0
lea ecx, [ebp - 0x128]
push str.PASV_s
push ecx
call fcn.005e7bd3
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x31e4]
push str.send___PASV
not ecx
dec ecx
push 0
lea edx, [ebp - 0x128]
push ecx
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054d360
test eax, eax
je 0x558a7a
mov ecx, dword [esi + 0x31f4]
mov dword [ecx + 0x140], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [esi + 0x31d8]
call fcn.0059db90
mov ecx, esi
call fcn.0054f6f0
mov dword [esi + 0x8c], 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x559210
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ba70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], esp
mov edx, dword [esi + 0x3220]
lea ecx, [ebp - 0x2c]
push eax
xor ebx, ebx
push ecx
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x10
call sub.WS2_32.dll_accept
cmp eax, 0xffffffff
mov dword [esi + 0x31e8], eax
jne 0x559336
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x5592ee
mov eax, dword [esi + 0x3220]
push eax
call sub.WS2_32.dll_closesocket
push edi
lea ecx, [ebp - 0x4c]
push str.Error_code___ld_n
push ecx
mov dword [esi + 0x3220], 0xffffffff
mov dword [esi + 0x322c], ebx
call fcn.005e7bd3
mov edx, dword [0x6d3640]
add esp, 0xc
mov ecx, esi
push 1
push edx
call fcn.0054d1d0
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.0054d2a0
mov ecx, dword [0x6d3640]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.005559f0
mov edx, dword [esi + 0x31f4]
mov eax, edi
mov dword [edx + 0x140], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x424]
push ebx
call fcn.005e8b67
mov eax, dword [ebx]
mov edx, dword [esi + 0x418]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x430], eax
jle 0x559323
mov eax, dword [esi + 0x31f4]
mov edi, 0x7533
mov dword [eax + 0x140], edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x6d3590]
mov edi, 1
push edi
push ecx
mov ecx, esi
call fcn.0054d1d0
mov edx, dword [esi + 0x3220]
push edx
call sub.WS2_32.dll_closesocket
mov ecx, dword [esi + 0x31e8]
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push ecx
mov dword [esi + 0x3220], 0xffffffff
mov dword [esi + 0x322c], ebx
mov dword [esi + 0x3228], edi
mov dword [ebp - 0x18], edi
call sub.WS2_32.dll_ioctlsocket
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret