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

Disassembly:
sub esp, 0x10
push edi
mov edi, ecx
call fcn.00554f50
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 + 0x10], eax
cmp eax, 0xffffffff
jne 0x555447
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x555546
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.00555380
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x55547b
mov eax, dword [ebx]
cdq
cmp edx, dword [esi + 4]
jl 0x55547b
jg 0x555477
cmp eax, dword [esi]
jbe 0x55547b
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 + 0x10]
push ecx
push eax
mov dword [esp + 0x28], ecx
call ebp
cmp eax, 0xffffffff
jne 0x5554b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x55550e
mov eax, dword [ebx]
test eax, eax
je 0x555521
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
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 0x55552d
mov ecx, dword [esp + 0x10]
cmp ecx, dword [ebx]
jne 0x55552d
mov eax, dword [edi + 0x10]
push 2
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov dword [esp + 0x24], 0
call ebp
cmp eax, 0xffffffff
jne 0x555521
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x555521
mov ecx, edi
call fcn.00554f50
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.00554f50
test esi, esi
jne 0x555515
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
pop edi
add esp, 0x10
ret 0xc
Function at 0x5556c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x70a308]
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 0x5557b7
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 0x6833f0
push ecx
mov dword [esp + 0x3c], edx
call fcn.005fb4cb
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 + 0x3c], 0
je 0x55576b
mov ecx, dword [esi + 0x38]
push ecx
lea edx, [esp + 0x3c]
push str.fn_d
push edx
call fcn.005fb4cb
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 0x555753
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 0x5557b6
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.005fb4cb
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
pop ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005f85e7
add esp, 0x3c
ret 8

Function at 0x555900
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x55591b
mov edx, dword [esp + 8]
jmp 0x555910
cmp edx, dword [eax + 0x38]
je 0x55591e
mov eax, dword [eax]
test eax, eax
jne 0x555910
ret 8
mov dword [eax + 0x44], 1
mov dword [esp + 8], eax
jmp fcn.005556c0

Function at 0x555970
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x555a29
push ebx
mov ebx, dword [esi + 0x28]
test ebx, ebx
je 0x555997
push ebx
push edi
mov ecx, esi
call fcn.005556c0
mov ebx, dword [ebx]
test ebx, ebx
jne 0x555988
mov ecx, dword [esi + 8]
mov eax, ecx
lea ebx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5559a0
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 + 0x3c], 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 0x556da0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638350
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70a308]
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 + 0xb0]
cmp dword [eax + 0x28], 2
je 0x556e5d
mov ecx, dword [str.NOOP_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x6835f8]
mov word [ebp - 0x18], dx
mov al, byte [0x6835fa]
mov byte [ebp - 0x16], al
push str.Sending_NOOP_n
mov ecx, esi
call fcn.0054c540
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x556e14
sub eax, edx
push str.send___NOOP
push 0
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [esi + 0x31e4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
test eax, eax
je 0x556e4f
mov ecx, dword [esi + 0x31f4]
mov dword [ecx + 0x140], eax
jmp 0x556e8b
mov ecx, esi
call fcn.00556a20
mov byte [esi + 0x320c], 1
xor eax, eax
jmp 0x556e8b
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.005f85e7
mov esp, ebp
pop ebp
ret

Function at 0x557070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6383b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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 + 0x31f4]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0xb8]
push ecx
push edx
mov ecx, dword [esi + 0xb0]
cmp dword [ebp + 0xc], ebx
je 0x5570c8
call fcn.005b6130
jmp 0x5570cd
call fcn.005b4270
mov eax, dword [esi + 0x31f4]
mov ecx, dword [eax + 0xc8]
or ecx, dword [eax + 0xcc]
je 0x557122
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 [0x70f604]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x557116
cmp dword [ebp + 0xc], ebx
je 0x557116
mov byte [ebp - 0x11], 1
jmp 0x557122
push ebx
mov ecx, dword [esi + 0x31f4]
call fcn.00562230
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 0x557590
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638400
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70a308]
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 + 0x3224], 0
jne 0x5575e0
cmp dword [esi + 0x8c], 1
jne 0x55766d
lea edi, [esi + 0x31d8]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.0058deb0
test eax, eax
jne 0x5575fb
cmp dword [ebp - 0x24], 0x12
je 0x55766d
mov ecx, dword [str.QUIT_r_n]
mov dword [ebp - 0x1c], ecx
mov dx, word [0x683780]
mov word [ebp - 0x18], dx
mov al, byte [0x683782]
mov byte [ebp - 0x16], al
push 1
mov ecx, dword [0x710408]
push ecx
mov ecx, esi
call fcn.0054cc90
lea eax, [ebp - 0x1c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x557630
sub eax, edx
push str.send___QUIT
push 0
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [esi + 0x31e4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
test eax, eax
jne 0x55769b
push 0x12
mov ecx, edi
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
xor eax, eax
jmp 0x55769b
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.005f85e7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x118
push 0xffffffffffffffff
push 0x638490
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x70a308]
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 [0x71042c]
push eax
call fcn.0054cc90
push 0x6511cc
push str.PASV_s
lea ecx, [ebp]
push ecx
call fcn.005fb4cb
add esp, 0xc
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x557be1
sub eax, edx
push str.send___PASV
push 0
push eax
lea edx, [ebp]
push edx
mov eax, dword [esi + 0x31e4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
test eax, eax
je 0x557c1c
mov ecx, dword [esi + 0x31f4]
mov dword [ecx + 0x140], eax
jmp 0x557c68
push 4
lea ecx, [esi + 0x31d8]
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
mov dword [esi + 0x8c], 4
xor eax, eax
jmp 0x557c68
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.005f85e7
add ebp, 0x118
mov esp, ebp
pop ebp
ret
Function at 0x557f20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6384f0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x70a308]
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 + 0x3220]
push edx
call sub.WS2_32.dll_accept
mov dword [esi + 0x31e8], eax
or ebx, 0xffffffff
cmp eax, ebx
jne 0x558028
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [ebp - 0x4c], edi
cmp edi, 0x2733
je 0x558004
mov eax, dword [esi + 0x3220]
push eax
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3220], ebx
mov dword [esi + 0x322c], 0
push edi
push str.Error_code___ld_n
lea ecx, [ebp - 0x34]
push ecx
call fcn.005fb4cb
add esp, 0xc
push 1
mov edx, dword [0x710390]
push edx
mov ecx, esi
call fcn.0054cc90
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.0054c540
mov ecx, dword [0x710390]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554e70
mov edx, dword [esi + 0x31f4]
mov dword [edx + 0x140], edi
mov eax, edi
jmp 0x5580a1
mov ecx, esi
call fcn.0054c6e0
cmp eax, 0x1e
jle 0x558024
mov eax, dword [esi + 0x31f4]
mov edi, 0x7533
mov dword [eax + 0x140], edi
mov dword [ebp - 0x4c], edi
mov eax, edi
jmp 0x5580a1
push 1
mov ecx, dword [0x710440]
push ecx
mov ecx, esi
call fcn.0054cc90
mov edx, dword [esi + 0x3220]
push edx
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3220], ebx
mov dword [esi + 0x322c], edi
mov eax, 1
mov dword [esi + 0x3228], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 0x8004667e
mov ecx, dword [esi + 0x31e8]
push ecx
call sub.WS2_32.dll_ioctlsocket
xor eax, eax
jmp 0x5580a1
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.005f85e7
mov esp, ebp
pop ebp
ret
Function at 0x5580c0
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 0x638520
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x70a308]
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 + 0x31f4]
cmp dword [eax + 0x244], ebx
je 0x55813c
mov ecx, dword [0x7103a0]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554e70
mov edx, dword [esi + 0x31f4]
mov eax, 0x755a
mov dword [edx + 0x140], eax
jmp 0x5582e7
mov dword [esi + 0x322c], ebx
lea edi, [esi + 0x3a30]
push edi
mov ecx, esi
call fcn.00557c90
cmp eax, ebx
jne 0x5582e7
mov eax, dword [esi + 0x184]
cmp eax, ebx
je 0x55816e
cmp byte [eax + 0x15c], bl
jne 0x5582b9
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 0x5581f7
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.005fb4cb
add esp, 0xc
push 1
mov edx, dword [0x710394]
push edx
mov ecx, esi
call fcn.0054cc90
lea eax, [ebp + 0x134]
push eax
mov ecx, esi
call fcn.0054c540
mov ecx, dword [0x710394]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.00554e70
mov edx, dword [esi + 0x31f4]
mov dword [edx + 0x140], ebx
mov eax, ebx
jmp 0x5582e7
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0x10]
push ecx
mov edx, dword [esi + 0x31e4]
push edx
call sub.WS2_32.dll_getsockname
test eax, eax
jl 0x55818a
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.005fb4cb
add esp, 0x20
push 1
mov ecx, dword [0x710444]
push ecx
mov ecx, esi
call fcn.0054cc90
lea eax, [ebp + 0x20]
lea edx, [eax + 1]
jmp 0x558260
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x558260
sub eax, edx
push str.send___PORT
push 0
push eax
lea edx, [ebp + 0x20]
push edx
mov eax, dword [esi + 0x31e4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
test eax, eax
je 0x55829b
mov ecx, dword [esi + 0x31f4]
mov dword [ecx + 0x140], eax
jmp 0x5582e7
push 6
lea ecx, [esi + 0x31d8]
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
mov dword [esi + 0x8c], 4
xor eax, eax
jmp 0x5582e7
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.005f85e7
add ebp, 0x158
mov esp, ebp
pop ebp
ret
Function at 0x558310
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638550
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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 + 0x3630]
push 0x3ff
push 0
push edi
call fcn.005f8cb0
add esp, 0xc
push str.recv___PORT
push edi
mov ecx, esi
call fcn.00557160
test eax, eax
jne 0x558452
push str.Reply_on_PORT:_n
mov ecx, esi
call fcn.0054c540
push edi
mov ecx, esi
call fcn.0054c540
mov ecx, esi
cmp byte [edi], 0x32
je 0x5583df
push 1
mov eax, dword [0x710398]
push eax
call fcn.0054cc90
mov ecx, dword [esi + 0x3a30]
push ecx
call sub.WS2_32.dll_closesocket
mov dword [esi + 0x3a30], 0xffffffff
push edi
mov ecx, dword [esi + 0x9c]
call fcn.00554e70
mov edx, dword [esi + 0x31f4]
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 [0x710448]
push eax
call fcn.0054cc90
mov eax, dword [esi + 0x3a30]
mov dword [esi + 0x3220], eax
mov dword [esi + 0x322c], 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 0x5585f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x638590
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x70a308]
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 [0x71045c]
push eax
call fcn.0054cc90
push 0x6511cc
push edi
push str.TYPE__s_s
lea ecx, [ebp - 0x128]
push ecx
call fcn.005fb4cb
add esp, 0x10
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x558663
sub eax, edx
push str.send___TYPE
push 0
push eax
lea edx, [ebp - 0x128]
push edx
mov eax, dword [esi + 0x31e4]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
test eax, eax
je 0x5586a1
mov ecx, dword [esi + 0x31f4]
mov dword [ecx + 0x140], eax
jmp 0x5586f9
lea ecx, [esi + 0x31d8]
cmp byte [edi], 0x41
jne 0x5586b0
push 0x11
jmp 0x5586b2
push 7
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
mov dword [esi + 0x8c], 4
xor eax, eax
jmp 0x5586f9
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.005f85e7
mov esp, ebp
pop ebp
ret 4
Function at 0x558840
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x118]
sub esp, 0x118
push 0xffffffffffffffff
push 0x6385e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70a308]
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 [0x710468]
push eax
call fcn.0054cc90
mov edi, dword [ebp + 0x120]
mov ecx, dword [ebp + 0x124]
cmp byte [esi + 0xc0], bl
je 0x5588ac
add edi, 0x30
adc ecx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ecx
cmp byte [esi + 0xc7], bl
je 0x5588dd
mov eax, dword [esi + 0x17c]
cdq
cmp ecx, edx
jl 0x5588d7
jg 0x5588cb
cmp edi, eax
jb 0x5588d7
sub edi, eax
mov dword [ebp - 0x18], edi
sbb ecx, edx
mov dword [ebp - 0x14], ecx
jmp 0x5588dd
mov byte [esi + 0xc7], bl
mov dword [esi + 0x3a50], edi
mov dword [esi + 0x3a54], ecx
push 0x6511cc
push ecx
push edi
push str.REST__I64d_s
lea ecx, [ebp]
push ecx
call fcn.005fb4cb
add esp, 0x14
lea edx, [ebp]
push edx
mov ecx, esi
call fcn.0054c540
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x558912
sub eax, edx
push str.send___REST
push ebx
push eax
lea eax, [ebp]
push eax
mov ecx, dword [esi + 0x31e4]
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
cmp eax, ebx
je 0x55894c
mov edx, dword [esi + 0x31f4]
mov dword [edx + 0x140], eax
jmp 0x558998
push 0xa
lea ecx, [esi + 0x31d8]
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
mov dword [esi + 0x8c], 4
xor eax, eax
jmp 0x558998
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.005f85e7
add ebp, 0x118
mov esp, ebp
pop ebp
ret 8
Function at 0x558c40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x2da4]
mov eax, 0x2da4
call fcn.005f9ca0
push 0xffffffffffffffff
push 0x638650
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x2da0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0x2db0]
mov edi, dword [ebp + 0x2db4]
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
push 0x2da0
push esi
lea eax, [ebp]
push eax
call fcn.005f8cb0
mov ecx, dword [edi]
push ecx
push esi
mov edx, dword [ebx]
push edx
call fcn.005f8cb0
add esp, 0x18
jmp 0x558cc0
push 0
push 0x2da0
lea eax, [ebp]
push eax
mov ecx, dword [ebp + 0x2dac]
push ecx
call sub.WS2_32.dll_recv
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x558d70
mov edx, dword [ebp - 0x14]
lea esi, [eax + edx]
mov dword [ebp - 0x24], esi
cmp esi, dword [edi]
jle 0x558d55
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
lea edi, [esi + esi]
push edi
call fcn.005cfaa6
add esp, 4
mov esi, eax
test esi, esi
jne 0x558d21
push 1
mov ecx, dword [0x7102d4]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0054cc90
mov eax, 0x753b
jmp 0x558da4
push edi
push 0
push esi
call fcn.005f8cb0
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
mov ecx, dword [ebx]
push ecx
push esi
call fcn.005fa190
mov dword [ebx], esi
mov edx, dword [ebp - 0x18]
mov dword [edx], edi
mov eax, dword [ebp - 0x20]
push eax
call fcn.005cfa9b
add esp, 0x1c
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
push eax
lea ecx, [ebp]
push ecx
mov edx, dword [ebx]
add edx, dword [ebp - 0x14]
push edx
call fcn.005fa190
add esp, 0xc
mov dword [ebp - 0x14], esi
jmp 0x558cc0
xor eax, eax
jmp 0x558da4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2da0]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x2da4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x55a620
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6388f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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 + 0x184]
cmp dword [eax], ebx
je 0x55a77a
cmp dword [eax + 0x168], ebx
je 0x55a77a
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 1
push 1
mov eax, dword [0x710414]
push eax
mov ecx, esi
call fcn.0054cc90
push 0x6511cc
mov ecx, dword [esi + 0x184]
mov edx, dword [ecx + 0x168]
push edx
push str.USER__s_s
lea eax, [ebp - 0x14]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0054c540
mov edx, dword [ebp - 0x14]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x55a6c0
sub eax, edi
push str.send___Proxy_USER_n
push ebx
push eax
push edx
mov edx, dword [esi + 0x31e4]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0054cd80
mov edi, eax
cmp edi, ebx
je 0x55a716
mov eax, dword [esi + 0x31f4]
mov dword [eax + 0x140], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
lea ecx, [esi + 0x31d8]
call fcn.0058dd80
mov ecx, esi
call fcn.0054c710
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402550
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
or eax, 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