joyce8/EMBER2024-capa huggingface dataset:
Function at 0x522310
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b0ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x28]
call fcn.00419670
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1b8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1c4], eax
cmp dword [ebp - 0x1c4], 0
je 0x5223a7
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419040
mov edx, dword [ebp - 0x1bc]
or edx, 1
mov dword [ebp - 0x1bc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00419eb0
mov eax, dword [ebp + 8]
jmp 0x522439
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x5223ef
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419040
mov edx, dword [ebp - 0x1bc]
or edx, 1
mov dword [ebp - 0x1bc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00419eb0
mov eax, dword [ebp + 8]
jmp 0x522439
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x28]
call fcn.004157b0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419040
mov edx, dword [ebp - 0x1bc]
or edx, 1
mov dword [ebp - 0x1bc], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00419eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret
Function at 0x542e70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0x6e677c
mov eax, dword [ebp + 8]
push eax
call fcn.00671539
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x542e97
xor eax, eax
jmp 0x542ebe
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00673e65
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.006712b9
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x543220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [ebp - 0x10c]
call fcn.005431c0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebp - 0x108]
push edx
push 0x6e67a8
mov eax, dword [ebp + 8]
push eax
call fcn.0066d97a
add esp, 0x10
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10c]
call fcn.005432c0
test eax, eax
je 0x54329b
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x54325d
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10c]
call fcn.00543420
jmp 0x5432ae
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 4

Function at 0x5432c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], ecx
cmp dword [ebp + 8], 0
jne 0x5432e6
xor eax, eax
jmp 0x543404
mov eax, dword [ebp + 8]
push eax
call fcn.00671990
add esp, 4
cmp eax, 2
jae 0x5432fe
xor eax, eax
jmp 0x543404
push 0x105
push 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0066eb10
add esp, 0xc
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.006733f0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00671990
add esp, 4
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 2
jne 0x54337e
mov edx, 1
shl edx, 0
movsx eax, byte [ebp + edx - 0x10c]
cmp eax, 0x3a
jne 0x543375
push 0x6e67a4
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00673020
add esp, 8
jmp 0x54337c
xor eax, eax
jmp 0x543404
jmp 0x5433c1
mov edx, dword [ebp - 0x110]
movsx eax, byte [ebp + edx - 0x10d]
cmp eax, 0x2f
jne 0x5433c1
mov ecx, dword [ebp - 0x110]
sub ecx, 1
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 0x105
jae 0x5433ae
jmp 0x5433b3
call fcn.0066e9b7
mov edx, dword [ebp - 0x118]
mov byte [ebp + edx - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x5433f4
mov ecx, dword [ebp - 0x114]
and ecx, 0x10
je 0x5433f4
mov dword [ebp - 0x11c], 1
jmp 0x5433fe
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 4

Function at 0x543560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x543592
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x543592
mov eax, 1
jmp 0x543595
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x549160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x549178
cmp dword [ebp + 0xc], 8
jg 0x549178
mov byte [ebp - 1], 1
jmp 0x54917c
mov byte [ebp - 1], 0
push str.bad_pack_level
movzx eax, byte [ebp - 1]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005461b0
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x5491c5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, 4
imul ecx, eax, 0x7fff
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x4af70], 0
push 0x1fffc
push 0
mov eax, dword [ebp + 8]
add eax, 0x4af70
push eax
call fcn.0066eb10
add esp, 0xc
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x6e6b0a]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af98], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x6e6b08]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af9c], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x6e6b0c]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6afa0], edx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx*8 + 0x6e6b0e]
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af94], edx
cmp dword [ebp + 0xc], 2
jg 0x54925d
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 4
mov eax, dword [ebp + 0x10]
mov word [eax], dx
jmp 0x549272
cmp dword [ebp + 0xc], 8
jl 0x549272
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx]
or edx, 2
mov eax, dword [ebp + 0x10]
mov word [eax], dx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af84], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af74], 0
mov dword [ebp - 8], 0x8000
mov eax, dword [ebp - 8]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
add edx, 0x1af70
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x5492d9
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x5492f5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x54936d
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x54931d
mov edx, dword [ebp + 8]
push edx
call fcn.00548770
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 8], 0
jmp 0x54933c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 2
jae 0x54936d
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x549333
mov esp, ebp
pop ebp
ret
Function at 0x54a790
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x54a7a0
xor eax, eax
jmp 0x54a93d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x54a8fe
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x6e6b58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6e6b58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x6e6b58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x6e6b58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6e6b58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x6e6b58]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x6e6b58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x6e6b58]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x54a7a9
cmp dword [ebp + 0x10], 0
je 0x54a937
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x6e6b58]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x54a904
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x54a940
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
imul ecx, eax, 0
movsx edx, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
xor edx, dword [eax + ecx]
and edx, 0xff
mov ecx, 4
imul eax, ecx, 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax]
shr eax, 8
xor eax, dword [edx*4 + 0x6e6b58]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
mov dword [ecx + edx], eax
mov edx, 4
shl edx, 0
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + ecx]
and ecx, 0xff
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx]
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
imul eax, dword [edx + ecx], 0x8088405
add eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
mov eax, 4
shl eax, 1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx]
shr ecx, 0x18
mov edx, dword [ebp + 8]
xor ecx, dword [edx + eax]
and ecx, 0xff
mov eax, 4
shl eax, 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax]
shr eax, 8
xor eax, dword [ecx*4 + 0x6e6b58]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + ecx], eax
pop ebp
ret
Function at 0x54b1c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x54b2ac
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
je 0x54b21b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x54b21b
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0066d1a4
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x3c], 0
jne 0x54b247
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.00657741
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.0066e160
add esp, 0xc
mov dword [ebp - 0x10], 0
jmp 0x54b270
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x54b2a3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x10]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x30
push edx
call fcn.0054aa60
add esp, 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
jmp 0x54b267
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x20], 0
je 0x54b307
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x28]
jb 0x54b2d4
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x54b33c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx + 0x24]
push eax
call fcn.0066e160
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x54b33c
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
je 0x54b330
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
jmp 0x54b33c
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 8
Function at 0x54b9f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x778400]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x84], 0
je 0x54babc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x8c]
cmp eax, dword [edx + 0x88]
jb 0x54ba2e
xor eax, eax
jmp 0x54bb2c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x88]
sub eax, dword [edx + 0x8c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0xc]
jbe 0x54ba51
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x84]
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 0x8c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0066e160
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x8c]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0054a790
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0x10]
jmp 0x54bb2c
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x7c], 0
je 0x54bb20
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x54baed
xor eax, eax
jmp 0x54bb2c
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0054a790
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 8]
jmp 0x54bb2c
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c98d
mov esp, ebp
pop ebp
ret 8

Function at 0x552ab0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x552af9
mov al, byte [esi]
push eax
call fcn.0055e6d0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x552ad7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x553d40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x553d5e
cmp dword [esi + 0x6c], 0
je 0x553d5e
push 2
push 3
push esi
call fcn.0055ec90
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0056cb90
add esp, 4
test esi, esi
je 0x553d7e
cmp dword [esi + 0x6c], 0
je 0x553d7e
push 3
push esi
call fcn.0055ecd0
add esp, 8
pop esi
pop ebp
ret
Function at 0x55c100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1d0], 0
je 0x55c144
push esi
push 1
push edi
call fcn.0054efa0
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0054efa0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x55c17a
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x6e8b98
push 2
push eax
call fcn.00673e65
push dword [edi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00673e65
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0055ca50
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x55c5c4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x55c59c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0058ad90
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0055c180
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48d4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x55ca50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2c8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x55cb0d
cmp dword [ebx + ecx*4 + 0x1bc], 0x55c490
jne 0x55cb0d
cmp dword [esi], 0
je 0x55ca9f
test edi, edi
je 0x55cb0d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0055bcb0
add esp, 0x14
cmp eax, 0xffffffff
je 0x55cb0d
test al, 1
je 0x55cb0d
cmp dword [esi], 0
jne 0x55caf4
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x76f6b0]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x55caf4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x55cb0d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x55cc10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x55cc30
push eax
call fcn.00555170
add esp, 4
test eax, eax
jne 0x55cc52
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x55cc2c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x55cc52
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x55d3d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x786d00]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x55d421
push 3
push 2
push eax
push 6
call fcn.0058b7a0
add esp, 0x10
test al, al
je 0x55d415
mov dword [0x786d00], 2
mov esp, ebp
pop ebp
ret
mov dword [0x786d00], 1
jmp 0x55d426
cmp eax, 2
je 0x55d466
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x55d44d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x55d466
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x55d540
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x55d588
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0058ad90
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0055c260
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0055c260
add esp, 8
pop edi
pop esi
pop ebp
ret