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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp ebx, 0x20
jbe 0x100329d4
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 2
call esi
cmp eax, 1
jne 0x100329fb
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push 2
call esi
cmp eax, 1
je 0x10032a03
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10032a39
cmp ebx, 0x20
je 0x10032a39
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
mov edi, eax
call esi
mov ecx, 0x20
or edx, 0xffffffff
sub ecx, ebx
xor eax, edi
shl edx, cl
pop edi
test edx, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, dword [ebp - 8]
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10032a50
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x80
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_pton]
cmove ebx, eax
push edi
lea eax, [ebp - 0x20]
mov edi, ebx
push eax
push dword [ebp + 8]
shr edi, 3
and ebx, 7
push 0x17
call esi
cmp eax, 1
jne 0x10032a9f
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push 0x17
call esi
cmp eax, 1
jne 0x10032a9f
cmp edi, 0x10
jg 0x10032a9f
jne 0x10032aa8
test ebx, ebx
je 0x10032aac
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10032b03
mov esi, edi
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x10]
sub esi, 4
jb 0x10032ad1
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10032ad6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10032ac0
cmp esi, 0xfffffffc
je 0x10032b03
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10032a9f
cmp esi, 0xfffffffd
je 0x10032b03
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10032a9f
cmp esi, 0xfffffffe
je 0x10032b03
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10032a9f
cmp esi, 0xffffffff
je 0x10032b03
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10032a9f
test ebx, ebx
je 0x10032b29
movzx eax, byte [ebp + edi - 0x20]
mov ecx, 8
movzx edx, byte [ebp + edi - 0x10]
sub ecx, ebx
xor edx, eax
mov eax, 0xff
shl eax, cl
test eax, edx
je 0x10032a9f
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035de0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x10035e6e
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x1007dc68]
jmp 0x10035e00
mov esi, 4
cmp edi, esi
cmovb esi, edi
cmp byte [0x1007dc64], 0
jne 0x10035e3f
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, 2
jne 0x10035e6e
mov eax, dword [ebp + 0x10]
mov edx, dword [0x1007dc68]
jmp 0x10035e58
imul edx, edx, 0x41c64e6d
add edx, 0x3039
mov eax, edx
mov dword [0x1007dc68], edx
rol eax, 0x10
xor ecx, ecx
test esi, esi
je 0x10035e6a
lea esp, [esp]
mov byte [ebx], al
dec edi
inc ebx
shr eax, 8
dec esi
jne 0x10035e60
test edi, edi
jne 0x10035e00
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret

Function at 0x10035e80
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
dec edi
je 0x10035efa
mov ecx, dword [0x1007dc68]
mov ebx, 0x3e
lea ebx, [ebx]
cmp byte [0x1007dc64], 0
jne 0x10035ece
push 2
push 4
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x10035f04
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1007dc68]
jmp 0x10035ee5
imul ecx, ecx, 0x41c64e6d
add ecx, 0x3039
mov eax, ecx
mov dword [0x1007dc68], ecx
rol eax, 0x10
cmp eax, 0xfffffffc
jae 0x10035ea0
xor edx, edx
div ebx
mov al, byte [edx + 0x1006fe40]
mov byte [esi], al
inc esi
dec edi
jne 0x10035ea0
pop edi
mov byte [esi], 0
xor eax, eax
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 2
pop ebx
pop ebp
ret

Function at 0x10035f70
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.10045b70
push dword [ebp + 8]
movdqu xmm0, xmmword [eax]
movdqu xmmword [ebp - 0x10], xmm0
call fcn.100676c9
push dword [ebp + 0xc]
mov edi, eax
call fcn.100676c9
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 0x10035ffd
lea eax, [ebp - 0x20]
push eax
call fcn.10045b70
movdqu xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movdqu xmmword [ecx], xmm0
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
call fcn.10045c10
add esp, 0x20
test edx, edx
ja 0x10036020
jb 0x10035feb
cmp eax, 0x3e8
ja 0x10036020
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10035fb2
test edi, edi
je 0x1003600a
push edi
call fcn.10050a61
add esp, 4
test esi, esi
je 0x10036017
push esi
call fcn.10050a61
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1003602d
push edi
call fcn.10050a61
add esp, 4
test esi, esi
je 0x1003603a
push esi
call fcn.10050a61
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10038010
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1003802b
cmp dword [edi], 0
jne 0x1003803d
test esi, esi
je 0x10038034
cmp dword [esi], 0
jne 0x1003803d
test ebx, ebx
je 0x10038086
cmp dword [ebx], 0
je 0x10038086
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push eax
call fcn.10045aa0
add esp, 0xc
test ebx, ebx
je 0x10038058
cmp dword [ebx], 0
jne 0x1003805a
xor ebx, ebx
test esi, esi
je 0x10038063
cmp dword [esi], 0
jne 0x10038065
xor esi, esi
test edi, edi
je 0x1003806e
cmp dword [edi], 0
jne 0x10038070
xor edi, edi
push eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp + 0x1c]
or eax, edx
mov dword [ebp - 4], edx
je 0x100380d2
test edx, edx
jg 0x100380bf
jl 0x1003809f
test ecx, ecx
jae 0x100380b4
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
jl 0x100380cb
jg 0x100380bf
cmp ecx, 0xffffffff
jb 0x100380cb
mov ecx, 0xfffffffe
mov dword [ebp - 4], 0
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003cc60
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1003cc88
mov eax, 0x1b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1003ccb5
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
call fcn.1004d9e0
add esp, 4
push 0
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call fcn.1003cba0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100426d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100426f0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0x10072e6c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x10072e7c
push esi
mov dword [ebp - 8], ebx
call fcn.10054bae
add esp, 8
test eax, eax
je 0x1004273c
test ebx, ebx
je 0x1004272c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10042765
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10042765
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10042810
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10042781
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1007b2e4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10042806
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10042806
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100427b2
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100427d0
sub ecx, edx
add ecx, ebx
sub ecx, esi
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x100427e0
mov eax, dword [ebp - 8]
test eax, eax
je 0x100427fd
push 8
push 0
push ebx
call eax
jmp 0x10042804
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1007b2e8]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10042880
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x100428c5
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100428bc
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x100428b6
shr eax, 8
cmp al, 2
je 0x100428c5
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.iphlpapi.dll
call fcn.100426d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x1007dc7c], eax
test eax, eax
je 0x100428fc
push str.if_nametoindex
push eax
call edi
mov ecx, dword [0x1007dc6c]
test eax, eax
cmovne ecx, eax
mov dword [0x1007dc6c], ecx
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x10042934
push str.FreeAddrInfoExW
push esi
call edi
push str.GetAddrInfoExCancel
push esi
mov dword [0x1007dc70], eax
call edi
push str.GetAddrInfoExW
push esi
mov dword [0x1007dc74], eax
call edi
mov dword [0x1007dc78], eax
push 3
push 2
push 0
push 0
push 6
call fcn.1004d790
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x1007ecc1]
call fcn.1004d790
add esp, 0x28
test al, al
setne byte [0x1007ecc0]
push 0x1007ecc8
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10043970
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 + 0x18]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x100439b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1000fec0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.10043280
add esp, 0x10
pop esi
pop ebx
pop ebp
ret
Function at 0x10043b10
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 eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x10043c6c
push edi
lea ecx, [eax + 0x1cc4]
lea edi, [eax + 0x1ec4]
mov dword [edi], ecx
cmp ecx, edi
jae 0x10043b4b
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x10043b56
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x10043b61
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 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 ecx, dword [ebp + 8]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10043b95
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043b9f
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043ba9
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043bb3
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043bbe
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10043bc9
mov byte [eax], 0xf0
inc dword [edi]
mov esi, dword [ebp - 4]
mov eax, dword [edi]
mov dword [esi + 0x1ec8], eax
lea ecx, [esi + 0x1cc4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cc6]
push eax
push 0x3e
push ebx
call fcn.10043380
add esp, 0x10
lea eax, [esi + 0x1cc4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x10043c29
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1000fec0
add esp, 0xc
push 4
lea eax, [esi + 0x1cc7]
push eax
push ebx
call fcn.100439d0
add esp, 0xc
lea eax, [esi + 0x1ccb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x10043c6b
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1000fec0
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10044b80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x2d0]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0x80
lea eax, [ebp - 0x88]
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 0x10044bf6
push dword [ebp - 4]
lea eax, [ebp - 0x88]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.10050b30
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [edi + 0x130], eax
cmp dword [edi + 0x134], 4
jge 0x10044c1d
push str.Received_too_short_packet
push esi
call fcn.1000fec0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
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.0x10044c42
jmp dword [edx*4 + 0x10044d5c]
cmp dword [edi + 0x134], 4
jle case.0x10044c42.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
and eax, 0xffff
cmp eax, edx
jne case.0x10044c42.4
mov eax, dword [edi + 0x134]
add eax, 0xfffffffc
push eax
lea eax, [ecx + 4]
push eax
push 1
push esi
call fcn.10038e70
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x10044c42.4
push 5
push edi
call fcn.100454d0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x134]
lea eax, [ecx + 4]
mov edx, ecx
mov dword [ebp - 8], eax
add esi, 0xfffffffc
push esi
push dword [ebp - 8]
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.10045610
add esp, 8
cmp eax, esi
mov esi, dword [ebp + 8]
jae case.0x10044c42.4
push dword [ebp - 8]
push str.TFTP_error:__s
push esi
call fcn.1000ff60
jmp 0x10044d2f
mov eax, dword [edi + 0x134]
add eax, 0xfffffffe
push eax
lea eax, [ecx + 2]
push eax
push edi
call fcn.10044930
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x10044c42.4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x1006930c
push esi
call fcn.1000fec0
add esp, 0xc
push esi
call fcn.100350e0
add esp, 4
test eax, eax
je 0x10044c14
push 5
push edi
call fcn.100454d0
add esp, 8
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100454d0
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.0x100454e0
jmp dword [edx*4 + 0x10045534]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10045040
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10044d70
mov dword [ebp + 8], eax
pop ebp
jmp fcn.10045740
push str.TFTP_finished
push 0x1006930c
push ecx
call fcn.1000ff60
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x1006930c
push ecx
call fcn.1000fec0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x1004caa0
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 4
jae 0x1004cab9
mov eax, 0x16
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
sub esi, 2
push edi
inc ebx
push str.0123456789abcdefABCDEF:.
push ebx
call fcn.10051180
add esp, 8
cmp esi, eax
je 0x1004cb71
mov dword [ebp + 0x10], eax
add eax, ebx
mov dword [ebp - 4], eax
cmp byte [eax], 0x25
jne 0x1004cb8a
push 2
lea esi, [eax + 1]
xor edi, edi
push 0x10074508
push esi
call fcn.10051a00
add esp, 0xc
test eax, eax
jne 0x1004cb12
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x1004cb12
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x1004cb8a
lea ecx, [ebp - 0x14]
sub ecx, esi
lea ecx, [ecx]
cmp al, 0x5d
je 0x1004cb35
cmp edi, 0xf
jge 0x1004cb35
mov byte [ecx + esi], al
inc edi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1004cb20
test edi, edi
je 0x1004cb8a
cmp byte [esi], 0x5d
jne 0x1004cb8a
lea eax, [ebp - 0x14]
mov byte [ebp + edi - 0x14], 0
push eax
call dword [0x1007b2f0]
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x1004cb66
pop edi
pop ebx
mov eax, 7
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov word [eax], 0x5d
lea eax, [ebp - 0x14]
mov byte [ebx + esi], 0
push eax
push ebx
lea edi, [ebx + esi]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x1004cb96
pop edi
pop ebx
mov eax, 0x16
pop esi
mov esp, ebp
pop ebp
ret
push 0x2e
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x1004cbda
lea edx, [ebp - 0x44]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1004cbb1
sub edx, ecx
cmp edx, esi
jae 0x1004cbda
lea ecx, [ebp - 0x44]
mov esi, ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x1004cbc7
lea edi, [ebx + edx]
mov byte [edi + 1], al
mov byte [edi], 0x5d
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1004d9b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005db76
Function at 0x420b5b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b9a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b9a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b9a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b9a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b9a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433310
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43333d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43333d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x43143cb
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x3df75e4f
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x403d90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x403dbc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x403de4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x403dea
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x403e52
jg 0x403e01
test esi, esi
je 0x403e52
test ecx, ecx
jl 0x403e4d
jg 0x403e0b
test eax, eax
je 0x403e4d
cmp edi, ecx
jg 0x403e1f
jl 0x403e15
cmp esi, eax
jae 0x403e1f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x403e55
mov ecx, dword [ebp + 8]
jmp 0x403e5f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x403e79
jg 0x403e5f
test esi, esi
je 0x403e79
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x403e79
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc