joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429990
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push edi
lea ecx, [ecx]
movzx edi, byte [edx + 0x4b0850]
mov eax, edi
mov dword [esp + 0x10], edi
shr eax, 5
mov esi, edi
mov edx, eax
shr esi, 6
mov ebx, eax
lea ecx, [edi + edi]
xor ecx, edi
and eax, 1
mov dword [esp + 0x14], eax
and ebx, 2
shr edi, 7
and edx, 4
imul eax, edi, 0x1b000000
lea ebp, [ecx + ecx]
mov dword [esp + 0x18], edx
xor ebp, dword [esp + 0x10]
mov edx, esi
shl ebp, 0x19
and esi, 1
shl ecx, 2
and edx, 2
xor ebp, eax
xor ecx, dword [esp + 0x10]
imul eax, dword [esp + 0x14], 0x1b000000
shl ecx, 8
xor ebp, eax
imul eax, ebx, 0x1b000000
xor ebp, eax
imul eax, esi, 0x1b000000
xor ebp, eax
imul eax, edx, 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x18], 0x1b000000
xor ebp, eax
imul eax, dword [esp + 0x14], 0x11b00
xor ecx, eax
imul eax, ebx, 0x11b00
xor ecx, eax
imul eax, esi, 0x11b00
mov esi, dword [esp + 0x18]
xor ecx, eax
imul eax, edx, 0x11b00
mov edx, dword [esp + 0x10]
xor ecx, eax
imul eax, esi, 0x11b00
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*8]
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b0000
shl ecx, 0x10
xor ecx, eax
imul eax, ebx, 0x11b0000
xor ecx, eax
imul eax, esi, 0x11b0000
xor ecx, eax
mov eax, dword [esp + 0x10]
or ebp, ecx
lea ecx, [eax*4]
xor ecx, eax
imul eax, edi, 0x11b
add ecx, ecx
xor ecx, eax
imul eax, dword [esp + 0x14], 0x11b
xor ecx, eax
imul eax, ebx, 0x11b
xor ecx, eax
imul eax, esi, 0x11b
xor ecx, eax
xor eax, eax
xor ecx, edx
or edx, ebp
or ecx, ebp
or eax, edx
mov edx, dword [esp + 0x1c]
mov dword [edx*8 + 0x4d2880], eax
mov dword [edx*8 + 0x4d2884], ecx
inc edx
mov dword [esp + 0x1c], edx
cmp edx, 0x100
jl 0x4299a0
pop edi
pop esi
pop ebp
mov byte [0x4d1dc4], 1
pop ebx
add esp, 0x10
ret
Function at 0x42b1d0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
movdqa xmm0, xmmword [eax]
lea edx, [esi - 1]
pxor xmm0, xmmword [edi]
movdqa xmmword [eax], xmm0
cmp edx, 1
jbe 0x42b21e
add edx, 0xfffffffe
lea ecx, [edi + 0x10]
shr edx, 1
inc edx
mov edi, edi
movdqa xmm0, xmmword [eax]
lea ecx, [ecx + 0x20]
aesenc xmm0, xmmword [ecx - 0x20]
movdqa xmmword [eax], xmm0
aesenc xmm0, xmmword [ecx - 0x10]
movdqa xmmword [eax], xmm0
dec edx
jne 0x42b200
movdqa xmm0, xmmword [eax]
add esi, esi
aesenc xmm0, xmmword [edi + esi*8 - 0x10]
movdqa xmmword [eax], xmm0
aesenclast xmm0, xmmword [edi + esi*8]
pop edi
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42b240
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x18]
sub esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movdqa xmm1, xmmword [eax]
movdqa xmm0, xmmword [ecx]
mov eax, dword [ebp + 0x14]
pxor xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
push esi
mov esi, dword [ebp + 0x10]
pxor xmm0, xmm1
movdqa xmmword [edx], xmm0
push edi
mov edi, dword [ebp + 0x1c]
movdqa xmm0, xmmword [esi]
pxor xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
pxor xmm0, xmm1
movdqa xmmword [eax], xmm0
cmp edi, 1
jbe 0x42b2f5
mov edi, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
add edi, 0x10
dec ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
jmp 0x42b2b0
dec dword [esp + 0xc]
lea edi, [edi + 0x10]
movdqa xmm1, xmmword [edi - 0x10]
movdqa xmm0, xmmword [ecx]
aesenc xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
aesenc xmm0, xmm1
movdqa xmmword [edx], xmm0
movdqa xmm0, xmmword [esi]
aesenc xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
aesenc xmm0, xmm1
movdqa xmmword [eax], xmm0
jne 0x42b2b0
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
add edi, edi
movdqa xmm0, xmmword [ecx]
movdqa xmm1, xmmword [eax + edi*8]
mov eax, dword [ebp + 0x14]
aesenclast xmm0, xmm1
movdqa xmmword [ecx], xmm0
movdqa xmm0, xmmword [edx]
aesenclast xmm0, xmm1
movdqa xmmword [edx], xmm0
movdqa xmm0, xmmword [esi]
aesenclast xmm0, xmm1
movdqa xmmword [esi], xmm0
movdqa xmm0, xmmword [eax]
aesenclast xmm0, xmm1
pop edi
movdqa xmmword [eax], xmm0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42fec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x42fedc
jmp 0x42ff19
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00466dbf
add esp, 4
lea edx, [eax + eax + 2]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42ff12
jmp 0x42ff19
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x430220
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4cc1c0]
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 0x430270
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x43026a
shr eax, 8
cmp al, 2
jne 0x43026a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
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.004654b1
mov esp, ebp
pop ebp
ret

Function at 0x4384b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4cc1c0]
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 0x43850b
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0043b040
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x3e0]
mov dword [ebp - 0x14], 1
call fcn.00444710
mov ecx, dword [esi + 0x3e4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x10], eax
call fcn.00444710
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 0x438575
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.0043b040
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004654b1
mov esp, ebp
pop ebp
ret
Function at 0x438d10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4cc1c0]
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 0x438ed6
cmp byte [edi + 0x1c1], 0
jne 0x438ecf
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 0x438d95
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00459530
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0043b0c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 8], 0x80
push 0
push eax
call fcn.00466700
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 0x438dfa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00459530
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043b0c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
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.00438cb0
add esp, 4
test al, al
jne 0x438e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00459530
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043b0c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
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.00438cb0
add esp, 4
test al, al
jne 0x438ecf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
mov edx, esi
call fcn.00459530
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043b0c0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00438bf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654b1
mov esp, ebp
pop ebp
ret
Function at 0x439250
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4cc1c0]
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 0x4392b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov ecx, edi
call fcn.00459530
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043b040
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043b040
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.004654b1
mov esp, ebp
pop ebp
ret

Function at 0x4392e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4cc1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4d2614]
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 0x4393a5
push 0x11c
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00466700
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 0x439399
mov dword [0x4d2614], 2
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
mov dword [0x4d2614], 1
jmp 0x4393aa
cmp eax, 2
je 0x4393e6
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 0x4393cf
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jg 0x4393e6
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.004654b1
mov esp, ebp
pop ebp
ret
Function at 0x439860
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4cc1c0]
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 0x4398be
mov ecx, dword [edi + 0x44]
test ecx, ecx
jne 0x43988d
cmp dword [edi + 0x40], ecx
je 0x4398be
mov dword [ebp - 0x10], esi
mov byte [ebp - 0xc], 0
test ecx, ecx
jne 0x43989b
mov ecx, dword [edi + 0x40]
add ecx, 0x68
lea edx, [ebp - 0x10]
push 0x439840
call fcn.00440850
add esp, 4
cmp byte [ebp - 0xc], 0
jne 0x4398d2
mov dword [edi + 0x538], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4398d8
mov dword [ebx], esi
cmp byte [esi + 0x178], 0
mov edi, dword [esi + 0x154]
jne 0x4398be
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.004654b1
mov esp, ebp
pop ebp
ret
Function at 0x43b2b0
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 0x43b32e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x43b2fe
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.00459530
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0043b0c0
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 0x43b7f0
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 0x43b816
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 0x43b84a
push dword [esi + 0x118]
lea eax, [edx*2 + 0x4b3594]
push 1
add eax, edx
push 2
push eax
call fcn.00467ab0
push dword [esi + 0x118]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00467ab0
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x444730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
call fcn.00444720
push eax
push edx
push esi
call fcn.00479f03
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x44ae70
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.0x44ae86.4
jmp dword [edx*4 + 0x44b0ac]
lea ecx, [edi + 0x15c]
call fcn.0044a790
movzx ecx, word [edi + 0x40]
movzx esi, ax
lea eax, [ecx + 1]
and eax, 0xffff
cmp eax, esi
jne 0x44aeb4
mov dword [edi + 0x18], 0
jmp 0x44aecb
cmp ecx, esi
jne 0x44af45
push esi
push str.Received_last_DATA_packet_block__d_again._n
push ebx
call fcn.0043b040
add esp, 0xc
mov edx, 4
mov word [edi + 0x40], si
lea ecx, [edi + 0x160]
call fcn.0044a740
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.0044a760
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 0x44b01b
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.0046c047
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.0043b040
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.0044a740
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.0044a760
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 0x44b01b
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.0046c047
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.0043b040
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x44aff7
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 0x44b088
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x10]
mov edx, eax
call fcn.00459530
push eax
push 0x4b44fc
push ebx
call fcn.0043b0c0
mov eax, 0x37
add esp, 0xc
pop edi
pop esi
pop ebx
ret
mov edx, 5
lea ecx, [edi + 0x160]
call fcn.0044a740
mov dx, word [edi + 0x40]
lea ecx, [edi + 0x160]
call fcn.0044a760
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 0x4b44fc
push ebx
call fcn.0043b0c0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
ret
Function at 0x44b6e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4cc1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 8], 0x80
push edi
mov dword [ebp - 0x8c], eax
mov esi, dword [eax + 0x3a0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x88]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
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 0x44b766
push dword [ebp - 8]
lea eax, [ebp - 0x88]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00465910
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x44b799
push str.Received_too_short_packet
push edi
call fcn.0043b0c0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0044a780
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x44b7b2
jmp dword [eax*4 + 0x44b8cc]
cmp edx, 4
jle case.0x44b7b2.4
mov ecx, ebx
call fcn.0044a790
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x44b7b2.4
mov ecx, dword [ebp - 0x8c]
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
mov edx, 1
add eax, 4
push eax
call fcn.0043b630
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x44b819
mov edx, 5
mov ecx, esi
call fcn.0044b450
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
mov ecx, edi
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
call fcn.00444cc0
add esp, 8
jmp case.0x44b7b2.4
mov ecx, ebx
call fcn.0044a790
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x4baaec
push edi
call fcn.0043b040
jmp 0x44b893
lea eax, [edx - 2]
mov ecx, esi
mov edx, dword [ebx]
push eax
add edx, 2
call fcn.0044a820
add esp, 4
test eax, eax
je case.0x44b7b2.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4b44fc
push edi
call fcn.0043b0c0
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
call fcn.00444da0
test eax, eax
je 0x44b786
mov edx, 5
mov ecx, esi
call fcn.0044b450
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654b1
mov esp, ebp
pop ebp
ret
Function at 0x44f250
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4cc1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0x10
push edi
lea ecx, [ebp - 8]
or edi, 0xffffffff
push ecx
mov eax, dword [esi + 0x158]
lea ecx, [ebp - 0x18]
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44f2a7
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov edx, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00439920
cmp edi, 0xffffffff
jne 0x44f2da
push str.Error_accept__ing_server_connect
push ebx
call fcn.0043b0c0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.0043b040
add esp, 8
mov dword [esi + 0x158], edi
mov edx, 1
mov ecx, edi
call fcn.00458d40
mov byte [esi + 0x165], 1
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x44f346
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x44f346
mov edx, edi
mov ecx, esi
call fcn.00439920
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654b1
mov esp, ebp
pop ebp
ret