joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100208a0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [0x1010f528]
mov ebx, eax
test edi, edi
je 0x100208e6
mov ecx, ebx
sub ecx, dword [0x10112a90]
cmp ecx, 0x3e8
jae 0x100208e6
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
push esi
push 0x3c
mov dword [ebp - 8], 0
call fcn.1005e1cf
mov esi, eax
add esp, 4
test esi, esi
jne 0x10020911
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
lea eax, [ebp - 8]
push 0
push eax
push esi
call edi
cmp eax, 0x7a
jne 0x10020966
push esi
call fcn.1005d364
mov eax, dword [ebp - 8]
add esp, 4
cmp eax, 0xb2c
ja 0x10020973
push eax
call fcn.1005e1cf
mov esi, eax
add esp, 4
test esi, esi
jne 0x1002095d
mov eax, dword [0x1010f528]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push esi
call edi
test eax, eax
je 0x10020984
push esi
call fcn.1005d364
add esp, 4
mov dword [0x1010f528], 1
mov eax, 1
jmp 0x100209b8
mov edx, dword [esi]
xor ecx, ecx
test edx, edx
je 0x100209a3
lea eax, [esi + 4]
nop
cmp dword [eax], 0
jne 0x1002099b
cmp dword [eax + 4], 0
je 0x1002096a
inc ecx
add eax, 0x38
cmp ecx, edx
jb 0x10020990
push esi
call fcn.1005d364
add esp, 4
mov dword [0x1010f528], 0
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop edi
mov dword [0x10112a90], ebx
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10021290
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov ecx, 0x5a4d
mov dword [ebp - 4], eax
cmp word [eax], cx
je 0x100212b6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x100212d6
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
jne 0x1002131d
push 4
push 0x3000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 8], eax
test esi, esi
jne 0x1002131d
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x10021352
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push 0x1000
mov dword [edi + 4], esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x10021250
mov dword [edi + 0x18], 0x10021260
mov dword [edi + 0x1c], 0x10021280
mov dword [edi + 0x20], 0
push dword [ebx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
mov esi, eax
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
push ecx
push eax
push esi
call fcn.100632e0
mov ecx, dword [ebp - 4]
mov edx, ebx
push edi
mov eax, dword [ecx + 0x3c]
add eax, esi
mov esi, dword [ebp - 8]
mov dword [edi], eax
mov dword [eax + 0x34], esi
call fcn.10020ea0
mov edx, esi
add esp, 0x10
sub edx, dword [ebx + 0x34]
je 0x100213d3
mov ecx, edi
call fcn.10021030
mov ecx, edi
call fcn.100210d0
test eax, eax
je 0x10021406
mov ecx, edi
call fcn.10020f50
mov eax, dword [edi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1002141d
push 0
push 1
add eax, esi
push esi
call eax
test eax, eax
jne 0x10021416
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.100214e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10112b00]
mov dword [ebp - 0x214], 0
push esi
mov esi, ecx
push edi
test al, 1
jne 0x10022c6b
or eax, 1
mov dword [0x10112b18], 7
mov dword [0x10112b00], eax
xor eax, eax
push 0x100d5460
mov dword [0x10112b14], 0
mov word [0x10112b04], ax
call fcn.1005d7cb
add esp, 4
cmp dword [0x10112b14], 0
jne 0x10022d4b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10063250
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x210], 0
jne 0x10022cb6
xor ecx, ecx
jmp 0x10022ccf
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022cc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, 0x10112b04
push eax
call fcn.1001a3f0
lea ecx, [ebp - 0x22c]
call fcn.10022b40
mov edi, eax
cmp edi, 0x10112b04
je 0x10022d34
cmp dword [0x10112b18], 8
jb 0x10022d0d
push dword [0x10112b04]
call fcn.1005cd08
add esp, 4
xor eax, eax
mov dword [0x10112b18], 7
push edi
mov ecx, 0x10112b04
mov dword [0x10112b14], 0
mov word [0x10112b04], ax
call fcn.1001dc40
cmp dword [ebp - 0x218], 8
jb 0x10022d4b
push dword [ebp - 0x22c]
call fcn.1005cd08
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x10112b04
mov word [esi], ax
call fcn.10019da0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret

Function at 0x10022dd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x808], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x810], 0
call fcn.10063250
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10022e33
mov esi, dword [esi]
mov ecx, dword [ebp - 0x80c]
cmp dword [ecx + 0x14], 8
jb 0x10022e41
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x808]
cmp dword [eax + 0x14], 8
jb 0x10022e4f
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x10022e57
mov ebx, dword [ebx]
push esi
push 0x400
lea edx, [ebp - 0x804]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x804], ax
jne 0x10022e8d
xor ecx, ecx
jmp 0x10022ea5
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10022e96
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.1001a3f0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100234a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100234f0
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x100234ea
shr eax, 8
cmp al, 2
jne 0x100234ea
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret

Function at 0x100237f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x101129ac], 0
jne 0x10023877
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10063250
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [0x101129ac], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret

Function at 0x10026b10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d4a4a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.1005c8de
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10026bb6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.100603a7
push 0x1010b890
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.100639bb
push edi
push esi
call fcn.1005c7b1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret 4
Function at 0x10030e70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x3dc], al
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10030ecb
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10033a30
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3e0]
mov dword [ebp - 0x14], 1
call fcn.1003ddf0
mov ecx, dword [esi + 0x3e4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x10], eax
call fcn.1003ddf0
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10030f35
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.10033a30
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x100316d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x10031896
cmp byte [edi + 0x1c1], 0
jne 0x1003188f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x80
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10031755
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10052be0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.10033ab0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 8], 0x80
push 0
push eax
call fcn.10063250
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100317ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10052be0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.10033ab0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xe8]
lea esi, [edi + 0xb8]
push eax
mov edx, esi
lea ecx, [ebp - 0x108]
call fcn.10031670
add esp, 4
test al, al
jne 0x1003180d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10052be0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10033ab0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
lea edx, [edi + 0xec]
lea ecx, [ebp - 0x88]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x11c]
push eax
call fcn.10031670
add esp, 4
test al, al
jne 0x1003188f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.10052be0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.10033ab0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.100315b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10031c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x2e6]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 1
push 6
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10031c73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.10052be0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10033a30
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10033a30
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret

Function at 0x10031ca0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101129b8]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
push esi
push edi
mov edi, ecx
test eax, eax
jne 0x10031d65
push 0x11c
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.10063250
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
mov dword [ebp - 0x12c], 6
push 3
push 2
push 0
push 0
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 eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x10031d59
mov dword [0x101129b8], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
mov dword [0x101129b8], 1
jmp 0x10031d6a
cmp eax, 2
je 0x10031da6
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x10031d8f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jg 0x10031da6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10032240
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1010d770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x538]
test esi, esi
je 0x1003229e
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x1003226d
cmp dword [edi + 0x40], ecx
je 0x1003229e
mov dword [ebp - 0x10], esi
mov byte [ebp - 0xc], 0
test ecx, ecx
jne 0x1003227b
mov ecx, dword [edi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0x10]
push 0x10032220
call fcn.10039f30
add esp, 4
cmp byte [ebp - 0xc], 0
jne 0x100322b2
mov dword [edi + 0x538], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100322b8
mov dword [ebx], esi
cmp byte [esi + 0x178], 0
mov edi, dword [esi + 0x154]
jne 0x1003229e
push 2
push 1
lea eax, [ebp - 5]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1005cd0d
mov esp, ebp
pop ebp
ret
Function at 0x10033ca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x154]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x10033d1e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x10033cee
mov dword [edi], 0x51
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, ebx
call fcn.10052be0
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.10033ab0
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax]
mov dword [eax + 0x8574], ebx
mov eax, esi
mov dword [edi], 0x37
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100341e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x190]
test eax, eax
je 0x10034206
push dword [esi + 0x11c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edx
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
cmp edx, 2
ja 0x1003423a
push dword [esi + 0x118]
lea eax, [edx*2 + 0x100ff924]
push 1
add eax, edx
push 2
push eax
call fcn.1005fba7
push dword [esi + 0x118]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1005fba7
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1003de00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.1001a690
push eax
push edx
push esi
call fcn.10073091
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x10044540
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
add edx, 0xfffffffd
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
cmp edx, 4
ja case.0x10044556.4
jmp dword [edx*4 + 0x1004477c]
lea ecx, [edi + 0x15c]
call fcn.10043e60
movzx ecx, word [edi + 0x40]
movzx esi, ax
lea eax, [ecx + 1]
and eax, 0xffff
cmp eax, esi
jne 0x10044584
mov dword [edi + 0x18], 0
jmp 0x1004459b
cmp ecx, esi
jne 0x10044615
push esi
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.10033a30
add esp, 0xc
mov edx, 4
mov word [edi + 0x40], si
lea ecx, [edi + 0x160]
call fcn.10043e10
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.10043e30
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
js 0x100446eb
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.1005f1f4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push eax
push esi
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.10033a30
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
xor eax, eax
lea ecx, [edi + 0x160]
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
lea edx, [eax + 4]
call fcn.10043e10
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.10043e30
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
js 0x100446eb
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.1005f1f4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
and eax, 0xffff
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.10033a30
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x100446c7
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
ret
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 0x10044758
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x10]
mov edx, eax
call fcn.10052be0
push eax
push 0x1010221c
push ebx
call fcn.10033ab0
mov eax, 0x37
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov edx, 5
lea ecx, [edi + 0x160]
call fcn.10043e10
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.10043e30
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]
mov dword [edi], 3
xor eax, eax
pop edi
pop esi
pop ebx
ret
push str.tftp_rx:_internal_error
push 0x1010221c
push ebx
call fcn.10033ab0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret