joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53ec50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x60b893
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, ecx
push esi
push edi
xor esi, esi
mov dword [ebp + 0x34], 1
mov byte [ebp + 0xc], 1
push 0x80
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
mov dword [ebx], esi
call fcn.005dfcbc
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, esi
mov dword [esp + 0x24], esi
je 0x53ecb1
mov ecx, eax
call fcn.00566a20
mov edi, eax
mov dword [esp + 0x10], edi
jmp 0x53ecb7
mov dword [esp + 0x10], esi
mov edi, esi
cmp edi, esi
mov dword [esp + 0x24], 0xffffffff
je 0x53ee00
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00567830
test eax, eax
je 0x53edf8
mov esi, dword [edi + 0x40]
test esi, esi
je 0x53ecef
mov dword [esp + 0x14], 1
mov eax, dword [edi + 0x78]
test eax, eax
je 0x53ed0e
mov dword [ebx], 1
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, 1
jmp 0x53ee04
mov eax, dword [esp + 0x14]
test eax, eax
je 0x53edf8
xor ebx, ebx
test esi, esi
je 0x53eddd
mov edi, dword [esp + 0x34]
mov ebp, dword [sym.imp.WININET.dll_InternetCombineUrlA]
mov eax, dword [0x6cc564]
inc ebx
mov dword [esp + 0x30], eax
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 1
call fcn.005e3c86
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 1
mov ecx, dword [esi + 0x14]
push 0x4000000
push edx
push eax
push ecx
push edi
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x2c]
test eax, eax
jbe 0x53edb9
cmp eax, 0x7d0
jae 0x53edb9
push eax
lea ecx, [esp + 0x34]
call fcn.005e3c86
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x2c]
push 0x4000000
push edx
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x53edb9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
mov edx, dword [esp + 0x30]
push 0
push 0
push 0
push 0
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x34]
push edx
call fcn.0053ee20
mov esi, dword [esi + 0x3c]
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.005e38b9
test esi, esi
jne 0x53ed2e
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x60]
mov dword [ebp + 0x18], eax
mov ecx, dword [edi + 0x64]
mov dword [ebp + 0x1c], ecx
mov edx, dword [edi + 0x68]
mov ecx, dword [esp + 0x38]
mov dword [ebp + 0x10], edx
mov eax, dword [edi + 0x78]
mov dword [ecx], eax
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x53ef80
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x53f037
push edi
mov edi, dword [esi + 0x20]
test edi, edi
je 0x53efa7
push edi
push ebx
mov ecx, esi
call fcn.0053f040
mov edi, dword [edi]
test edi, edi
jne 0x53ef98
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 + 0x34]
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 0x53f040
Capabilities:
Set registry value

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b9df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x6cc564]
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 + 0x17c]
mov byte [ebp - 4], 2
cmp dword [ecx], 0
je 0x5405de
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 0x14]
cmp eax, 0x15
je 0x5405aa
push eax
lea eax, [ebp - 0x18]
push str.:_ld
push eax
call fcn.005dc6eb
add esp, 0xc
jmp 0x5405b7
push 0x6d0ab8
lea ecx, [ebp - 0x18]
call fcn.005e3a42
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.005dc6eb
mov eax, dword [0x6cc564]
add esp, 0x14
mov dword [ebp - 0x14], eax
mov edx, dword [0x6d226c]
push 1
push edx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.005365f0
mov eax, dword [esi + 0x17c]
cmp dword [eax], 0
je 0x540605
mov eax, dword [ebp - 0x1c]
jmp 0x540625
mov ecx, dword [esi + 0xb0]
mov edx, dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
push edx
call fcn.005e3927
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov eax, dword [eax]
mov byte [ebp - 4], 4
push 0x6a2cd0
push eax
lea eax, [ebp - 0x14]
push str.USER__s_s
push eax
call fcn.005dc6eb
add esp, 0x10
mov dword [ebp - 4], 3
test bl, 1
je 0x540650
lea ecx, [ebp - 0x24]
call fcn.005e38b9
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.005366c0
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 + 0x31dc]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00536770
mov edi, eax
test edi, edi
je 0x5406d0
mov eax, dword [esi + 0x31ec]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [eax + 0x160], edi
call fcn.005e38b9
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005e38b9
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005e38b9
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 + 0x31d0]
call fcn.00580310
mov ecx, esi
call fcn.00538260
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], 2
call fcn.005e38b9
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005e38b9
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005e38b9
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 0x540760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60b9f8
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 + 0x17c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x5408ab
cmp dword [eax + 0x158], ebx
je 0x5408ab
mov eax, dword [0x6cc564]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6d226c]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.005365f0
mov edx, dword [esi + 0x17c]
push 0x6a2cd0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x158]
push eax
push str.USER__s_s
push ecx
call fcn.005dc6eb
mov edx, dword [ebp - 0x14]
add esp, 0x10
mov ecx, esi
push edx
call fcn.005366c0
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x31dc]
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.00536770
mov edi, eax
cmp edi, ebx
je 0x54084a
mov ecx, dword [esi + 0x31ec]
mov byte [ebp - 4], bl
mov dword [ecx + 0x160], edi
lea ecx, [ebp - 0x14]
call fcn.005e38b9
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 + 0x31d0]
call fcn.00580310
mov ecx, esi
call fcn.00538260
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], bl
call fcn.005e38b9
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 0x5408c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ba18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x6cc564]
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 [0x6d2268]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.005365f0
mov edx, dword [esi + 0xb0]
push 0x6a2cd0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
push str.PASS__s_s
push ecx
call fcn.005dc6eb
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 + 0x31dc]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00536770
mov edi, eax
cmp edi, ebx
je 0x540982
mov eax, dword [esi + 0x31ec]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [eax + 0x160], edi
call fcn.005e38b9
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 + 0x31d0]
call fcn.00580310
mov ecx, esi
call fcn.00538260
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], bl
call fcn.005e38b9
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 0x540a00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ba38
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 + 0x17c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], ebx
cmp dword [eax], ebx
je 0x540b40
cmp dword [eax + 0x15c], ebx
je 0x540b40
mov eax, dword [0x6cc564]
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6d2268]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.005365f0
mov edx, dword [esi + 0x17c]
push 0x6a2cd0
lea ecx, [ebp - 0x14]
mov eax, dword [edx + 0x15c]
push eax
push str.PASS__s_s
push ecx
call fcn.005dc6eb
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 + 0x31dc]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00536770
mov edi, eax
cmp edi, ebx
je 0x540adf
mov eax, dword [esi + 0x31ec]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
mov dword [eax + 0x160], edi
call fcn.005e38b9
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 + 0x31d0]
call fcn.00580310
mov ecx, esi
call fcn.00538260
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 4
mov byte [ebp - 4], bl
call fcn.005e38b9
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 0x540e60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ba70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x6d2254]
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.005365f0
push 0x6a2cd0
lea ecx, [ebp - 0x128]
push str.PASV_s
push ecx
call fcn.005c7c98
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x31dc]
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.00536770
test eax, eax
je 0x540f0a
mov ecx, dword [esi + 0x31ec]
mov dword [ecx + 0x160], 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 + 0x31d0]
call fcn.00580310
mov ecx, esi
call fcn.00538260
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 0x5416a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60baa0
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 + 0x3218]
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 + 0x31e0], eax
jne 0x5417c6
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
cmp edi, 0x2733
je 0x54177e
mov eax, dword [esi + 0x3218]
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 + 0x3218], 0xffffffff
mov dword [esi + 0x3224], ebx
call fcn.005c7c98
mov edx, dword [0x6d22f0]
add esp, 0xc
mov ecx, esi
push 1
push edx
call fcn.005365f0
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.005366c0
mov ecx, dword [0x6d22f0]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.0053e330
mov edx, dword [esi + 0x31ec]
mov eax, edi
mov dword [edx + 0x160], 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 + 0x41c]
push ebx
call fcn.005c8c6c
mov eax, dword [ebx]
mov edx, dword [esi + 0x410]
sub eax, edx
add esp, 4
cmp eax, 0x1e
mov dword [esi + 0x428], eax
jle 0x5417b3
mov eax, dword [esi + 0x31ec]
mov edi, 0x7533
mov dword [eax + 0x160], 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 [0x6d2240]
mov edi, 1
push edi
push ecx
mov ecx, esi
call fcn.005365f0
mov edx, dword [esi + 0x3218]
push edx
call sub.WS2_32.dll_closesocket
mov ecx, dword [esi + 0x31e0]
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push ecx
mov dword [esi + 0x3218], 0xffffffff
mov dword [esi + 0x3224], ebx
mov dword [esi + 0x3220], 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
Function at 0x542270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bb20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x6d2224]
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.005365f0
mov ebx, dword [ebp + 8]
push 0x6a2cd0
push ebx
lea ecx, [ebp - 0x128]
push str.TYPE__s_s
push ecx
call fcn.005c7c98
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x31dc]
push str.send___TYPE
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.00536770
test eax, eax
je 0x542320
mov ecx, dword [esi + 0x31ec]
mov dword [ecx + 0x160], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx], 0x41
jne 0x542329
push 0x11
jmp 0x54232b
push 7
lea ecx, [esi + 0x31d0]
call fcn.00580310
mov ecx, esi
call fcn.00538260
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 4

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bb40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x6d2218]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 1
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], ebx
call fcn.005365f0
mov al, byte [esi + 0xc0]
mov edi, dword [ebp + 8]
cmp al, bl
je 0x542502
mov ecx, dword [ebp + 0xc]
add edi, 0x30
adc ecx, ebx
jmp 0x542505
mov ecx, dword [ebp + 0xc]
cmp byte [esi + 0xc7], bl
je 0x54252a
mov eax, dword [esi + 0x174]
cdq
cmp ecx, edx
jl 0x542524
jg 0x54251e
cmp edi, eax
jb 0x542524
sub edi, eax
sbb ecx, edx
jmp 0x54252a
mov byte [esi + 0xc7], bl
push 0x6a2cd0
push ecx
push edi
lea ecx, [ebp - 0x128]
push str.REST__I64d_s
push ecx
call fcn.005c7c98
add esp, 0x14
lea edx, [ebp - 0x128]
mov ecx, esi
push edx
call fcn.005366c0
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
push str.send___REST
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
mov ecx, dword [esi + 0x31dc]
lea eax, [ebp - 0x128]
push eax
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00536770
cmp eax, ebx
je 0x5425a8
mov edx, dword [esi + 0x31ec]
mov dword [edx + 0x160], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xa
lea ecx, [esi + 0x31d0]
call fcn.00580310
mov ecx, esi
call fcn.00538260
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 8
Function at 0x542a90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bbb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0xb0]
mov dword [ebp - 4], 0
cmp dword [eax + 0x28], 2
jne 0x542adc
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 [str.NOOP_r_n]
mov dx, word [0x6bfce8]
mov al, byte [0x6bfcea]
mov dword [ebp - 0x1c], ecx
push str.Sending_NOOP_n
mov ecx, esi
mov word [ebp - 0x18], dx
mov byte [ebp - 0x16], al
call fcn.005366c0
lea edi, [ebp - 0x1c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x31dc]
repne scasb al, byte es:[edi]
not ecx
push str.send___NOOP
dec ecx
push 0
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00536770
test eax, eax
je 0x542b52
mov ecx, dword [esi + 0x31ec]
mov dword [ecx + 0x160], 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, esi
call fcn.0053fa00
mov byte [esi + 0x3204], 1
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 0x544080
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bcd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2db4
call fcn.005c76d0
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x18], ecx
push edi
xor eax, eax
mov ecx, 0xb68
lea edi, [ebp - 0x2dc4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [edx]
mov dword [ebp - 0x10], esp
mov ecx, dword [eax]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 0x2dc4]
push 0x2da0
push eax
push ecx
call sub.WS2_32.dll_recv
test eax, eax
mov dword [ebp - 0x24], eax
jle 0x544200
mov edx, dword [ebp - 0x14]
lea ecx, [eax + edx]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
cmp ecx, dword [edx]
jle 0x54419a
mov eax, dword [ebp + 0xc]
lea ebx, [ecx + ecx]
push ebx
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
call fcn.005dfcbc
mov edx, eax
add esp, 4
test edx, edx
jne 0x544153
mov eax, dword [0x6d23ac]
mov ecx, dword [ebp - 0x18]
push 1
push eax
call fcn.005365f0
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
xor eax, eax
mov esi, ecx
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, dword [ecx]
mov esi, dword [eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov edx, dword [ebp + 0x10]
mov dword [edx], ebx
call fcn.005dfce5
mov eax, dword [ebp - 0x24]
add esp, 4
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x14]
mov ecx, eax
lea esi, [ebp - 0x2dc4]
mov edi, dword [edx]
add edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
jmp 0x5440db
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x545f90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60bdf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x6cc564]
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 [0x6d228c]
push 1
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.005365f0
mov edx, dword [esi + 0xb0]
push 0x6a2cd0
push 0x6a2cd0
mov eax, dword [edx + 4]
cmp eax, ebx
je 0x546002
push eax
lea eax, [ebp - 0x14]
push str.CWD__s_sTYPE_I_s
push eax
call fcn.005dc6eb
add esp, 0x14
jmp 0x546013
lea ecx, [ebp - 0x14]
push str.TYPE_I_sNOOP_s
push ecx
call fcn.005dc6eb
add esp, 0x10
mov ecx, esi
mov dword [esi + 0x8c], 0xb
call fcn.00538260
mov ecx, 0xff
xor eax, eax
lea edi, [esi + 0x3228]
mov edx, dword [ebp - 0x14]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push str.send___test_sequence
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
push edx
mov edx, dword [esi + 0x31dc]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00536770
mov edi, eax
cmp edi, ebx
je 0x546073
mov eax, dword [esi + 0x31ec]
mov dword [eax + 0x160], edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.005e38b9
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