joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028030
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov dword [eax], 0
cmp dword [0x101f0e68], 0
push esi
je 0x1002808d
mov eax, dword [0x101f77b8]
test eax, eax
je 0x1002805d
push eax
call dword [0x101f0ebc]
add esp, 4
lea ebx, [ebp - 4]
mov eax, 0x14
call fcn.10025930
mov eax, dword [0x101f77b8]
test eax, eax
je 0x1002807d
push eax
call dword [0x101f0ec4]
add esp, 4
mov esi, dword [ebp - 4]
test esi, esi
jne 0x1002809c
lea eax, [esi + 7]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
call dword [0x101f0e8c]
add esp, 4
mov esi, eax
jmp 0x10028080
cmp dword [0x101f0e6c], 0
je 0x100280cd
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 4]
push edx
push 0
push esi
push 0x10028000
push 0
push 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edi
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x100280dd
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x100280f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002a000
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x1002a02d
push esi
lea esp, [esp]
movzx ecx, cl
movzx ecx, byte [ecx + 0x101d1308]
lea esi, [eax*8]
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x1002a010
pop esi
ret
Function at 0x1002a090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x1002a0ae
mov esi, 0x80
cmp esi, dword [edi]
jne 0x1002a0ba
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x101f76ac]
test eax, eax
je 0x1002a0c5
call eax
lea ecx, [esi*8]
push 0
push ecx
call fcn.10025a00
mov esi, eax
mov eax, dword [0x101f76b0]
add esp, 8
mov dword [ebp - 4], esi
test eax, eax
je 0x1002a0e7
call eax
test esi, esi
je 0x1002a0b2
mov edx, dword [edi + 0xc]
push edx
call fcn.10025d60
add esp, 4
push esi
mov dword [edi + 0xc], esi
call dword [0x101f0e98]
mov ebx, eax
shr ebx, 3
add esp, 4
lea eax, [ebx*8]
push eax
push 0
push esi
mov dword [ebp + 8], ebx
mov dword [edi], ebx
call sub.MSVCR100.dll_memset
mov ecx, dword [edi + 8]
add esp, 0xc
mov dword [edi + 8], 0
test ecx, ecx
je 0x1002a1c9
mov esi, dword [ecx + 0xc]
mov dl, byte [esi]
xor eax, eax
test dl, dl
je 0x1002a15d
movzx edx, dl
movzx edx, byte [edx + 0x101d1308]
lea ebx, [eax*8]
xor edx, ebx
inc esi
xor eax, edx
mov dl, byte [esi]
test dl, dl
jne 0x1002a13e
mov ebx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
xor edx, edx
div ebx
mov eax, dword [ebp - 4]
lea eax, [eax + edx*8]
test eax, eax
je 0x1002a1a5
mov esi, dword [eax]
test esi, esi
je 0x1002a17b
mov edx, dword [eax + 4]
jmp 0x1002a17d
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x1002a1a5
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x1002a19d
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x1002a1be
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x1002a1be
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x1002a1b4
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x1002a133
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002a1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x1002a229
mov edx, dword [ebp + 8]
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x1002a21c
jmp 0x1002a200
movzx ecx, cl
movzx ecx, byte [ecx + 0x101d1308]
lea esi, [eax*8]
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x1002a200
xor edx, edx
div dword [ebx]
mov esi, dword [edi + edx*8 + 4]
mov edi, dword [edi + edx*8]
jmp 0x1002a231
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 4]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
test edi, edi
je 0x1002a25b
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
push ecx
push edx
dec edi
call fcn.10028bf0
add esp, 8
test eax, eax
je 0x1002a261
mov esi, dword [esi]
test edi, edi
jne 0x1002a240
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x100991c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x101ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10099210
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1009920a
shr eax, 8
cmp al, 2
jne 0x1009920a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.1017eae7
mov esp, ebp
pop ebp
ret

Function at 0x1009a250
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x1009a272
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1009a266
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x1009a2a4
cmp dword [esi + 8], 0
jne 0x1009a296
mov ecx, dword [eax + 8]
push 0x101887a4
push ecx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1009a296
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1009a2c7
mov eax, dword [esi + 8]
test eax, eax
je 0x1009a2c1
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100a5790
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100a57c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x100a5900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x100a5922
mov edx, dword [esi + 0x134]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
js 0x100a595b
cmp eax, 2
jg 0x100a595b
mov ecx, dword [esi + 0x130]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x101894c8]
push 2
push edx
call edi
mov eax, dword [esi + 0x130]
mov ecx, dword [ebp + 8]
push eax
push 1
push ebx
push ecx
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x100a5cac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x100a5c81
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.100aaea0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.100a5ac0
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8614], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100a75d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x470], eax
push 4
lea ecx, [ebp - 0x14]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100a7623
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100a5a40
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [ebp - 0x10], 1
call fcn.100afa40
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.100afa40
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0
push 0xc
lea edx, [ebp - 0x10]
push edx
push 0x98000004
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x100a7695
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.100a5a40
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
Function at 0x100a7d10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x8c], 2
mov ebx, dword [esi]
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
je 0x100a7eec
cmp dword [esi + 0x1f8], 0
push edi
jne 0x100a7ee2
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x100a7da7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.100aaea0
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.100a5ac0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
push 0x80
lea edx, [ebp - 0x84]
push 0
push edx
mov dword [ebp - 0x10c], 0x80
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100a7e10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.100aaea0
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.100a5ac0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0xb8]
lea ebx, [esi + 0xe8]
lea esi, [ebp - 0x104]
mov dword [ebp - 0x114], edi
call fcn.100a7cd0
test eax, eax
jne 0x100a7e6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x108]
mov esi, eax
push esi
push edx
call fcn.100aaea0
push eax
mov eax, dword [ebp - 0x110]
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.100a5ac0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
mov esi, dword [ebp - 0x114]
lea edi, [eax + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [eax + 0x11c]
lea edi, [eax + 0xec]
lea esi, [ebp - 0x84]
call fcn.100a7cd0
test eax, eax
jne 0x100a7edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.100aaea0
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.100a5ac0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.100a7c70
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
Function at 0x100a7f00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100a7f46
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100aaea0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100a5a40
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100a5a40
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100a7f70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x101ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101f4fec]
push esi
mov dword [ebp - 0xa4], 0x4020
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 4
test eax, eax
jne 0x100a803a
push 0x9c
push eax
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [ebp - 0xa0], 0x9c
mov dword [ebp - 0x9c], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x100a802e
mov dword [0x101f4fec], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov dword [0x101f4fec], 1
jmp 0x100a803f
cmp eax, 2
je 0x100a808d
mov esi, dword [ebp + 8]
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xa8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x100a8073
mov ecx, dword [ebp - 0xa8]
cmp ecx, dword [ebp - 0xa4]
jg 0x100a808d
push 4
lea edx, [ebp - 0xa4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
Function at 0x100a80c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x5d8]
test esi, esi
je 0x100a8117
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x100a80e1
cmp dword [edi + 0x40], eax
je 0x100a8117
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
test eax, eax
jne 0x100a80f2
mov eax, dword [edi + 0x40]
push 0x100a80a0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.100c7e50
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x100a8120
mov dword [edi + 0x5d8], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100a8129
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x100a814e
push esi
call fcn.1009bf50
add esp, 4
test eax, eax
jne 0x100a8161
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 2
push 1
lea edx, [ebp + 0xb]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x100a8117
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100a9f50
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x100aa0e6
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x100aa0c8
push esi
cmp dword [edi + 4], 2
jne 0x100aa04c
cmp dword [edi + 0x18], ebx
je 0x100aa04c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x100aa04c
cmp eax, 0x10
jb 0x100aa04c
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x100aa059
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x100aa062
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x100aa037
push eax
call dword [0x101e800c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x100aa075
cmp dword [ebp - 4], ebx
jne 0x100aa03f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x100aa049
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x100a9f92
jmp 0x100aa090
mov dword [ebp - 8], 8
jmp 0x100aa090
push esi
mov dword [ebp - 8], 8
call dword [0x101e8004]
add esp, 4
jmp 0x100aa090
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x101e8004]
push esi
call dword [0x101e8004]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x100aa09f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x100aa0c3
mov eax, dword [ebp - 4]
push eax
call fcn.100a9f10
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x100aa0da
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100aa410
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x100aa435
cmp eax, 0xffffffff
jne 0x100aa437
xor eax, eax
pop ebp
ret
Function at 0x100ab070
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x100ab081
jmp dword [ecx*4 + 0x100ab0f0]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret

Function at 0x100afa50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.100afa30
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0x10
pop ebp
ret
Function at 0x100b72f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x101896c8
push ecx
call fcn.100a5a40
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.100b6470
test eax, eax
jne 0x100b7324
mov eax, esi
pop ebp
jmp fcn.100b68f0
pop ebp
ret
Function at 0x100b7720
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x101ec05c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x420]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x100b77b4
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x100b77e7
push str.Received_too_short_packet
push ebx
call fcn.100a5ac0
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.100b6610
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x100b7804
jmp dword [eax*4 + 0x100b7934]
cmp edx, 4
jle case.0x100b7804.4
lea eax, [esi + 0x15c]
call fcn.100b6620
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x100b7804.4
mov eax, dword [ebp - 0x8c]
add edx, 0xfffffffc
push edx
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
push eax
call fcn.100a5f60
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100b7871
mov ecx, 5
mov eax, esi
call fcn.100b76a0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
push ecx
push edx
push ebx
call fcn.100aed20
jmp 0x100b78f5
lea eax, [esi + 0x15c]
call fcn.100b6620
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x101896c8
push ebx
mov dword [esi + 8], eax
call fcn.100a5a40
jmp 0x100b78f5
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.100b66b0
add esp, 0xc
test eax, eax
je case.0x100b7804.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017eae7
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x101da890
push ebx
call fcn.100a5ac0
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.100aee00
add esp, 4
test eax, eax
je 0x100b77d4
mov ecx, 5
mov eax, esi
call fcn.100b76a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.1017eae7
mov esp, ebp
pop ebp
ret