joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473e24
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x354
mov eax, 0x52a4a1
call fcn.004ebc96
mov edi, ecx
mov esi, dword [ebp + 8]
call fcn.0047407d
push 0x84
xor ebx, ebx
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.004eddc0
add esp, 0xc
lea ecx, [ebp - 0xa0]
push 0x579018
call fcn.0044e850
mov dword [ebp - 4], ebx
mov eax, dword [0x578f90]
cmp word [eax], bx
jne 0x473f3c
test esi, esi
je 0x473e85
push esi
lea ecx, [ebp - 0xa0]
call fcn.0044e8c3
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x473eaf
mov eax, str.Error_opening_file
jmp 0x473f19
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x473ec5
mov eax, str.File_is_empty
jmp 0x473f19
cmp esi, 0x400000
jbe 0x473ed4
mov eax, str.File_too_large
jmp 0x473f19
and dword [ebp - 0x14], 0
push esi
call fcn.004eb2d8
pop ecx
push 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x35c], eax
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], esi
je 0x473f1e
mov esi, dword [ebp - 0x35c]
push esi
call fcn.004ead03
pop ecx
mov ecx, edi
call fcn.0047407d
mov eax, str.Could_not_read_file
push 0
push eax
jmp 0x473f5b
push ecx
push esi
mov esi, dword [ebp - 0x35c]
mov ecx, edi
push esi
call fcn.00473d89
push esi
mov bl, al
call fcn.004ead03
pop ecx
jmp 0x474064
push eax
lea ecx, [ebp - 0xa0]
call fcn.0044e8c3
mov ebx, dword [0x57dc00]
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x473f69
push ebx
push str.Error_opening_zip_file
mov ecx, edi
call fcn.004747d0
mov bl, al
jmp 0x474064
and dword [ebp - 0x35c], 0
lea eax, [ebp - 0x128]
push 0x84
push 0
push eax
call fcn.004eddc0
add esp, 0xc
lea ecx, [ebp - 0x128]
push 0xffffffffffffffff
push esi
call fcn.0044e82c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
push 0x550df8
push 0x54b8c4
call fcn.0044ec52
mov edx, dword [ebp - 0x128]
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x35c]
push eax
push ecx
mov ecx, ebx
call fcn.0046a526
add esp, 0xc
test eax, eax
je 0x473fd7
mov eax, str.Could_not_find_ziped_file
jmp 0x47402f
mov esi, dword [ebp - 0x12c]
test esi, esi
jne 0x473fe8
mov eax, str.File_is_empty
jmp 0x47402f
cmp esi, 0x400000
jbe 0x473ff7
mov eax, str.File_too_large
jmp 0x47402f
push esi
call fcn.004eb2d8
mov edx, dword [ebp - 0x35c]
mov ebx, eax
mov ecx, dword [ebp - 0x14]
push esi
push ebx
mov dword [ebp - 0x360], ebx
call fcn.0046a559
add esp, 0xc
test eax, eax
je 0x47403d
cmp eax, 0x600
je 0x47403d
push ebx
call fcn.004ead03
pop ecx
mov eax, str.Could_not_unzip_file
push 0
push eax
mov ecx, edi
call fcn.004747d0
mov bl, al
jmp 0x474055
push ecx
push esi
push ebx
mov ecx, edi
call fcn.00473d89
push dword [ebp - 0x360]
mov bl, al
call fcn.004ead03
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.0044e875
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call fcn.0044e875
mov al, bl
call fcn.004ebc45
ret 8
Function at 0x474c59
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push 0x214
mov eax, 0x52a55c
call fcn.004ebc96
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x220], ebx
push esi
mov dword [ebp - 0x21c], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov edi, eax
cmp esi, 0x26
ja 0x474d1a
je 0x474cb2
sub esi, 0x21
je 0x474cb2
sub esi, 1
je 0x474cb2
sub esi, 1
je 0x474cb2
sub esi, 1
je 0x474cb2
sub esi, 1
jne 0x474cb8
or edi, 0x100
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004eddc0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
mov eax, edi
or eax, 0x1000000
cmp dword [ebp + 0x10], 0
cmove eax, edi
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.0044e82c
and dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
mov eax, ebx
call fcn.004ebc45
ret 0xc
sub esi, 0x27
je 0x474cb2
sub esi, 1
je 0x474cb2
sub esi, 5
jmp 0x474cab
Function at 0x475ed8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x578134]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x475f60
cmp dword [esi + 0x10], 0
je 0x475f60
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004ebdb0
mov ebx, esp
test ebx, ebx
je 0x475f60
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1c8
call fcn.0044ea02
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
xor ecx, ecx
push ecx
push ecx
push ecx
push str.textchanged
push dword [esi + 0x10]
mov ecx, eax
call fcn.00443862
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp byte [eax + 0x16d], 0
je 0x475f60
mov ecx, dword [esi + 0x10]
call fcn.0044ca7e
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004eacf5
leave
ret 0x10

Function at 0x4775d4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x578134]
xor eax, esp
mov dword [esp + 0x298], eax
push esi
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x477674
mov esi, 0xff
push esi
push eax
lea eax, [esp + 0x1a0]
push eax
call fcn.004eddc0
add esp, 0xc
lea eax, [esp + 0x198]
push esi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x198]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x477674
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esp + 0xc]
push eax
call fcn.004ec860
mov ecx, dword [esp + 0x10]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [esp + 6]
shl eax, 8
add eax, ecx
movzx ecx, byte [esp + 7]
shl eax, 8
add eax, ecx
jmp 0x477676
xor eax, eax
mov ecx, dword [esp + 0x29c]
pop esi
xor ecx, esp
call fcn.004eacf5
mov esp, ebp
pop ebp
ret
Function at 0x477689
Capabilities:
Hide graphical window

Disassembly:
push 0xa4
mov eax, 0x52ab0c
call fcn.004ebc96
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
and dword [eax + 0x590], 0
cmp dword [edi + 4], 0
jne 0x477736
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 8
push eax
mov dword [ebp - 0x14], 0x800
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
test eax, eax
je 0x47770f
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044e566
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub esp, 0x10
lea esi, [ebp - 0x2c]
mov edi, esp
mov eax, dword [eax + 0xa8]
push ecx
movsd dword es:[edi], dword [esi]
push 0
push 0x40030000
push ecx
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1c]
mov ecx, edi
call fcn.0044f4ab
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi + 0x10]
push dword [ecx + 0x558]
mov ecx, eax
call fcn.004444a6
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
and dword [ebp - 4], 0
mov eax, dword [eax]
movzx esi, word [eax]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.0044e875
test si, si
jne 0x477772
call fcn.004775d4
mov ecx, dword [edi + 0x10]
mov dword [ecx + 0x588], eax
mov eax, dword [edi + 0x10]
push dword [eax + 0x588]
push 0
push 0x465
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.004ebc45
ret 4
Function at 0x47c15c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446395

Function at 0x47c58e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [esi + 0x28], edx
mov edx, dword [ebp + 8]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x75c], edx
mov dword [esi + 0x760], edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x764], 6
test edx, edx
jne 0x47c5d9
call fcn.0047bf87
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.0047bf87
lea ecx, [esi + 0x10]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [esi + 0x75c]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
test ecx, ecx
jne 0x47c605
mov eax, dword [0xa8]
jmp 0x47c610
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [eax + 0xa8]
sub esp, 0x10
lea esi, [ebp - 0x14]
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
push 0x88
push closesocket
push ecx
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov ecx, esi
call fcn.0044f4ab
mov edi, dword [esi + 4]
jmp 0x47c641
push edi
call dword [sym.imp.USER32.dll_GetParent]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x47c638
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
leave
ret 0x1c
Function at 0x47eb61
Capabilities:
Hide graphical window

Disassembly:
push 0x98
mov eax, 0x52b5e2
call fcn.004ebc63
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
and dword [eax + 0x598], 0
cmp dword [edi + 4], 0
jne 0x47ebe6
lea eax, [ebp - 0x20]
push eax
call fcn.0047ec73
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
sub esp, 0x10
lea esi, [ebp - 0x20]
mov edi, esp
mov eax, dword [eax + 0xa8]
push ecx
movsd dword es:[edi], dword [esi]
push 0
push 0x40000000
push ecx
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.0044f4ab
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi + 0x10]
push dword [ecx + 0x558]
mov ecx, eax
call fcn.004444a6
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
call eax
and dword [ebp - 4], 0
mov eax, dword [eax]
movzx esi, word [eax]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.0044e875
test si, si
jne 0x47ec23
mov eax, dword [edi + 0x10]
add eax, 0x588
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x588
push 0x10
push eax
lea eax, [edi + 0x1a]
push eax
call fcn.004ec860
mov eax, dword [edi + 0x10]
add esp, 0xc
add eax, 0x588
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
call fcn.004ebc31
ret 4
Function at 0x48f720
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x578134]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x48f7eb
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.0049ae20
add esp, 0xc
test eax, eax
jne 0x48f7eb
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.0049ae20
add esp, 0xc
test eax, eax
jne 0x48f7eb
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x48f774
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.0049adf0
add esp, 0xc
test eax, eax
je 0x48f7a8
sub eax, esi
push eax
push 0x2e
push esi
call fcn.0049adf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x48f7aa
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x48f7d6
mov al, byte [esi]
push eax
call fcn.0048d4e0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x48f7b8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004eacf5
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.004eacf5
add esp, 0x18
ret
Function at 0x499e30
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp byte [0x57c658], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x499ea5
test edi, edi
je 0x499ea5
mov eax, dword [0x57c65c]
test eax, eax
jne 0x499e9f
mov esi, dword [esp + 0x1c]
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00499c30
add esp, 0x10
push str.recv
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.004fb5cc
add esp, 4
push eax
call fcn.0049b940
push dword [0x57c654]
call fcn.004f6098
add esp, 0x18
call fcn.004fbf78
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x57c65c], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test edi, edi
je 0x499ed8
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.RECV__s:_d_recv__lu____ld_n
call fcn.00499c30
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
cmp byte [0x57c658], 0
push esi
push edi
mov edi, dword [esp + 0x20]
je 0x499f85
test edi, edi
je 0x499f85
mov eax, dword [0x57c65c]
test eax, eax
jne 0x499f7f
mov esi, dword [esp + 0x1c]
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
call fcn.00499c30
add esp, 0x10
push str.send
push esi
push edi
push str.LIMIT__s:_d__s_reached_memlimit_n
push 2
call fcn.004fb5cc
add esp, 4
push eax
call fcn.0049b940
push dword [0x57c654]
call fcn.004f6098
add esp, 0x18
call fcn.004fbf78
pop edi
pop esi
mov dword [eax], 0xc
or eax, 0xffffffff
ret
dec eax
mov dword [0x57c65c], eax
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test edi, edi
je 0x499fb8
push esi
push dword [esp + 0x18]
push dword [esp + 0x24]
push edi
push str.SEND__s:_d_send__lu____ld_n
call fcn.00499c30
add esp, 0x14
pop edi
mov eax, esi
pop esi
ret
Function at 0x4aee90
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x578134]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
lea eax, [esp + 8]
push esi
push edi
push eax
mov edi, dword [ebp + 0x4c8]
lea eax, [esp + 0x1c]
mov ebx, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [edi + 0x154]
push 0
add eax, 4
push eax
push dword [edi + 0x15c]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x148], 0
mov dword [edi + 0x14c], eax
jne 0x4aef16
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xc8]
push eax
call fcn.004ec860
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x148], eax
mov esi, dword [edi + 0x14c]
cmp esi, 4
jge 0x4aef51
push str.Received_too_short_packet
push ebx
call fcn.0049a290
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004eacf5
add esp, 0x8c
ret
mov edx, dword [edi + 0x15c]
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4aef72
jmp dword [ecx*4 + 0x4af084]
cmp esi, 4
jle case.0x4aef72.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4aef72.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.0049a1d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aefca
push 5
push edi
call fcn.004afa50
add esp, 8
mov eax, esi
jmp 0x4aef38
mov eax, dword [edi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
adc dword [ebx + 0x9c], edx
push dword [ebx + 0x9c]
push dword [ebx + 0x98]
push ebx
call fcn.004bb260
jmp 0x4af05a
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], 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.004aeb70
add esp, 8
cmp eax, esi
jae case.0x4aef72.4
push dword [esp + 0x14]
push str.TFTP_error:__s_n
push ebx
call fcn.0049a370
jmp 0x4af05a
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.004aec20
add esp, 0xc
test eax, eax
je case.0x4aef72.4
jmp 0x4aef38
push str.Internal_error:_Unexpected_packet
push 0x5316a4
push ebx
call fcn.0049a290
add esp, 0xc
push ebp
call fcn.004bb630
add esp, 4
test eax, eax
je 0x4aef36
push 5
push edi
call fcn.004afa50
add esp, 8
mov eax, 0x2a
jmp 0x4aef38
Function at 0x4b0da0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1004
call fcn.004eb7d0
mov eax, dword [0x578134]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push eax
call fcn.005026dd
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4b0e10
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4b0e10
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libgetenv.c
lea eax, [esp + 4]
push 0x2b
push eax
call fcn.0049a070
add esp, 0xc
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004eacf5
add esp, 0x1004
ret
mov ecx, dword [esp + 0x1000]
xor eax, eax
xor ecx, esp
call fcn.004eacf5
add esp, 0x1004
ret
Function at 0x4f120c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x578134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x53f428
push esi
call fcn.0050b2b3
pop ecx
pop ecx
test eax, eax
jne 0x4f123a
xor al, al
jmp 0x4f12b7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004f0f41
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4f1274
push dword [ebp - 0x210]
call fcn.004fc551
xor al, al
jmp 0x4f12b5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4f127a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4f129a
push edx
call fcn.004f1143
pop ecx
test al, al
je 0x4f1265
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4f12a8
mov bl, 1
push dword [ebp - 0x210]
call fcn.004fc551
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004eacf5
leave
ret
Function at 0x4ff106
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004eb7d0
mov eax, dword [0x578134]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0050a3e9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ff148
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ff2a4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004eb800
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x57d5b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005023d9
mov ecx, dword [esi*4 + 0x57d5b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4ff29d
cmp eax, dword [ecx + edi + 0x24]
jne 0x4ff29d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ff29d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005023d9
add esp, 0x14
test edx, edx
jl 0x4ff29d
jg 0x4ff213
test eax, eax
jb 0x4ff29d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ff29d
jl 0x4ff22d
cmp dword [ebp - 0x1008], eax
ja 0x4ff29d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ff24b
test ebx, ebx
je 0x4ff284
cmp ecx, edi
jae 0x4ff284
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ff265
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ff271
cmp byte [ecx + 1], 0xa
jne 0x4ff271
inc ecx
jmp 0x4ff271
movzx eax, al
movsx eax, byte [eax + 0x5782c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ff24b
cmp edx, ebx
jne 0x4ff24b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ff2a2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004eacf5
leave
ret

Function at 0x504f92
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x504fd1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x504fd1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x504fd1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x504fd1
cmp dword [ecx + 0x74], 0xe
jbe 0x504fd1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x50808e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x57d5b8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5080ce
cmp byte [ebx], 0xa
jne 0x5080ce
or byte [edi + eax + 0x28], 4
jmp 0x5080d3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x5081d2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5081b5
inc eax
cmp dl, 0xd
je 0x5080ff
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x508125
cmp eax, ecx
jae 0x508133
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x5080e7
jmp 0x5081d2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5081b0
cmp dword [ebp - 0x10], 0
je 0x5081b0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x57d5b8]
test byte [eax + edi + 0x28], 0x48
je 0x50818a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x508175
mov byte [esi], dl
jmp 0x508186
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57d5b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5081d2
cmp byte [ebp - 1], 0xa
jne 0x508199
cmp esi, ebx
jne 0x508199
mov byte [esi], 0xa
jmp 0x5081d1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005023f7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5081d2
mov byte [esi], 0xd
jmp 0x5081d1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x57d5b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5081cf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5081d2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret