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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.100527c0
add esp, 8
mov byte [eax], 0
mov eax, str.0f40fc17.ppf
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001144
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10001154
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
mov ecx, eax
lea eax, [ebp - 0x108]
push 0
and ecx, 3
push closesocket
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x1007fc08], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x1007fc10], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x1007fc14
push dword [0x1007fc10]
mov dword [0x1007fc0c], eax
push eax
push dword [0x1007fc08]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x1007fc08]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
push dword [0x1007fc10]
push dword [0x1007fc0c]
push str.d144917f_7d6f_e476_a455_dc4dba1c0ea7
call fcn.10001020
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret

Function at 0x10001280
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x1000128e
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 0x40
jb 0x100012a1
mov eax, 0x5a4d
cmp ax, word [ecx]
je 0x100012a6
xor eax, eax
pop esi
pop ebp
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x100012df
cmp dword [edi + ecx], 0x4550
jne 0x100012df
mov eax, 0x14c
cmp ax, word [edi + ecx + 4]
jne 0x100012df
test byte [edi + ecx + 0x16], 2
je 0x100012df
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x100012e5
pop edi
xor eax, eax
pop esi
pop ebp
ret
add eax, 0xffffff20
xor edx, edx
push ebx
movzx ebx, ax
xor eax, eax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
cmp ax, di
jae 0x1000131e
movzx eax, dx
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x10001328
inc edx
cmp dx, di
jb 0x10001300
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10001830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jbe 0x100018e8
mov eax, dword [eax + edi + 0x78]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov ebx, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
add ebx, edi
mov edx, dword [eax + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
cmp ecx, edx
ja 0x10001876
mov eax, dword [ebx + ecx*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [eax + 0x20]
xor esi, esi
mov ecx, dword [eax + 0x24]
add edx, edi
mov ebx, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 8], edx
mov dword [ebp + 8], ecx
test ebx, ebx
je 0x100018e8
nop
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x100018b8
test dl, dl
je 0x100018b4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x100018b8
add ecx, 2
add eax, 2
test dl, dl
jne 0x10001898
xor eax, eax
jmp 0x100018bd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100018cd
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
cmp eax, dword [ebp - 4]
jbe 0x100018d7
inc esi
cmp esi, ebx
jae 0x100018e8
mov edx, dword [ebp - 8]
jmp 0x10001890
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10002930
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1006a35b
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0x1006a35b
push dword [esi + 0x1c]
mov dword [ebp - 0x40], 0x1006a35b
push dword [esi + 0x18]
call fcn.100349d0
add esp, 0xc
test eax, eax
jne 0x10002a5e
push edi
mov edi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xc]
push 0x17
call edi
cmp eax, 1
jne 0x1000299d
mov dword [ebp - 0x3c], 0x1006a38c
mov dword [ebp - 0x40], 0x1006a390
lea eax, [ebp - 0x14]
push eax
push dword [esi]
push 0x17
call edi
cmp eax, 1
jne 0x100029b8
mov ebx, 0x1006a38c
mov edi, 0x1006a390
jmp 0x100029bd
mov edi, 0x1006a35b
mov eax, dword [esi + 0x14]
mov ecx, 0x1006a35b
cmp eax, 8
je 0x100029e5
cmp eax, 0x10
je 0x100029de
cmp eax, 0x20
mov edx, ecx
mov eax, 0x1006a358
cmove edx, eax
jmp 0x100029ea
mov edx, 0x1006a354
jmp 0x100029ea
mov edx, 0x1006a350
mov eax, dword [esi + 8]
cmp eax, 8
je 0x10002a0b
cmp eax, 0x10
je 0x10002a04
cmp eax, 0x20
mov eax, 0x1006a358
cmove ecx, eax
jmp 0x10002a10
mov ecx, 0x1006a354
jmp 0x10002a10
mov ecx, 0x1006a350
push dword [esi + 0x24]
movzx eax, byte [esi + 0x20]
push eax
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x34]
inc eax
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x76c
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [ebp - 0x40]
movzx eax, word [esi + 4]
push dword [esi + 0xc]
push dword [ebp - 0x3c]
push edx
push eax
push edi
push dword [esi]
push ebx
push ecx
push str._s__s_s_s__u__s__s_s_s__u___d_02d_02d__02d:_02d:_02d___u__d_n
push dword [ebp - 0x44]
call sym.libcurl.dll_curl_mfprintf
add esp, 0x50
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x10007000
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007fc34]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10007052
push 3
push 2
push eax
push eax
push 6
call fcn.1004fa60
add esp, 0x14
test al, al
je 0x10007046
mov dword [0x1007fc34], 2
mov esp, ebp
pop ebp
ret
mov dword [0x1007fc34], 1
jmp 0x10007057
cmp eax, 2
je 0x10007097
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 0x1000707e
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10007097
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 0x10007a10
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx + 8]
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [edi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10007a50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [edi + 0xbc]
push eax
push dword [ebp + 0xc]
call fcn.10007f00
add esp, 0xc
pop edi
pop ebx
pop ebp
ret
push dword [ebp + 0xc]
mov byte [edi + 0x156], 1
push ebx
call fcn.10007ca0
push dword [edi + 0x118]
cmp dword [edi], 5
lea eax, [edi + 0xbc]
push eax
push dword [edi + 0x11c]
lea eax, [edi + 0xea]
mov ecx, 0x1006ac24
push eax
push dword [edi + 0x98]
mov eax, str.QUIC
cmovne eax, ecx
push eax
push str._s_socket__d_connected:___s:_d_______s:_d_
push ebx
push dword [ebp + 0xc]
call fcn.10010b90
push 1
push dword [edi + 0x98]
call fcn.100344c0
add esp, 0x34
xor eax, eax
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx]
push 0
push dword [ebp + 0x10]
mov eax, dword [eax + 8]
push ecx
mov dword [edi], 0
mov dword [ebp - 0x108], eax
push dword [eax + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10007b56
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10007b21
mov dword [edi], 0x51
jmp 0x10007b53
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
call fcn.10043740
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.10010a90
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8a8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
mov eax, dword [ebp - 0x108]
push esi
push dword [eax + 0x98]
push dword [ebp + 0x10]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.10010b90
mov ecx, dword [ebp - 4]
add esp, 0x1c
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x10007ca0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x10007dcc
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x48], 0x800
jne 0x10007dcc
push 0x80
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.10053f70
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10007d5d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.10043740
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10010a90
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.1000a050
add esp, 0x10
test al, al
jne 0x10007dcc
call fcn.10054157
mov esi, eax
call fcn.10054157
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [esi]
call fcn.10043740
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10010a90
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100528f7
mov esp, ebp
pop ebp
ret

Function at 0x10008020
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x694], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1000806d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d:_errno__d
jmp 0x100080d4
push dword [esi + 0x630]
mov dword [ebp - 0x10], 1
call fcn.1004fd10
push dword [esi + 0x634]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.1004fd10
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100080dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:_errno__d
push esi
call fcn.10010b50
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x100080f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 4
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10008152
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10043740
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.10010b50
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x1000cc60
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]
xor ebx, ebx
add eax, esi
mov ecx, eax
sub ecx, esi
cmp esi, eax
push edi
cmova ecx, edx
mov edi, 0x1505
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x1000cca9
mov al, byte [esi]
push eax
call fcn.100433f0
movsx ecx, al
lea esi, [esi + 1]
mov eax, edi
inc ebx
shl eax, 5
add esp, 4
add eax, edi
xor ecx, eax
mov edi, ecx
cmp ebx, dword [ebp + 8]
jb 0x1000cc87
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000d750
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x1000d8e7
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000d8d3
push edi
lea esp, [esp]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000d7ae
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000d7a0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x1000d7b0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x1000d7c2
mov eax, 0x10
jmp 0x1000d7d0
cmp eax, 0x17
jne 0x1000d875
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x1000d875
mov edx, dword [esi + 0x10]
test edx, edx
je 0x1000d875
cmp edx, eax
jb 0x1000d875
add eax, 0x20
add eax, ecx
push eax
call dword [0x1007d2e4]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d8c5
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.10053390
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x1000d863
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.10053390
add esp, 0xc
mov eax, dword [ebp - 0x10]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x1000d872
mov dword [eax + 0x1c], edi
mov dword [ebp - 0x10], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1000d790
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop edi
test eax, eax
je 0x1000d892
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x1000d8cf
test ebx, ebx
je 0x1000d8b6
lea ebx, [ebx]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1007d2e8]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x1000d8a0
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x1000d883
test ebx, ebx
jne 0x1000d8df
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000db00
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1000db46
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
push eax
push 2
call fcn.1000da30
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1000db78
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push esi
push eax
push 0x17
call fcn.1000da30
add esp, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret

Function at 0x1000e770
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x1000e7a3
push 0x2e
push edi
call fcn.100542e0
add esp, 8
test eax, eax
je 0x1000e7a1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x1000ec70
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000ed08
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
push edi
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.1000ed70
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.1000dc40
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1000ed1a
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100528f7
mov esp, ebp
pop ebp
ret
Function at 0x10010970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.10054f6f
add esp, 0x18
test eax, eax
je 0x10010992
cmp eax, 0xffffffff
jne 0x10010994
xor eax, eax
pop ebp
ret

Function at 0x10010a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x68a], 0
je 0x10010a87
cmp dword [esi + 0x194], 0
je 0x10010a51
push esi
call fcn.10030250
push 1
push esi
mov byte [ebp + 8], al
call fcn.10030730
push dword [esi + 0x144]
mov eax, dword [esi + 0x194]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.10030730
add esp, 0x28
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x10010a87
push dword [esi + 0x140]
lea eax, [eax + eax*2]
push 1
add eax, 0x1006bde0
push 2
push eax
call fcn.100552f5
push dword [esi + 0x140]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100552f5
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x10013820
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, eax
lea esp, [esp]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call esi
sub eax, edi
cmp eax, 0x1f4
jb 0x10013840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016f10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1007e820]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x1a4]
push esi
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10016f86
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0x88], eax
jmp 0x10016f8c
mov eax, dword [ebp - 0x88]
cmp eax, 0xffffffff
jne 0x10016fb5
push str.Error_accept__ing_server_connect
push edi
call fcn.10010a90
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.10010b50
mov byte [ebx + 0x24d], 0
push 1
push dword [ebp - 0x88]
call fcn.100344c0
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push edi
call fcn.10006df0
mov esi, eax
add esp, 0x20
test esi, esi
je 0x1001700c
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x19c], 0
je 0x10017064
push 1
push edi
call fcn.10030730
mov eax, dword [edi + 0x19c]
push 1
push dword [ebp - 0x88]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.10030730
add esp, 0x1c
test esi, esi
je 0x10017064
push ebx
push edi
call fcn.10017640
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100528f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100528f7
mov esp, ebp
pop ebp
ret

Function at 0x10019bc0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [ebp + 8]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 2
je 0x10019bfd
push str.Couldnt_set_desired_mode
push esi
call fcn.10010a90
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x10019c14
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.10010b50
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0x10019c2c
push ebx
push esi
call fcn.100197d0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0x10019c40
push esi
call fcn.100186b0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0x10019c58
push 0xd
push 1
push esi
call fcn.100192a0
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0x10019c6b
push 0xe
push 1
push esi
call fcn.100192a0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret