joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a600
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x43a610
push dword [esp + 0x20]
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x10], xmm0
sub esi, ecx
mov word [esp + 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
lea eax, [esp + 8]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jge 0x43a659
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 8]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x31]
push eax
push 1
call dword [0x5a8010]
mov esi, eax
add esp, 8
test esi, esi
je 0x43a651
movups xmm0, xmmword [esp + 0xc]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 0x18], eax
mov edx, edi
mov dword [esi + 4], 2
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
movups xmmword [eax], xmm0
mov ecx, dword [esi + 0x18]
add ecx, 0x10
mov dword [esi + 0x14], ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x43a6b1
push edi
push dword [esp + 0x24]
call fcn.0043a6f0
add esp, 8
test eax, eax
jne 0x43a6d8
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret
pop edi
mov dword [eax + 0x1c], esi
pop esi
add esp, 0x14
ret

Function at 0x43a6f0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x30
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov esi, dword [esp + 0x3c]
mov ecx, esi
push edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43a710
sub ecx, edx
lea eax, [ecx + 0x3d]
push eax
push 1
call dword [0x5a8010]
mov edi, eax
add esp, 8
test edi, edi
jne 0x43a741
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0046ec22
add esp, 0x30
ret
push dword [esp + 0x3c]
mov eax, 0x17
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 0x24]
push eax
push 0x55264c
push 0x17
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x43a72e
movups xmm0, xmmword [esp + 0x24]
push 0x1c
lea ecx, [esp + 0xc]
mov dword [edi], 0
lea eax, [edi + 0x20]
mov dword [edi + 4], 0x17
push ecx
push eax
movups xmmword [esp + 0x1c], xmm0
mov dword [edi + 8], 1
mov dword [edi + 0xc], 6
mov dword [edi + 0x10], 0x1c
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
call fcn.004effe0
mov ecx, dword [edi + 0x18]
add esp, 0xc
add ecx, 0x1c
mov dword [edi + 0x14], ecx
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x43a7d3
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0046ec22
add esp, 0x30
ret
Function at 0x43a850
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x6c
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x7c]
push edi
xor edi, edi
mov dword [esp + 0xc], esi
cmp byte [ebp + 0x69a], 0
je 0x43aa27
cmp byte [esi + 0x18], 0
push ebx
lea ebx, [esi + 0x18]
je 0x43aa26
lea eax, [esp + 0x34]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x43aa26
lea eax, [esp + 0x38]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x43aa26
mov ecx, dword [esp + 0x10]
mov eax, str._none_
cmp byte [ebx], 0
mov esi, dword [esi]
cmovne eax, ebx
push dword [ecx + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.0042ffe0
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.0041d930
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.0041d930
add esp, 0x20
test esi, esi
je 0x43a99a
nop
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x43a911
cmp ecx, 2
jne 0x43a98f
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
setne al
shl eax, 4
add ebx, eax
sub ecx, 2
je 0x43a943
sub ecx, 0x15
jne 0x43a958
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x43a953
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call sub.WS2_32.dll_inet_ntop
push ebx
call fcn.0046baf0
add esp, 4
test eax, eax
je 0x43a977
push 2
push 0x551220
push ebx
call fcn.0041d8f0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x43a9ba
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.0041d890
mov edi, eax
add esp, 8
test edi, edi
jne 0x43a9ba
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x43a900
lea eax, [esp + 0x24]
push eax
call fcn.0046baf0
add esp, 4
test eax, eax
je 0x43a9ca
lea eax, [esp + 0x24]
push eax
call fcn.0041d950
add esp, 4
jmp 0x43a9cf
push str.too_many_IP__cant_show
push ebp
call fcn.0042ffe0
add esp, 8
jmp 0x43aa0f
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.0042ffe0
lea eax, [esp + 0x20]
push eax
call fcn.0046baf0
add esp, 0x10
test eax, eax
je 0x43a9fb
lea eax, [esp + 0x14]
push eax
call fcn.0041d950
add esp, 4
jmp 0x43aa00
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.0042ffe0
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.0041d900
lea eax, [esp + 0x28]
push eax
call fcn.0041d900
add esp, 8
pop ebx
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0046ec22
add esp, 0x6c
ret
Function at 0x442f30
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00423690
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.00442350
push dword [esp + 0x40]
mov edi, eax
call fcn.00442350
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x442fc5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.00423690
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00423730
add esp, 0x20
test edx, edx
ja 0x442fe9
jb 0x442fb7
cmp eax, 0x3e8
ja 0x442fe9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x442f80
test edi, edi
je 0x442fd2
push edi
call fcn.004f67c5
add esp, 4
test esi, esi
je 0x442fdf
push esi
call fcn.004f67c5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x442ff6
push edi
call fcn.004f67c5
add esp, 4
test esi, esi
je 0x443003
push esi
call fcn.004f67c5
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret

Function at 0x443ec0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x443f6b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.004297a0
add esp, 0xc
cmp eax, 4
jne 0x443f26
cmp byte [0x5a9de0], 0
jne 0x443f32
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x443f6d
mov eax, dword [esp + 0x1c]
jmp 0x443f4f
imul eax, dword [0x5a9de4], 0x41c64e6d
add eax, 0x3039
mov dword [0x5a9de4], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x443f63
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x443f53
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x443ee0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x443f80
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x44401f
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004297a0
add esp, 0xc
cmp eax, 4
jne 0x444000
cmp byte [0x5a9de0], 0
jne 0x443fe3
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x444004
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
imul eax, dword [0x5a9de4], 0x41c64e6d
add eax, 0x3039
mov dword [0x5a9de4], eax
rol eax, 0x10
mov dword [esp + 0x1c], eax
jmp 0x444004
test eax, eax
jne 0x444024
mov eax, dword [esp + 0x1c]
cmp eax, 0xfffffffc
jae 0x443fa0
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x443fa0
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x444030
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.004efc10
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x447090
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x5a8008]
mov edi, eax
add esp, 8
test edi, edi
je 0x447067
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x44707f
cmp esi, ebx
je 0x44707f
cmp esi, 0x8000
ja 0x44707f
cmp esi, ebx
jb 0x447078
push esi
push edi
call dword [0x5a8008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x447030
push ebp
call dword [0x5a8004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x5a8004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x447010

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

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x44bbbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042ff10
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.0044b470
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x44bd20
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x44be6e
push esi
push edi
lea eax, [ebp + 0x1cc4]
lea edi, [ebp + 0x1ec4]
mov dword [edi], eax
cmp eax, edi
jae 0x44bd58
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44bd63
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44bd6e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov ecx, dword [esp + 0x18]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x44bda0
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44bdaa
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44bdb4
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44bdbe
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44bdc9
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44bdd4
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebp + 0x1cc4]
mov dword [ebp + 0x1ec8], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
push eax
lea eax, [ebp + 0x1cc6]
push eax
push 0x3e
push ebx
call fcn.0044b580
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x1a0]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x44be2e
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0042ff10
add esp, 0xc
push 4
lea eax, [ebp + 0x1cc7]
push eax
push ebx
call fcn.0044bbe0
add esp, 0xc
lea eax, [ebp + 0x1ccb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1a0]
call edi
test eax, eax
jns 0x44be6c
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0042ff10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x44be80
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push ebp
mov ebp, dword [esp + 0x818]
push esi
push edi
mov edi, dword [ebp + 0x124]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x1ec8]
sub eax, dword [edi + 0x1ec4]
add eax, 2
push eax
lea eax, [edi + 0x1cc4]
push eax
push 0x3c
push ebp
call fcn.0044b580
mov eax, dword [edi + 0x1ec4]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1ec4], eax
cmp ecx, 0x18
je 0x44c018
cmp ecx, 0x23
je 0x44bff3
cmp ecx, 0x27
jne 0x44c0a0
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.00435230
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
mov ebx, 0x800
test edi, edi
je 0x44bfb8
mov edx, dword [edi]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44bf40
sub ecx, dword [esp + 0x10]
lea eax, [esi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x44bfad
push 0x2c
push edx
call fcn.004efd70
add esp, 8
test eax, eax
jne 0x44bf84
push dword [edi]
push eax
mov eax, ebx
sub eax, esi
push str._c_s
push eax
lea eax, [esp + 0x28]
add eax, esi
push eax
call fcn.00435230
add esp, 0x14
jmp 0x44bfab
mov ecx, dword [edi]
mov edx, eax
inc eax
sub edx, ecx
push eax
push 1
push ecx
push edx
push 0
mov eax, ebx
sub eax, esi
push str._c_.s_c_s
push eax
lea eax, [esp + 0x34]
add eax, esi
push eax
call fcn.00435230
add esp, 0x20
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0x44bf35
push 0xf0
push 0xff
push str._c_c
sub ebx, esi
lea eax, [esp + 0x24]
add eax, esi
push ebx
push eax
call fcn.00435230
add esp, 0x14
lea eax, [esp + 0x18]
add esi, 2
push 0
push esi
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x1a0]
jmp 0x44c06d
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44c000
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0x44c039
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44c023
push 0xf0
push 0xff
push edi
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [esp + 0x38]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00435230
add esp, 0x28
lea eax, [esp + 0x18]
push 0
push esi
push eax
push dword [ebx + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x44c08c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.0042ff10
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebp
call fcn.0044b580
add esp, 0x10
mov ecx, dword [esp + 0x818]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x80c
ret
Function at 0x44cd90
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x3f0]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x44ce16
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.004effe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x44ce51
push str.Received_too_short_packet
push ebp
call fcn.0042ff10
add esp, 8
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x8c
ret
mov ecx, dword [edi + 0x148]
movzx eax, byte [ecx]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 1]
or edx, eax
mov dword [edi + 0xc], edx
add edx, 0xfffffffd
cmp edx, 3
ja case.default.0x44ce76
jmp dword [edx*4 + 0x44cf70]
cmp esi, 4
jle case.0x44ce76.4
movzx eax, byte [ecx + 2]
shl ax, 8
movzx edx, ax
movzx eax, byte [ecx + 3]
or edx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, edx
jne case.0x44ce76.4
lea eax, [esi - 4]
push eax
lea eax, [ecx + 4]
push eax
push 1
push ebp
call fcn.00431070
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x44ce76.4
push 5
push edi
call fcn.0044d790
add esp, 8
jmp 0x44ce36
mov edx, ecx
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
push esi
push dword [esp + 0x18]
movzx eax, byte [edx + 2]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edx + 3]
or ecx, eax
mov dword [edi + 8], ecx
call fcn.0044d8c0
add esp, 8
cmp eax, esi
jae case.0x44ce76.4
push dword [esp + 0x14]
push str.TFTP_error:__s
push ebp
call fcn.0042ffe0
jmp 0x44cf45
lea eax, [esi - 2]
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.0044cb50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x44ce76.4
jmp 0x44ce36
push str.Internal_error:_Unexpected_packet
push 0x54eda0
push ebp
call fcn.0042ff10
add esp, 0xc
push ebp
call fcn.00440fd0
add esp, 4
test eax, eax
je 0x44ce36
push 5
push edi
call fcn.0044d790
add esp, 8
mov eax, 0x2a
jmp 0x44ce38
Function at 0x453a00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x1a4]
push esi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x453a6b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x453a6f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x453a9f
push str.Error_accept__ing_server_connect
push edi
call fcn.0042ff10
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0046ec22
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.0042ffe0
mov byte [ebx + 0x24d], 0
push 1
push dword [esp + 0x18]
call fcn.0046ca00
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push edi
call fcn.00462050
mov esi, eax
add esp, 0x20
test esi, esi
je 0x453af7
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0046ec22
add esp, 0x8c
ret
cmp dword [edi + 0x19c], 0
je 0x453b54
push 1
push edi
call fcn.0041e490
mov eax, dword [edi + 0x19c]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.0041e490
add esp, 0x1c
test esi, esi
je 0x453b54
push ebx
push edi
call fcn.00454150
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0046ec22
add esp, 0x8c
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x8c
ret
Function at 0x456670
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
mov eax, 0x51eb851f
imul ecx
push ebx
sar edx, 5
push esi
mov esi, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 2
je 0x4566ab
push str.Couldnt_set_desired_mode
push esi
call fcn.0042ff10
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x4566c2
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.0042ffe0
add esp, 0xc
mov al, byte [esp + 0x18]
cmp al, 0x13
jne 0x4566da
push ebx
push esi
call fcn.004562d0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x4566ed
push esi
call fcn.004551f0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x456704
push 0xd
push 1
push esi
call fcn.00455da0
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x456717
push 0xe
push 1
push esi
call fcn.00455da0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x45a550
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x4c
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 8], eax
cmp ebp, 4
jae 0x45a58b
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0046ec22
add esp, 0x4c
ret
push esi
push edi
inc ebx
sub ebp, 2
push str.0123456789abcdefABCDEF:.
push ebx
call fcn.004fe320
add esp, 8
cmp ebp, eax
je 0x45a657
mov ebp, eax
add eax, ebx
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x45a671
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x558484
push esi
call fcn.004fd580
add esp, 0xc
test eax, eax
jne 0x45a5e1
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x45a5e1
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x45a671
lea ecx, [esp + 0x18]
sub ecx, esi
cmp al, 0x5d
je 0x45a606
cmp edi, 0xf
jge 0x45a606
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x45a5f1
test edi, edi
je 0x45a671
cmp byte [esi], 0x5d
jne 0x45a671
cmp edi, 0x10
jae 0x45a6eb
lea eax, [esp + 0x18]
mov byte [esp + edi + 0x18], 0
push eax
call dword [0x5a800c]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x45a64e
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0046ec22
add esp, 0x4c
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0x5d
lea eax, [esp + 0x18]
mov byte [ebx + ebp], 0
push eax
push ebx
lea esi, [ebx + ebp]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x45a689
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0046ec22
add esp, 0x4c
ret
push 0x2e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x45a6d3
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x45a6a7
sub edx, ecx
cmp edx, ebp
jae 0x45a6d3
lea ecx, [esp + 0x28]
mov esi, ebx
mov eax, ecx
sub esi, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x45a6c0
lea esi, [edx + ebx]
mov byte [esi + 1], al
mov ecx, dword [esp + 0x58]
xor eax, eax
pop edi
mov byte [esi], 0x5d
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x4c
ret
call fcn.0046ed8e
int3