joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031e04
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
xor ebx, ebx
cmp dword [esi + 0x574], ebx
push 4
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10031e56
push dword [ebp + 0xc]
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10030603
add esp, 0xc
jmp 0x10031ec5
push dword [esi + 0x578]
mov dword [ebp - 0x10], 1
call fcn.10039f5d
imul eax, eax, 0x3e8
push dword [esi + 0x57c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10039f5d
imul eax, eax, 0x3e8
pop ecx
pop ecx
push ebx
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10031ec5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp + 0xc]
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.10030603
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1005ae75
leave
ret

Function at 0x1003bf0c
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
push edi
push 0x10090700
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
je 0x1003c004
push ebx
push ebp
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [esp + 0x18]
push 0x1009071c
push ebp
mov ebx, eax
call fcn.1005d9f0
pop ecx
pop ecx
test eax, eax
je 0x1003bf5c
test ebx, ebx
je 0x1003bf53
push 8
jmp 0x1003bf75
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1003bf79
test ebx, ebx
je 0x1003bf80
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003bf80
push 0x800
push esi
push ebp
call ebx
mov esi, eax
jmp 0x1003c000
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x1003c000
push ebp
call fcn.100596a0
lea ecx, [edi + 1]
add ecx, eax
push ecx
call dword [0x100a5340]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1003bff8
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1003bff8
push 0x1009e468
push edi
call fcn.100596a0
pop ecx
add eax, edi
push eax
call fcn.1005d8f0
pop ecx
pop ecx
push ebp
push edi
call fcn.100596a0
pop ecx
add eax, edi
push eax
call fcn.1005d8f0
pop ecx
pop ecx
test ebx, ebx
je 0x1003bfef
push 8
push esi
push edi
call ebx
jmp 0x1003bff6
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x100a5344]
pop ecx
pop ebp
mov eax, esi
pop ebx
pop edi
pop esi
pop ecx
ret
Function at 0x1003c17a
Capabilities:
Resolve dns

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x18]
push ebp
push edi
xor ebp, ebp
and dword [eax], ebp
and dword [esp + 0xc], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
test edi, edi
jne 0x1003c2d0
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x1003c2bb
push esi
cmp dword [ebx + 4], 2
jne 0x1003c263
cmp dword [ebx + 0x18], 0
je 0x1003c263
cmp dword [ebx + 0x10], 0
jbe 0x1003c263
cmp dword [ebx + 0x10], 0x10
jb 0x1003c263
push 0x20
call dword [0x100a5340]
mov esi, eax
pop ecx
test esi, esi
je 0x1003c293
mov ecx, dword [ebx]
mov dword [esi], ecx
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, dword [ebx + 0xc]
push 0x10
pop ecx
mov dword [esi + 0xc], eax
xor eax, eax
push ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
call dword [0x100a5340]
pop ecx
mov dword [esi + 0x18], eax
test eax, eax
je 0x1003c287
push 0x10
push dword [ebx + 0x18]
push eax
call fcn.10058e40
add esp, 0xc
cmp dword [ebx + 0x14], 0
je 0x1003c24f
push dword [ebx + 0x14]
call dword [0x100a534c]
pop ecx
mov dword [esi + 0x14], eax
test eax, eax
je 0x1003c270
mov eax, dword [esp + 0x14]
test ebp, ebp
cmove ebp, esi
test eax, eax
je 0x1003c25f
mov dword [eax + 0x1c], esi
mov dword [esp + 0x14], esi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x1003c1b9
jmp 0x1003c296
push 8
pop edi
push dword [esi + 0x18]
call dword [0x100a5344]
push esi
call dword [0x100a5344]
pop ecx
pop ecx
jmp 0x1003c296
push 8
pop edi
push esi
call dword [0x100a5344]
jmp 0x1003c284
push 8
pop edi
cmp dword [esp + 0x10], 0
pop esi
je 0x1003c2a8
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1003c2b7
push ebp
call fcn.1003c148
pop ecx
xor ebp, ebp
jmp 0x1003c2c7
test ebp, ebp
jne 0x1003c2c7
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x24]
pop ebx
mov dword [eax], ebp
mov eax, edi
pop edi
pop ebp
pop ecx
pop ecx
ret

Function at 0x1003d335
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
push eax
push eax
call fcn.1005b66f
add esp, 0x18
test eax, eax
je 0x1003d354
cmp eax, 0xffffffff
jne 0x1003d356
xor eax, eax
ret

Function at 0x1003d4dc
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0xf0000040
push 1
xor edi, edi
push edi
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003d502
push 2
pop eax
jmp 0x1003d52a
push esi
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1003d51b
push 2
pop esi
jmp 0x1003d51d
mov esi, edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop edi
leave
ret
Function at 0x1003ffc3
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100a5688]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1003fffe
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.1003054c
add esp, 0xc
jmp 0x10040026
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10040019
shr eax, 8
test al, al
jne 0x10040019
xor eax, eax
jmp 0x10040029
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.1003054c
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1005ae75
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
push 0
mov byte [ebp + 0xa], al
push 3
lea eax, [ebp + 8]
push eax
push dword [esi + 0x1a8]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1004074d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1003054c
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.100400e9
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10040857
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x164]
jne 0x100409a2
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x1004088e
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10040899
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100408a4
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x1c], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x1c]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x100408d7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100408e1
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100408eb
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100408f5
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10040900
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1004090b
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
mov dword [edi], ebp
call fcn.100401d8
mov edi, dword [esp + 0x28]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x10040961
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1003054c
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.10040765
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1004099f
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1003054c
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10040ab6
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x90c
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x908], eax
push ebx
mov ebx, dword [esp + 0x914]
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x9d]
push 0
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xa4], 0
call fcn.10059510
push 0x7f
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.10059510
mov edi, dword [ebx]
mov dword [esp + 0x2c], edi
mov ebx, dword [edi + 0x164]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
add eax, 2
push eax
lea eax, [ebx + 0x1cb0]
push eax
push 0x3c
push edi
call fcn.100401d8
mov eax, dword [ebx + 0x1eb0]
add esp, 0x28
movzx ecx, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x10040c87
cmp ecx, 0x23
je 0x10040c69
cmp ecx, 0x27
jne 0x10040d11
push 0
push ecx
push 0xfa
mov ebp, 0xff
push ebp
push str._c_c_c_c
lea eax, [esp + 0x12c]
push 0x800
push eax
call fcn.1003af45
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop esi
test ebx, ebx
je 0x10040c05
push dword [ebx]
call fcn.100596a0
lea edi, [eax + 1]
add edi, esi
pop ecx
cmp edi, 0x7fa
jae 0x10040bfa
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x9c]
push eax
push str._127_____127s
push dword [ebx]
call fcn.1005c226
add esp, 0x10
test eax, eax
je 0x10040bfa
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0xa0]
push eax
push 0
mov eax, 0x800
sub eax, esi
push str._c_s_c_s
push eax
lea eax, [esp + 0x130]
add eax, esi
push eax
call fcn.1003af45
add esp, 0x1c
mov esi, edi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x10040b93
mov edi, dword [esp + 0x14]
push 0xf0
push ebp
mov eax, 0x800
sub eax, esi
push str._c_c
push eax
lea eax, [esp + 0x128]
add eax, esi
push eax
call fcn.1003af45
add esp, 0x14
add esi, 2
push 0
push esi
lea eax, [esp + 0x120]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10040c61
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1003054c
add esp, 0xc
lea eax, [esi - 2]
jmp 0x10040cfd
lea esi, [ebx + 0x1c28]
push esi
call fcn.100596a0
push 0xf0
mov ebp, 0xff
push ebp
push esi
push 0
push 0x23
jmp 0x10040ca3
lea esi, [ebx + 0x1c08]
push esi
call fcn.100596a0
push 0xf0
mov ebp, 0xff
push ebp
push esi
push 0
push 0x18
push 0xfa
push ebp
push str._c_c_c_c_s_c_c
lea ebx, [eax + 6]
lea eax, [esp + 0x13c]
push 0x800
push eax
call fcn.1003af45
add esp, 0x2c
lea eax, [esp + 0x118]
push 0
push ebx
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10040cfa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1003054c
add esp, 0xc
lea eax, [ebx - 2]
push eax
lea eax, [esp + 0x11e]
push eax
push 0x3e
push edi
call fcn.100401d8
add esp, 0x10
mov ecx, dword [esp + 0x918]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x90c
ret
Function at 0x100417c4
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x6b8]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
lea ebx, [esi + 0x15c]
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x1004184c
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.10058e40
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x10041886
push str.Received_too_short_packet
push edi
call fcn.1003054c
pop ecx
pop ecx
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x88
ret
push ebx
call fcn.10041490
movzx eax, ax
mov dword [esi + 0xc], eax
pop ecx
sub eax, 3
je 0x100418f9
dec eax
je 0x10041966
dec eax
je 0x100418d7
dec eax
je 0x100418ba
push str.Internal_error:_Unexpected_packet
push 0x1009e300
push edi
call fcn.1003054c
jmp 0x10041963
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.100415e5
add esp, 0xc
test eax, eax
je 0x10041966
jmp 0x1004186d
push ebx
call fcn.1004147c
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x1008d9c0
push edi
call fcn.10030603
add esp, 0x10
jmp 0x10041966
cmp edx, 4
jle 0x10041966
push ebx
call fcn.1004147c
pop ecx
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne 0x10041966
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push ebp
call fcn.1003046e
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x1004193b
push 5
push esi
call fcn.10041ffb
pop ecx
pop ecx
mov eax, ebx
jmp 0x1004186d
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
push edi
call fcn.10039134
add esp, 0xc
push ebp
call fcn.100394f3
pop ecx
test eax, eax
je 0x1004186b
push 5
push esi
call fcn.10041ffb
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x1004186d
Function at 0x10041987
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 3
mov eax, dword [edi + 0x10]
pop ebp
mov ebx, dword [eax]
mov eax, dword [esp + 0x18]
sub eax, ebp
je 0x10041abe
dec eax
dec eax
je 0x10041a7f
dec eax
je 0x10041a2b
dec eax
je 0x100419cb
push str.tftp_rx:_internal_error
push 0x1009e300
push ebx
call fcn.1003054c
add esp, 0xc
push 0x47
jmp 0x10041b5b
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
push dword [edi + 0x18]
inc eax
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.10030603
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x100419fe
mov dword [edi + 8], 0xffffff9d
jmp 0x10041ab7
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x10041b91
jmp 0x10041b3b
xor eax, eax
and dword [edi + 0x18], eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
call fcn.100414bd
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.100414a3
add esp, 0x10
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x10041b3b
mov dword [edi], 1
jmp 0x10041b75
lea esi, [edi + 0x160]
push 5
push esi
call fcn.100414bd
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.100414a3
add esp, 0x10
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], ebp
jmp 0x10041b91
lea eax, [edi + 0x15c]
push eax
call fcn.1004147c
pop ecx
movzx ecx, word [edi + 0x40]
movzx esi, ax
lea eax, [ecx + 1]
and eax, 0xffff
cmp eax, esi
jne 0x10041ae4
and dword [edi + 0x18], 0
jmp 0x10041afb
cmp ecx, esi
jne 0x10041b81
push esi
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.10030603
add esp, 0xc
mov word [edi + 0x40], si
lea esi, [edi + 0x160]
push 4
push esi
call fcn.100414bd
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.100414a3
add esp, 0x10
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x10041b5e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.1003cb1a
push eax
push 0x1009e300
push ebx
call fcn.1003054c
add esp, 0x14
push 0x37
pop eax
jmp 0x10041b93
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
inc ecx
cmp dword [edi + 0x14c], eax
cmovl ecx, ebp
mov dword [edi], ecx
lea eax, [edi + 0x38]
push eax
call fcn.1005a43d
pop ecx
jmp 0x10041b91
push eax
push esi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.10030603
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10048f6a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x100a5688]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov ebp, dword [esi + 0x1ac]
mov ebx, dword [esi]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
or edi, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10048fc3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebp
push esi
call fcn.10030c93
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x10048fe3
push str.Error_accept__ing_server_connect
push ebx
call fcn.1003054c
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x10049036
push str.Connection_accepted_from_server_n
push ebx
call fcn.10030603
and dword [esi + 0x3f0], 0
xor ebp, ebp
inc ebp
push ebp
push edi
mov dword [esi + 0x1ac], edi
call fcn.1004e80a
mov dword [esi + 0x1bc], ebp
mov eax, dword [ebx + 0x1e8]
add esp, 0x10
test eax, eax
je 0x10049034
push ebp
push edi
push dword [ebx + 0x1ec]
call eax
add esp, 0xc
test eax, eax
je 0x10049034
push esi
call fcn.10049414
pop ecx
push 0x2a
jmp 0x10048fe0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005ae75
add esp, 0x18
ret

Function at 0x1004afc6
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x64
cdq
pop ebx
idiv ebx
mov edi, dword [ebp + 8]
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x1004aff3
push str.Couldnt_set_desired_mode
push ecx
call fcn.1003054c
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x1004b047
cmp dword [ebp + 0xc], 0xc8
je 0x1004b00d
push dword [ebp + 0xc]
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.10030603
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1004b01d
push edi
call fcn.1004ad7f
jmp 0x1004b042
cmp eax, 0x14
jne 0x1004b02a
push edi
call fcn.1004a054
jmp 0x1004b042
cmp eax, 0x15
jne 0x1004b037
push edi
call fcn.1004ad6e
jmp 0x1004b042
cmp eax, 0x16
jne 0x1004b045
push edi
call fcn.1004aed5
mov esi, eax
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1004f53c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x1004f566
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x1004f557
xor eax, eax
jmp 0x1004f5b9
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x1004f597
cmp dword [esi + 8], 0
jne 0x1004f587
push 0x1008dc2c
push dword [eax + 8]
call fcn.1005c10b
pop ecx
pop ecx
mov dword [esi + 8], eax
test eax, eax
jne 0x1004f587
or eax, 0xffffffff
jmp 0x1004f5b9
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.1005cf90
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1004f5b7
cmp dword [esi + 8], eax
je 0x1004f5b1
push dword [esi + 8]
call fcn.1005be91
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10051c0b
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
push dword [esp + 0x20]
call fcn.100596a0
mov edi, eax
lea ebx, [edi + edi]
push ebx
call dword [0x100a5340]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10051c36
push 0x1b
pop eax
jmp 0x10051cd3
push ebp
push edi
push dword [esp + 0x28]
push esi
call fcn.10051cda
add esp, 0xc
xor ebp, ebp
push 0xf0000000
push 1
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [esp + 0x28]
test eax, eax
je 0x10051cba
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10051caf
push ebp
push ebx
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebp
lea eax, [esp + 0x1c]
push eax
push edi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 5
lea eax, [edi + 0x10]
push ebp
push eax
call fcn.10059510
push esi
call dword [0x100a5344]
add esp, 0x10
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret