joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4573c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004482a0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.0048dd41
push dword [ebp + 0xc]
mov edi, eax
call fcn.0048dd41
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x457447
lea eax, [ebp - 0x20]
push eax
call fcn.004482a0
movups xmm0, xmmword [ebp - 0x10]
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.00448350
add esp, 0x20
test edx, edx
ja 0x45746a
jb 0x457435
cmp eax, 0x3e8
ja 0x45746a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x457400
test edi, edi
je 0x457454
push edi
call fcn.0047b4f8
add esp, 4
test esi, esi
je 0x457461
push esi
call fcn.0047b4f8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x457477
push edi
call fcn.0047b4f8
add esp, 4
test esi, esi
je 0x457484
push esi
call fcn.0047b4f8
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457490
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 [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0x14]
push 6
push 1
push 2
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x2c], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x457661
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
xor eax, eax
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x45764f
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x45764f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x45764f
cmp dword [ebp - 0x28], 0x10
jl 0x45764f
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x45764f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x45764f
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x45764f
push 1
push esi
call fcn.0046bb50
add esp, 8
test eax, eax
js 0x45764f
push 0
push 0x2710
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], esi
push 1
push eax
mov dword [ebp - 0x30], 0x300
call fcn.00451f70
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x45764f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x45764f
cmp dword [ebp - 0x28], 0x10
jl 0x45764f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x45764f
cmp dword [ebp - 0x28], 0x10
jl 0x45764f
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x24]
jne 0x45764f
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x45764f
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x45764f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
xor ecx, ebp
pop esi
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x4576b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [eax], edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
test eax, eax
jne 0x457847
push esi
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x457833
push ebx
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45770e
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457700
sub eax, edx
lea ecx, [eax + 1]
jmp 0x457710
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp eax, 2
jne 0x457722
mov eax, 0x10
jmp 0x457730
cmp eax, 0x17
jne 0x4577d5
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0x4577d5
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4577d5
cmp edx, eax
jb 0x4577d5
add ecx, 0x20
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x457825
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00477960
mov edx, dword [ebp - 0xc]
add esp, 0xc
test edx, edx
je 0x4577c3
mov eax, dword [ebx + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00477960
add esp, 0xc
mov eax, dword [ebp - 0x10]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x4577d2
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4576f0
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
pop ebx
test eax, eax
je 0x4577f2
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x45782f
test edi, edi
je 0x457816
nop word [eax + eax]
mov esi, dword [edi + 0x1c]
push edi
call dword [0x4c5004]
add esp, 4
mov edi, esi
test esi, esi
jne 0x457800
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 8], esi
jmp 0x4577e3
test edi, edi
jne 0x45783f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x457a40
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x457a89
push ebx
push esi
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00457850
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x457aba
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
push 0x17
call fcn.00457850
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c6f
mov esp, ebp
pop ebp
ret

Function at 0x457c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.0048855f
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x457c57
cmp ecx, 0xffffffff
cmovne eax, ecx
pop ebp
ret

Function at 0x45cff0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
or esi, 0xffffffff
push ecx
mov ebx, dword [edi + 0xc]
mov eax, dword [ebx + 0x14c]
push eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x45d064
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x8c]
push ebx
push edi
call fcn.00443e40
add esp, 0xc
cmp esi, 0xffffffff
jne 0x45d09d
push str.Error_accept__ing_server_connect
push edi
call fcn.00443440
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server
push edi
call fcn.00443500
push 1
push esi
mov byte [ebx + 0x252], 0
mov dword [ebx + 0x14c], esi
call fcn.0046bb50
add esp, 0x10
mov byte [ebx + 0x265], 1
cmp dword [edi + 0x1b8], 0
je 0x45d11a
push 1
push edi
call fcn.00435240
mov eax, dword [edi + 0x1b8]
push 1
push esi
push dword [edi + 0x1bc]
call eax
push 0
push edi
mov esi, eax
call fcn.00435240
add esp, 0x1c
test esi, esi
je 0x45d11a
push ebx
push edi
call fcn.0045d590
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
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.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x45f150
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x45f185
push str.Couldnt_set_desired_mode
push esi
call fcn.00443440
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xc8
je 0x45f19c
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00443500
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x45f1b7
push ebx
push esi
call fcn.0045f050
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x14
jne 0x45f2c9
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp dword [esi + 0x500], 2
mov dword [ebp + 0xc], eax
jne 0x45f22c
mov eax, dword [esi + 0x134]
mov eax, dword [eax]
test eax, eax
je 0x45f22c
push 3
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
push ecx
push ebx
push eax
push esi
call fcn.0046b540
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x45f2e6
push 0x2f
push dword [ebp + 8]
call fcn.00478040
add esp, 8
test eax, eax
je 0x45f220
mov ebx, dword [ebp + 8]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x45f22c
push dword [ebp + 8]
call dword [0x4c5004]
add esp, 4
mov ecx, dword [esi + 0x544]
test ecx, ecx
jne 0x45f24a
cmp byte [esi + 0xd25], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x4bdf87
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x4ab398
cmove eax, edx
push eax
push ecx
push 0x4a6058
call fcn.00454930
mov edi, eax
push ebx
mov dword [ebp - 4], edi
call dword [0x4c5004]
add esp, 0x14
test edi, edi
jne 0x45f28c
mov edi, 0x1b
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push edi
push 0x4a51b0
add eax, 0x308
push eax
push esi
call fcn.00470ab0
push dword [ebp - 4]
mov edi, eax
call dword [0x4c5004]
add esp, 0x14
test edi, edi
jne 0x45f2e6
mov eax, dword [esi + 0xc]
mov dword [eax + 0x38c], 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x15
jne 0x45f2d2
push 0xd
jmp 0x45f2d9
cmp eax, 0x16
jne 0x45f2e6
push 0xe
push 1
push esi
call fcn.0045eba0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465a80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x465ac8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00443440
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.00465690
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x134]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jne 0x465d61
lea edx, [ecx + 0x1cb4]
push edi
lea edi, [ecx + 0x1eb4]
mov eax, edx
mov dword [edi], edx
cmp edx, edi
jae 0x465c40
lea eax, [edx + 1]
mov byte [edx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x465c54
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x465c54
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ecx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 8]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x465cc0
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x465cc0
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x465cc0
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x465cc0
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x465cc0
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x465cc0
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 4]
mov dword [esi + 0x1eb8], eax
lea ecx, [esi + 0x1cb4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.00465790
add esp, 0x10
lea eax, [esi + 0x1cb4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x465d1e
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00443440
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.00465ae0
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x465d60
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00443440
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4672d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x308]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x46735c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.00477960
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x46738f
push str.Received_too_short_packet
push ebx
call fcn.00443440
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x4673ae.1
jmp dword [ecx*4 + 0x4674ec]
cmp esi, 4
jle case.0x4673ae.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4673ae.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.00443390
mov esi, eax
add esp, 0x10
test esi, esi
je 0x467415
push 5
push edi
call fcn.00467e50
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.00450da0
jmp 0x4674b5
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [ebp - 0x8c], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.00467ed0
add esp, 8
cmp eax, esi
jae case.0x4673ae.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.00443500
jmp 0x4674b5
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.00467050
add esp, 0xc
test eax, eax
je case.0x4673ae.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4a51b0
push ebx
call fcn.00443440
add esp, 0xc
push ebx
call fcn.00451180
add esp, 4
test eax, eax
je 0x46737c
push 5
push edi
call fcn.00467e50
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
Function at 0x467e50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x467e60
jmp dword [edx*4 + 0x467eb4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467830
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467510
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00468000
push str.TFTP_finished
push 0x4a51b0
push ecx
call fcn.00443500
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4a51b0
push ecx
call fcn.00443440
add esp, 0xc
mov eax, 0x47
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x467e60
jmp dword [edx*4 + 0x467eb4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467830
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467510
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00468000
push str.TFTP_finished
push 0x4a51b0
push ecx
call fcn.00443500
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4a51b0
push ecx
call fcn.00443440
add esp, 0xc
mov eax, 0x47
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x467e60
jmp dword [edx*4 + 0x467eb4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467830
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467510
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00468000
push str.TFTP_finished
push 0x4a51b0
push ecx
call fcn.00443500
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4a51b0
push ecx
call fcn.00443440
add esp, 0xc
mov eax, 0x47
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x467e60
jmp dword [edx*4 + 0x467eb4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467830
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00467510
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00468000
push str.TFTP_finished
push 0x4a51b0
push ecx
call fcn.00443500
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x4a51b0
push ecx
call fcn.00443440
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x4685f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x4c5008]
mov edi, eax
add esp, 8
test edi, edi
je 0x46864a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x468666
cmp esi, ebx
je 0x468666
cmp esi, 0x8000
ja 0x468666
cmp esi, ebx
jb 0x46865d
push esi
push edi
call dword [0x4c5008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x468610
mov ebx, dword [ebp - 4]
push ebx
call dword [0x4c5004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x4c5004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x469750
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4c506c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
mov dword [ebp - 0x28], eax
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x469771
sub esi, ecx
cmp byte [ebx], 0x5b
jne 0x469898
cmp esi, 4
jb 0x4698aa
inc ebx
sub esi, 2
cmp byte [ebx + esi], 0x5d
jne 0x4698aa
push str.0123456789abcdefABCDEF:.
push ebx
call fcn.004887c0
add esp, 8
cmp esi, eax
je 0x469861
mov esi, eax
add eax, ebx
mov dword [ebp - 0x2c], eax
cmp byte [eax], 0x25
jne 0x4698aa
push 2
lea edi, [eax + 1]
push 0x4acbfc
push edi
call fcn.004865d0
add esp, 0xc
test eax, eax
jne 0x4697e7
mov cl, byte [edi + 2]
lea eax, [edi + 2]
test cl, cl
je 0x4697e7
cmp cl, 0x5d
cmovne edi, eax
mov al, byte [edi]
test al, al
je 0x4698aa
lea edx, [ebp - 0x14]
sub edx, edi
xor ecx, ecx
cmp al, 0x5d
je 0x46980d
cmp ecx, 0xf
jge 0x46980d
mov byte [edx + edi], al
inc ecx
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4697f8
test ecx, ecx
je 0x4698aa
cmp byte [edi], 0x5d
jne 0x4698aa
cmp ecx, 0x10
jae 0x4698c0
lea eax, [ebp - 0x14]
mov byte [ebp + ecx - 0x14], 0
push eax
call dword [0x4c500c]
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x469859
pop edi
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov word [eax], 0x5d
lea eax, [ebp - 0x24]
mov byte [ebx + esi], 0
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x4698aa
mov byte [ebx + esi], 0x5d
xor eax, eax
mov ecx, 0xe
cmp byte [ebx], al
pop edi
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
push 0x4ab398
push ebx
call fcn.0047c8b0
add esp, 8
cmp esi, eax
je 0x46987b
mov ecx, dword [ebp - 4]
mov eax, 3
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c6f
mov esp, ebp
pop ebp
ret
call fcn.0047626b
int3