joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a810
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6d0], 0
je 0x41a89c
cmp dword [esi + 0x1a4], 0
je 0x41a863
push esi
call fcn.0040aab0
push 1
push esi
mov byte [esp + 0x14], al
call fcn.0040ad60
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.0040ad60
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x41a89c
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x482a24
push 2
push eax
call fcn.00461dc0
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00461dc0
add esp, 0x20
pop esi
ret

Function at 0x41c600
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x482c30
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x41c61a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x482c44
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x482c54
push esi
call fcn.00463e34
add esp, 8
test eax, eax
je 0x41c662
test ebp, ebp
je 0x41c653
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41c688
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c688
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x41c762
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c6a5
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41c758
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41c758
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c6e6
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c701
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x41c720
test ebp, ebp
je 0x41c74f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4a3004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x4a3004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x421cf0
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a337c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x421d39
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x421d39
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045aab3
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.0045aab3
add esp, 0x18
ret

Function at 0x421e40
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x421e7e
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 0
jne 0x421e72
push 0
call fcn.00421e40
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xe8], cl
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x421e93
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x422910
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x34
mov eax, dword [0x4a337c]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x38]
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, edi
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x422930
movzx ebp, cx
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x34], xmm0
push ebp
sub esi, edx
mov word [esp + 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
lea eax, [esp + 0xc]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x422ad6
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x31]
push 1
push eax
call dword [0x4a3010]
mov esi, eax
add esp, 8
test esi, esi
je 0x422ad6
movups xmm0, xmmword [esp + 0x2c]
lea ecx, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 0x18], ecx
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 [ecx], 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 0x4229d2
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4229e5
sub ecx, edx
push ebx
push 1
lea eax, [ecx + 0x3d]
push eax
call dword [0x4a3010]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x422a1e
xor ebx, ebx
mov eax, esi
mov dword [esi + 0x1c], ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0045aab3
add esp, 0x34
ret
mov eax, 0x17
push ebp
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x30]
push eax
push 0x48392c
push 0x17
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x422a04
movups xmm1, xmmword [esp + 0x30]
lea eax, [ebx + 0x20]
mov dword [ebx], 0
mov dword [ebx + 0x18], eax
movups xmmword [esp + 0x1c], xmm1
mov dword [ebx + 4], 0x17
movups xmm0, xmmword [esp + 0x14]
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 6
mov dword [ebx + 0x10], 0x1c
mov dword [ebx + 0x1c], 0
movups xmmword [eax], xmm0
unpckhpd xmm1, xmm1
movq qword [eax + 0x10], xmm1
mov dword [eax + 0x18], 0
mov ecx, dword [ebx + 0x18]
add ecx, 0x1c
mov dword [ebx + 0x14], ecx
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x422ab0
mov dword [esi + 0x1c], ebx
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0045aab3
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045aab3
add esp, 0x34
ret
Function at 0x42d8b0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0040fe50
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0042bc80
push dword [esp + 0x40]
mov edi, eax
call fcn.0042bc80
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 0x42d945
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0040fe50
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.0040ff00
add esp, 0x20
test edx, edx
ja 0x42d969
jb 0x42d937
cmp eax, 0x3e8
ja 0x42d969
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x42d900
test edi, edi
je 0x42d952
push edi
call fcn.0045ff2a
add esp, 4
test esi, esi
je 0x42d95f
push esi
call fcn.0045ff2a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x42d976
push edi
call fcn.0045ff2a
add esp, 4
test esi, esi
je 0x42d983
push esi
call fcn.0045ff2a
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x42dd80
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x42df11
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x42defc
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ddde
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42ddd0
sub eax, edx
lea ecx, [eax + 1]
jmp 0x42dde0
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x42ddf1
lea ebp, [eax + 0xe]
jmp 0x42ddfd
cmp eax, 0x17
jne 0x42de9e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x42de9e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42de9e
cmp eax, ebp
jb 0x42de9e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x42deed
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.0045c940
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x42de8a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0045c940
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x42de9a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42ddc2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x42debe
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x42def8
test ebx, ebx
je 0x42dedd
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x4a3004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x42dec6
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x42dead
test ebx, ebx
jne 0x42df08
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x42e380
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 0x42e42b
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.004151e0
add esp, 0xc
cmp eax, 4
jne 0x42e3e6
cmp byte [0x4a4248], 0
jne 0x42e3f2
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 0x42e42d
mov eax, dword [esp + 0x1c]
jmp 0x42e40f
imul eax, dword [0x4a4244], 0x41c64e6d
add eax, 0x3039
mov dword [0x4a4244], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x42e423
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x42e413
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x42e3a0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42e440
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4a337c]
xor eax, esp
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x98]
mov eax, ecx
mov edx, dword [esp + 0x90]
and eax, 0xfffffffe
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0x98]
cmp eax, 0x100
jae 0x42e59b
test cl, 1
je 0x42e59b
push ebx
dec ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xa8], ecx
shr edi, 1
lea esi, [esp + 0x18]
mov ecx, 0x2b
je 0x42e53d
mov ebx, 4
lea eax, [esp + 0x10]
push 4
push eax
cmp edi, ebx
push edx
cmovb ebx, edi
call fcn.004151e0
add esp, 0xc
cmp eax, 4
jne 0x42e4eb
cmp byte [0x4a4248], 0
jne 0x42e4fb
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 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 0x42e582
mov eax, dword [esp + 0x10]
jmp 0x42e518
imul eax, dword [0x4a4244], 0x41c64e6d
add eax, 0x3039
mov dword [0x4a4244], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x42e530
nop dword [eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x42e520
mov dword [esp + 0x10], eax
test edi, edi
je 0x42e53d
mov edx, dword [esp + 0x14]
jmp 0x42e4a5
mov eax, ecx
test eax, eax
jne 0x42e582
mov edx, dword [esp + 0xa8]
test edx, edx
je 0x42e57c
lea ebx, [esp + 0x18]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x486cbc]
mov byte [ebp], al
movzx eax, byte [ecx + 0x486cbc]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x42e552
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0045aab3
add esp, 0x8c
ret
mov ecx, dword [esp + 0x8c]
mov eax, 0x2b
pop ebp
xor ecx, esp
call fcn.0045aab3
add esp, 0x8c
ret

Function at 0x42e5c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.0045c6b0
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 0x431210
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 [0x4a3008]
mov edi, eax
add esp, 8
test edi, edi
je 0x431267
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 0x43127f
cmp esi, ebx
je 0x43127f
cmp esi, 0x8000
ja 0x43127f
cmp esi, ebx
jb 0x431278
push esi
push edi
call dword [0x4a3008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x431230
push ebp
call dword [0x4a3004]
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 [0x4a3004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x432740
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 + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43278c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0041a8a0
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.00432360
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x4328e0
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 + 0xc]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x432a30
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x43292e
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43292e
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x43292e
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 edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x432998
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432998
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432998
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432998
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432998
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432998
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.00432460
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 + 0x120]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4329f0
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0041a8a0
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.004327b0
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x120]
call edi
test eax, eax
jns 0x432a2e
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0041a8a0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x432a40
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x4a337c]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [ebx + 0x124]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.00432460
mov eax, dword [esi + 0x1eb4]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x432c18
cmp cl, 0x23
je 0x432bf5
cmp cl, 0x27
jne 0x432ca0
push edi
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.0042a8f0
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x432b75
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432b00
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x432b66
push 0x2c
push edx
call fcn.0045c810
mov ebx, 0x800
lea ebp, [esp + 0x20]
mov edx, eax
add esp, 8
sub ebx, edi
add ebp, edi
test edx, edx
jne 0x432b47
push dword [esi]
push eax
push str._c_s
push ebx
push ebp
call fcn.0042a8f0
add esp, 0x14
jmp 0x432b64
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
push edx
push 0
push str._c_.s_c_s
push ebx
push ebp
call fcn.0042a8f0
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x432af4
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [esp + 0x28]
add eax, edi
push eax
call fcn.0042a8f0
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x432bcb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0041a8a0
add esp, 0xc
push edi
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebx
call fcn.00432460
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.0045aab3
add esp, 0x80c
ret
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432c00
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x432c39
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432c23
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [esp + 0x34]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.0042a8f0
add esp, 0x28
lea eax, [esp + 0x14]
push 0
push esi
push eax
push dword [ebp + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x432c8c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0041a8a0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1a]
push eax
push 0x3e
push ebx
call fcn.00432460
add esp, 0x10
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045aab3
add esp, 0x80c
ret
Function at 0x433db0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x4a337c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x378]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
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 0x433e36
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0045c940
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x433e71
push str.Received_too_short_packet
push ebx
call fcn.0041a8a0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045aab3
add esp, 0x88
ret
mov eax, dword [edi + 0x148]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x433e92
jmp dword [ecx*4 + 0x433fb0]
cmp edx, 4
jle case.0x433e92.4
mov esi, dword [edi + 0x148]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x433e92.4
lea eax, [edx - 4]
push eax
lea eax, [esi + 4]
push eax
push 1
push ebx
call fcn.0041aa00
mov esi, eax
add esp, 0x10
test esi, esi
je 0x433ef3
push 5
push edi
call fcn.004348b0
add esp, 8
mov eax, esi
jmp 0x433e58
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.00428ed0
jmp 0x433f85
mov eax, dword [edi + 0x148]
lea esi, [edx - 4]
push esi
movzx ecx, byte [eax + 2]
lea ebp, [eax + 4]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
push ebp
mov dword [edi + 8], ecx
call fcn.00434920
add esp, 8
cmp eax, esi
jae case.0x433e92.4
push ebp
push str.TFTP_error:__s
push ebx
call fcn.0041a970
jmp 0x433f85
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x148]
add eax, 2
push eax
push edi
call fcn.00433b70
add esp, 0xc
test eax, eax
je case.0x433e92.4
jmp 0x433e58
push str.Internal_error:_Unexpected_packet
push 0x481488
push ebx
call fcn.0041a8a0
add esp, 0xc
push ebx
call fcn.00429430
add esp, 4
test eax, eax
je 0x433e56
push 5
push edi
call fcn.004348b0
add esp, 8
mov eax, 0x2a
jmp 0x433e58