joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499610
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x499653
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
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
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4996d0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xbfc], edi
je 0x499765
cmp dword [esi + 0x620], edi
je 0x499725
push 1
push esi
call fcn.00497410
mov eax, dword [esi + 0x5b4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.00497410
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x499765
cmp eax, 2
jg 0x499765
mov edx, dword [esi + 0x5b0]
push edx
push 1
lea eax, [eax + eax*2 + 0x5197bc]
push 2
push eax
call fcn.004d74c4
mov ecx, dword [esi + 0x5b0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.004d74c4
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x499840
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
cmp dword [esi + 0xbfc], 0
jne 0x499864
cmp dword [esi + 0x5b8], 0
je 0x499940
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.004a3110
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x499890
sub eax, edx
mov edx, dword [esi + 0x5b8]
push edi
mov edi, eax
test edx, edx
je 0x4998c7
cmp dword [esi + 0x1230], 0
jne 0x4998c7
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4998b3
mov dword [esi + 0x1230], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0xbfc], 0
je 0x49993f
cmp dword [esi + 0x620], 0
je 0x499913
push 1
push esi
call fcn.00497410
mov eax, dword [esi + 0x5b4]
mov edx, dword [esi + 0x620]
push eax
push edi
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
call edx
push 0
push esi
call fcn.00497410
add esp, 0x24
pop edi
pop esi
add esp, 0x104
ret
mov eax, dword [esi + 0x5b0]
push eax
push 1
push 2
push 0x5197bc
call fcn.004d74c4
mov ecx, dword [esi + 0x5b0]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004d74c4
add esp, 0x20
pop edi
pop esi
add esp, 0x104
ret
Function at 0x499c40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [ebx + 0x5f0]
push ebp
mov ebp, dword [ebx + eax*4 + 0x420]
mov ecx, eax
add ecx, ecx
push esi
lea esi, [ebx + ecx*8 + 0x448]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x499ce2
cmp dword [ebx + eax*4 + 0x438], 0x499950
jne 0x499ce2
cmp dword [esi], 0
je 0x499c7d
test edi, edi
je 0x499ce2
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004c0fb0
add esp, 0x14
cmp eax, 0xffffffff
je 0x499ce2
test al, 1
je 0x499ce2
cmp dword [esi], 0
jne 0x499ccb
mov eax, dword [ebx]
mov eax, dword [eax + 0x97c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x54ae68]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
cmp eax, ecx
jne 0x499cc2
pop edi
pop esi
lea eax, [ecx + 0x1b]
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 ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x499ce2
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret

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

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
push ebx
mov ebx, dword [esp + 0x108]
push esi
mov esi, dword [ebx + eax*4 + 0x420]
call fcn.00499c40
test eax, eax
je 0x499d2c
mov eax, dword [esp + 0x11c]
pop esi
mov dword [eax], 0x1b
or eax, 0xffffffff
pop ebx
add esp, 0x100
ret
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
push 0
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [esp + 0x120]
mov esi, eax
mov dword [edi], 0
cmp esi, 0xffffffff
jne 0x499db0
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x499d80
pop ebp
xor esi, esi
mov dword [edi], 0x51
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret
push 0x100
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0048eed0
mov ecx, dword [ebx]
push eax
push str.Send_failure:__s
push ecx
call fcn.00499840
mov edx, dword [ebx]
add esp, 0x18
mov dword [edx + 0xec4], ebp
mov dword [edi], 0x37
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x49da90
Capabilities:
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 0x49dabe
movzx eax, byte [esi]
push eax
call fcn.004a22d0
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x49daa1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

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

Disassembly:
sub esp, 0x14
push esi
mov esi, eax
test esi, esi
je 0x49db1e
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.004c8160
add esp, 0xc
test eax, eax
jne 0x49db1e
lea ecx, [esp + 8]
push ecx
push esi
push 0x17
call fcn.004c8160
add esp, 0xc
test eax, eax
jne 0x49db1e
lea edx, [esp + 4]
push edx
call fcn.0049da30
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 0x14
jmp fcn.0049da90
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x49fbe0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0xc34], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x49fc1e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00499770
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xb48]
push edx
mov dword [esp + 0xc], 1
call fcn.0049c970
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xb4c]
push eax
call fcn.0049c970
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x49fc97
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.00499770
add esp, 0x10
add esp, 0x14
ret
Function at 0x4a0570
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x184
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0x80
call fcn.004d8ce0
mov eax, dword [esp + 0x19c]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4a05eb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x8c]
mov esi, eax
push ecx
push esi
call fcn.0048eed0
mov edx, dword [esp + 0x198]
push eax
mov eax, dword [edx]
push esi
push str.getsockname___failed_with_errno__d:__s
push eax
call fcn.00499840
add esp, 0x1c
pop esi
add esp, 0x184
ret
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x190]
lea ecx, [ebx + 0x3d4]
push ecx
lea edx, [ebx + 0x3a4]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.004a03c0
add esp, 0x10
test eax, eax
jne 0x4a0650
push edi
call fcn.004dd59d
mov esi, eax
call fcn.004dd59d
push 0x100
lea edx, [esp + 0x94]
mov edi, eax
mov eax, dword [esi]
push edx
push eax
call fcn.0048eed0
mov ecx, dword [edi]
mov edx, dword [ebx]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00499840
add esp, 0x1c
pop edi
pop ebx
pop esi
add esp, 0x184
ret

Function at 0x4a0830
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [eax]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4a087c
push 0x100
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0048eed0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00499770
add esp, 0x18
pop esi
add esp, 0x104
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x474], 0
je 0x4a09ed
push eax
call fcn.00490f40
add esp, 4
test eax, eax
jne 0x4a0a0d
xor eax, eax
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x4a09ea
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4a0a0d
ret
mov eax, 1
ret
Function at 0x4a3d20
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x4a3ed9
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4a3eb6
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4a3d8e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a3d80
sub eax, edx
lea ebx, [eax + 1]
jmp 0x4a3d90
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4a3d9d
lea ebp, [eax + 0xe]
jmp 0x4a3da9
cmp eax, 0x17
jne 0x4a3e43
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4a3e43
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4a3e43
cmp eax, ebp
jb 0x4a3e43
lea edx, [ebx + ebp + 0x20]
push edx
call dword [0x54ae68]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x4a3e50
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
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call fcn.004d8e20
add esp, 0xc
test ebx, ebx
je 0x4a3e29
mov eax, dword [esi + 0x18]
add eax, ebp
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call fcn.004d8e20
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x4a3e34
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a3e3f
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4a3d73
jmp 0x4a3e58
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x4a3e69
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x4a3eaf
mov eax, dword [esp + 8]
test eax, eax
je 0x4a3e93
jmp 0x4a3e80
mov esi, dword [eax + 0x1c]
push eax
call dword [0x54ae6c]
add esp, 4
mov eax, esi
test esi, esi
jne 0x4a3e80
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
cmp dword [esp + 8], 0
jne 0x4a3ec9
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
Function at 0x4a4260
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
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4a4292
pop esi
or eax, eax
pop ebx
add esp, 0x30
ret
xor eax, eax
push ebp
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, 2
push 0x7f000001
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [esp + 0x50]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0xffff
xor ecx, ecx
push ebx
mov dword [esp + 0x30], eax
mov word [esp + 0x2e], cx
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4a441a
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4a441a
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4a441a
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4a441a
push 0
push 1
push 2
call esi
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4a441a
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4a441a
push 0
push 0
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4a441a
push edi
push 0x537600
lea edx, [esp + 0x30]
push 0xc
push edx
call fcn.004a3170
lea eax, [esp + 0x38]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a4395
mov ecx, dword [edi]
sub eax, edx
push 0
mov esi, eax
push esi
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4a441a
mov eax, dword [edi + 4]
push 0
push 0xc
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x4a441a
mov eax, esi
lea ecx, [esp + 0x34]
lea ebp, [esp + 0x28]
cmp esi, 4
jb 0x4a43f5
jmp 0x4a43e0
mov edx, dword [ebp]
cmp edx, dword [ecx]
jne 0x4a441a
sub eax, 4
add ecx, 4
add ebp, 4
cmp eax, 4
jae 0x4a43e0
test eax, eax
je 0x4a4439
mov dl, byte [ecx]
cmp dl, byte [ebp]
jne 0x4a441a
cmp eax, 1
jbe 0x4a4439
mov dl, byte [ecx + 1]
cmp dl, byte [ebp + 1]
jne 0x4a441a
cmp eax, 2
jbe 0x4a4439
mov al, byte [ecx + 2]
cmp al, byte [ebp + 2]
je 0x4a4439
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
mov ecx, dword [edi]
push ecx
call esi
mov edx, dword [edi + 4]
push edx
call esi
pop edi
pop ebp
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30
ret
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x30
ret
Function at 0x4a4500
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.004d8868
add esp, 0x18
test eax, eax
je 0x4a4523
cmp eax, 0xffffffff
jne 0x4a4525
xor eax, eax
ret

Function at 0x4a4760
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x5f8], 2
jne 0x4a4776
mov dword [esp + 4], eax
jmp fcn.004a4710
mov eax, 1
ret
Function at 0x4a7400
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.004d8ce0
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4a74e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a74c1
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a74c1
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x4a74c0
cmp esi, dword [esp + 0xc]
jb 0x4a74c0
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x4a74cf
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4a74e0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret

Function at 0x4a98f0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x54ae70]
mov edi, eax
add esp, 8
test edi, edi
je 0x4a98b8
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4a98d0
cmp esi, ebx
je 0x4a98d0
cmp esi, 0x8000
ja 0x4a98d0
cmp esi, ebx
jb 0x4a98c9
push esi
push edi
call dword [0x54ae70]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a9880
push ebp
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x54ae6c]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x4a9860
Function at 0x4ae970
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x519640
push ecx
call fcn.00499770
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004ada20
test eax, eax
jne 0x4ae9a0
mov eax, esi
jmp fcn.004ade50
ret
Function at 0x4aee50
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
mov ebp, dword [ebx]
push esi
mov esi, dword [ebx + 0x7c8]
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
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 0x4aeeca
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.004d8e20
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov eax, dword [esi + 0x14c]
cmp eax, 4
jge 0x4aeef7
push str.Received_too_short_packet
push ebp
call fcn.00499840
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
mov edx, dword [esi + 0x15c]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4aef1c
jmp dword [ecx*4 + 0x4af078]
cmp eax, 4
jle case.0x4aef1c.4
mov ecx, dword [esi + 0x15c]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x40]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x4aef1c.4
mov edx, dword [esi + 0x15c]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.00499c00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4aef8e
mov eax, 5
mov ecx, esi
call fcn.004aedd0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebp + 0x98], eax
mov ecx, dword [ebp + 0x98]
adc dword [ebp + 0x9c], edx
mov eax, dword [ebp + 0x9c]
push eax
push ecx
push ebp
call fcn.004a8490
add esp, 0xc
jmp case.0x4aef1c.4
mov edi, dword [esi + 0x15c]
lea ebx, [eax - 4]
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebx
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call fcn.004d79d0
add esp, 0xc
test eax, eax
je 0x4af008
sub eax, edi
cmp eax, ebx
jae 0x4af008
push edi
push str.TFTP_error:__s_n
push ebp
call fcn.00499770
add esp, 0xc
mov ebx, dword [esp + 0x98]
push ebx
call fcn.004a8e90
add esp, 4
test eax, eax
je 0x4aeeea
mov eax, 5
mov ecx, esi
call fcn.004aedd0
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
add esp, 0x84
ret
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004adb90
add esp, 0xc
test eax, eax
je case.0x4aef1c.4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
push str.Internal_error:_Unexpected_packet
push 0x51c254
push ebp
call fcn.00499840
add esp, 0xc
jmp case.0x4aef1c.4
Function at 0x4af3f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x420]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4af434
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00499840
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004af2f0
add esp, 4
pop esi
pop ecx
ret
Function at 0x4afc10
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x904
push ebx
push ebp
push esi
push edi
push 0x7f
lea eax, [esp + 0x99]
push 0
push eax
mov byte [esp + 0xa0], 0
call fcn.004d8ce0
push 0x7f
lea ecx, [esp + 0x25]
push 0
push ecx
mov byte [esp + 0x2c], 0
call fcn.004d8ce0
mov ebx, dword [esp + 0x930]
mov ebp, dword [ebx]
mov edi, dword [ebp + 0x140]
mov edx, dword [edi + 0x1eb4]
sub edx, dword [edi + 0x1eb0]
lea eax, [edi + 0x1cb0]
add edx, 2
push edx
push 0x3c
mov esi, ebp
mov dword [esp + 0x30], ebp
call fcn.004af640
mov eax, dword [edi + 0x1eb0]
movzx ecx, byte [eax]
inc eax
add esp, 0x20
mov dword [edi + 0x1eb0], eax
cmp ecx, 0x18
je 0x4afde8
cmp ecx, 0x23
je 0x4afdc5
cmp ecx, 0x27
jne 0x4afe7a
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x128]
push 0x800
push eax
call fcn.004a3170
mov esi, dword [edi + 0x1cac]
add esp, 0x1c
mov ebp, 4
test esi, esi
je 0x4afd59
lea esp, [esp]
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4afce7
sub eax, edx
lea edi, [eax + ebp + 1]
cmp edi, 0x7fa
jae 0x4afd4b
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x98]
push edx
push str._127_____127s
push ebx
call fcn.004d5bb1
add esp, 0x10
test eax, eax
je 0x4afd4b
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x9c]
push ecx
push 0
mov edx, 0x800
push str._c_s_c_s
sub edx, ebp
push edx
lea eax, [esp + ebp + 0x12c]
push eax
call fcn.004a3170
add esp, 0x1c
mov ebp, edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4afce0
mov ebx, dword [esp + 0x918]
push 0xf0
push 0xff
mov ecx, 0x800
push str._c_c
sub ecx, ebp
push ecx
lea edx, [esp + ebp + 0x124]
push edx
call fcn.004a3170
mov ecx, dword [ebx + 0x420]
add esp, 0x14
push 0
add ebp, 2
push ebp
lea eax, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4afdb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push edx
call fcn.00499840
add esp, 0xc
mov esi, dword [esp + 0x10]
add ebp, 0xfffffffe
push ebp
jmp 0x4afe69
lea ecx, [edi + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4afdd0
push 0xf0
push 0xff
push ecx
push 0
push 0x23
jmp 0x4afe09
lea ecx, [edi + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4afdf3
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x134]
push 0x800
push eax
call fcn.004a3170
mov edx, dword [ebx + 0x420]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4afe63
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.00499840
add esp, 0xc
add edi, 0xfffffffe
mov esi, ebp
push edi
push 0x3e
lea eax, [esp + 0x11e]
call fcn.004af640
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x904
ret