joyce8/EMBER2024-capa huggingface dataset:
Function at 0x941450
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x9c9230]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ebp + 8], 2
je 0x9414a9
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x941496
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x941490
shr eax, 8
cmp al, 2
je 0x9414a9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
call fcn.00956950
test eax, eax
jne 0x941507
push str.iphlpapi.dll
call fcn.009412d0
add esp, 4
mov dword [0x9cd8b4], eax
test eax, eax
je 0x9414dd
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x9414dd
mov dword [0x9cd8b8], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00956bb0
add esp, 0x14
neg eax
sbb eax, eax
neg eax
push 0x9d0be0
mov dword [0x9d0be8], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
Function at 0x94aee0
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 0x94af23
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [ebp + 0x14]
xor ecx, ecx
cmp eax, 0x2733
sete cl
mov dword [edx], 0
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0x38
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x94afa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x7e0], edi
je 0x94b02e
cmp dword [esi + 0x1d0], edi
je 0x94aff1
push 1
push esi
call fcn.00948be0
mov eax, dword [esi + 0x16c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [esi + 0x1d0]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00948be0
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x94b02e
cmp eax, 2
jg 0x94b02e
mov edx, dword [esi + 0x168]
push edx
push 1
lea eax, [eax + eax*2 + 0x9b2e58]
push 2
push eax
call fcn.00988b69
mov ecx, dword [esi + 0x168]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ecx
push 1
push edx
push eax
call fcn.00988b69
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax + 0x338]
push ebx
mov ebx, dword [eax + ecx*4 + 0x148]
push esi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x44], 3
je 0x94b4e4
cmp dword [eax + ecx*4 + 0x160], 0x94b160
jne 0x94b4e4
cmp dword [esi], 0
je 0x94b47d
test edi, edi
je 0x94b4e4
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00974670
add esp, 0x14
cmp eax, 0xffffffff
je 0x94b4e4
test al, 1
je 0x94b4e4
cmp dword [esi], 0
jne 0x94b4cd
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x550]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x9ca33c]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x94b4c4
pop edi
pop esi
lea eax, [ecx + 0x1b]
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x94b4e4
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x94b4f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x9c9230]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + ecx*4 + 0x148]
push edi
mov edi, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x108], edx
call fcn.0094b440
add esp, 4
test eax, eax
je 0x94b549
mov dword [edi], 0x1b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x108]
push 0
push eax
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x94b5cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x94b598
mov dword [edi], 0x51
pop edi
xor ebx, ebx
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
push 0x100
lea edx, [ebp - 0x104]
push edx
push eax
call fcn.0097b310
push eax
push str.Send_failure:__s
push esi
call fcn.0094b0b0
mov eax, dword [ebp - 0x108]
mov dword [esi + 0xa98], eax
add esp, 0x18
mov dword [edi], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret

Function at 0x94d3f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.0094d3d0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.0098c2ec
add esp, 0x10
pop ebp
ret

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

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x94f0ae
movzx eax, byte [esi]
push eax
call fcn.00953560
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x94f091
pop edi
pop esi
movzx eax, bl
pop ebx
ret
Function at 0x950ed0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x9c9230]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [esi + 0x818], 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 0x950f23
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.0094b040
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x72c]
push edx
mov dword [ebp - 0x10], 1
call fcn.0094d3e0
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x730]
push eax
call fcn.0094d3e0
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 0x950f95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.0094b040
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
Function at 0x9518d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x9c9230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.0092a010
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x188]
push ecx
lea edx, [ebp - 0x184]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x95194e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [ebp - 0x104]
mov edi, eax
push ecx
push edi
call fcn.0097b310
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x951995
mov edx, dword [ebp - 0x188]
push ebx
push edi
push edx
lea eax, [ebp - 0x184]
push eax
call fcn.00951720
add esp, 0x10
test eax, eax
jne 0x95199e
call fcn.0092cbe5
mov edi, eax
call fcn.0092cbe5
mov edx, dword [edi]
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push edx
mov ebx, eax
call fcn.0097b310
push eax
mov eax, dword [ebx]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0094b0b0
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret

Function at 0x951ba0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x9c9230]
xor eax, ebp
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 0x108]
push eax
push 1
push 6
push ecx
mov dword [ebp - 0x108], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x951bfc
push 0x100
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0097b310
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.0094b040
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret

Function at 0x951c10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9cd994]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x951c62
push 3
push 2
push eax
push eax
push 6
call fcn.00956bb0
add esp, 0x14
test eax, eax
je 0x951c56
mov dword [0x9cd994], 2
mov esp, ebp
pop ebp
ret
mov dword [0x9cd994], 1
jmp 0x951c67
cmp eax, 2
je 0x951ca8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x951c90
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jg 0x951ca7
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x951cb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x19c], 0
je 0x951cd0
push eax
call fcn.00942440
add esp, 4
test eax, eax
jne 0x951cf0
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x148]
cmp eax, 0xffffffff
je 0x951ccc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x951cf0
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x953c40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x953dd5
push edi
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x953db7
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 0x14]
test eax, eax
je 0x953cae
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x953ca0
sub eax, edx
lea ebx, [eax + 1]
jmp 0x953cb0
xor ebx, ebx
cmp dword [edi + 4], 2
jne 0x953d64
cmp dword [edi + 0x18], 0
je 0x953d64
mov eax, dword [edi + 0x10]
test eax, eax
je 0x953d64
cmp eax, 0x10
jb 0x953d64
lea edx, [ebx + 0x30]
push edx
call dword [0x9ca33c]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x953d71
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
lea eax, [esi + 0x20]
mov dword [esi + 0x18], eax
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
test ebx, ebx
je 0x953d4e
mov eax, dword [esi + 0x18]
add eax, 0x10
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x14]
push ebx
push edx
push eax
call fcn.00929b30
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x953d57
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x953d61
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x953c90
jmp 0x953d78
mov dword [ebp - 8], 8
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
test eax, eax
je 0x953d88
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], 0
je 0x953db1
mov eax, dword [ebp - 4]
push eax
call fcn.00953c10
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [edx], ecx
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
jne 0x953dc9
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
mov esp, ebp
pop ebp
ret
Function at 0x9540a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x9c9230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 6
push 1
push 2
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x34], 1
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x954275
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push 0x7f000001
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 4
lea edx, [ebp - 0x34]
push edx
push 4
push 0xffff
xor ecx, ecx
push edi
mov dword [ebp - 0x10], eax
mov word [ebp - 0x12], cx
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x954261
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x954261
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x954261
cmp dword [ebp - 0x28], 0x10
jl 0x954261
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x954261
push 0
push 1
push 2
call ebx
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x954261
mov ebx, 0x10
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x954261
push 1
push edi
call fcn.0097d860
add esp, 8
test eax, eax
js 0x954261
push 0
push 0x2710
lea ecx, [ebp - 0x30]
push 1
push ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 1
call fcn.009743e0
add esp, 0x10
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x954261
mov ecx, dword [esi]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x954261
cmp dword [ebp - 0x28], ebx
jl 0x954261
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
push ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x954261
cmp dword [ebp - 0x28], ebx
jl 0x954261
mov dx, word [ebp - 0x14]
cmp dx, word [ebp - 0x24]
jne 0x954261
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x954261
mov cx, word [ebp - 0x12]
cmp cx, word [ebp - 0x22]
jne 0x954261
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
call edi
mov edx, dword [esi]
push edx
call edi
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
Function at 0x955780
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 fcn.0092a181
add esp, 0x18
test eax, eax
je 0x9557a4
cmp eax, 0xffffffff
jne 0x9557a6
xor eax, eax
pop ebp
ret
Function at 0x959d40
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call fcn.0092a010
mov eax, dword [ebp + 0x10]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x959e12
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x959df4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x959df4
mov ecx, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x959df4
cmp esi, dword [ebp - 0xc]
jb 0x959df4
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x14]
push edx
push ebx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0x959e02
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x959e12
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret

Function at 0x95c090
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0095c000
Function at 0x961680
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x9b2cb0
push eax
call fcn.0094b040
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00960700
test eax, eax
jne 0x9616b2
mov ecx, esi
pop ebp
jmp fcn.00960b00
pop ebp
ret
Function at 0x961bb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x9c9230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ebx, dword [eax + 0x4e8]
lea ecx, [ebp - 0x8c]
push ecx
mov dword [ebp - 0x8c], 0x80
mov eax, dword [ebx + 0x13c]
mov ecx, dword [ebx + 0x148]
lea edx, [ebp - 0x84]
push edx
mov edx, dword [ebx + 0x14]
push 0
add eax, 4
push eax
push ecx
push edx
mov dword [ebp - 0x88], esi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [ebx + 0x130], 0
mov dword [ebx + 0x134], eax
jne 0x961c44
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebx + 0xb0]
push edx
call fcn.00929b30
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [ebx + 0x130], eax
mov edx, dword [ebx + 0x134]
cmp edx, 4
jge 0x961c77
push str.Received_too_short_packet
push esi
call fcn.0094b0b0
add esp, 8
mov dword [ebx + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x148]
call fcn.00960840
movzx eax, ax
mov dword [ebx + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x961c94
jmp dword [eax*4 + 0x961de4]
cmp edx, 4
jle case.0x961c94.4
lea eax, [ebx + 0x148]
call fcn.00960850
movzx ecx, word [ebx + 0x144]
inc ecx
cmp cx, ax
jne case.0x961c94.4
add edx, 0xfffffffc
push edx
mov edx, dword [ebx + 0x148]
add edx, 4
push edx
push 1
push esi
call fcn.0094b410
mov edi, eax
add esp, 0x10
test edi, edi
je 0x961cfe
mov ecx, 5
mov eax, ebx
call fcn.00961b30
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x134]
sub eax, 4
cdq
add dword [esi + 0x90], eax
mov ecx, dword [esi + 0x90]
adc dword [esi + 0x94], edx
mov eax, dword [esi + 0x94]
push eax
push ecx
push esi
call fcn.0095adf0
add esp, 0xc
jmp case.0x961c94.4
mov esi, dword [ebx + 0x148]
lea eax, [ebx + 0x148]
add esi, 4
add edx, 0xfffffffc
call fcn.00960850
movzx eax, ax
mov edi, edx
mov dword [ebx + 8], eax
call fcn.00960860
cmp eax, edi
jae 0x961d6a
mov ecx, dword [ebp - 0x88]
push esi
push str.TFTP_error:__s
push ecx
call fcn.0094b040
add esp, 0xc
mov esi, dword [ebp - 0x88]
push esi
call fcn.0095b710
add esp, 4
test eax, eax
je 0x961c64
mov ecx, 5
mov eax, ebx
call fcn.00961b30
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
add edx, 0xfffffffe
push edx
mov edx, dword [ebx + 0x148]
add edx, 2
push edx
push ebx
call fcn.009608e0
add esp, 0xc
test eax, eax
je case.0x961c94.4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0092ebb0
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x9b2cb0
push esi
call fcn.0094b0b0
add esp, 0xc
jmp case.0x961c94.4
Function at 0x962180
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [ebp + 8]
push ebx
push esi
push 0
mov ebx, eax
mov eax, dword [edi + 0xc]
push 3
lea edx, [ebp - 4]
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], cl
mov byte [ebp - 2], bl
mov eax, dword [eax + 0x148]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x9621c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.0094b0b0
add esp, 0xc
mov esi, dword [ebp + 8]
mov eax, ebx
mov ebx, str.SENT
mov ecx, edi
call fcn.00962080
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x962f60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x134]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
jne 0x9630bf
push esi
push edi
lea esi, [ebx + 0x1cb4]
lea edi, [ebx + 0x1eb4]
mov dword [edi], esi
cmp esi, edi
jae 0x962f97
mov byte [esi], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x962fa2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x962fad
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebx + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x962fdf
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x962fec
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x962ff6
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x963000
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x96300b
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x963016
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov dword [ebx + 0x1eb8], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov esi, dword [ebp + 8]
push eax
lea ecx, [ebx + 0x1cb6]
mov eax, 0x3e
call fcn.009624f0
mov edi, dword [ebp - 4]
mov edx, dword [edi + 0x148]
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 4
push 0
push 3
lea eax, [ebx + 0x1cb4]
push eax
push edx
call esi
test eax, eax
jns 0x963075
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp + 8]
push str.Sending_data_failed___d_
push eax
call fcn.0094b0b0
add esp, 0xc
mov edx, dword [ebp + 8]
lea ecx, [ebx + 0x1cb7]
push ecx
push edx
mov eax, 4
call fcn.00962db0
mov eax, dword [edi + 0x148]
add esp, 8
push 0
push 2
add ebx, 0x1cbb
push ebx
push eax
call esi
pop edi
pop esi
test eax, eax
jns 0x9630bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp + 8]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.0094b0b0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret