joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401b20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bl, 1
push 0
mov dword [ebp - 4], 0
push 0xf
mov byte [ebp - 4], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp - 0x13c], 0x128
call sub.MFC42.DLL_CString::MakeLower
lea eax, [ebp - 0x13c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401c13
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x401bec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x134]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x13c]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401b82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x14401
Capabilities:
Find process by pid

Disassembly:
mov word [esp], bx
mov eax, dword [ebp + 8]
jmp fcn.0001d865

Function at 0x1442c
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push esi
push edi
push 0x18
pop edi
push 0x820
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
xor esi, esi
push 0x120089
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
jge 0x1447d
xor eax, eax
jmp 0x144ee
push 5
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jge 0x144a0
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14479
push esi
push dword [ebp - 0x34]
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
cmp edi, esi
je 0x14495
push esi
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0xc]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
push dword [ebp - 4]
test eax, eax
jge 0x144de
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14479
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x1454e
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x1460f
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x14615
push ebx
push dword [ebp - 4]
push esi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x145ae
push ebx
push esi
call edi
jmp 0x14615
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
lea eax, [esi + 0x20]
push 0x5c
push eax
call dword [sym.imp.ntoskrnl.exe_strrchr]
pop ecx
pop ecx
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
cmp dx, bx
jne 0x145ee
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push ebx
push esi
call edi
mov eax, dword [ebp - 8]
jmp 0x14617
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x14624
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
xor ebx, ebx
push ebx
push 0xa
push ebx
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
push ebx
push edi
cmp eax, 0xc0000004
jne 0x146c4
mov edi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call edi
push ebx
push dword [ebp - 4]
push ebx
call esi
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, ebx
je 0x146ca
push ebx
push dword [ebp - 4]
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jge 0x14683
push ebx
push esi
call edi
jmp 0x146ca
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, esi
add eax, 0x38
jmp 0x146a2
mov eax, dword [esi]
cmp eax, ebx
je 0x146b8
add esi, eax
lea eax, [esi + 0x38]
push 1
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x14697
mov esi, dword [esi + 0x44]
jmp 0x146ba
mov esi, ebx
push ebx
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x146cc
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x146d8
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
add eax, ecx
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
cmp edx, dword [ecx + 0xc]
jae 0x146f9
mov eax, edx
jmp 0x14724
push ebx
push esi
movzx esi, word [eax + 6]
push edi
xor edi, edi
test esi, esi
jbe 0x1471e
mov eax, dword [ecx + 0xc]
cmp edx, eax
jb 0x14716
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edx, ebx
jb 0x14728
add ecx, 0x28
inc edi
cmp edi, esi
jb 0x14706
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
add eax, edx
jmp 0x14721

Function at 0x1d879
Capabilities:
Find process by pid

Disassembly:
lea ecx, [edi*8 + 0x4a6ba7]
pushfd
push 0xd488a4a0
push dword [0x131f8]
pop dword [esp + 4]
movzx cx, cl
push dword [esp]
mov dword [esp + 4], 0xe43eac4d
mov cx, bx
lea ecx, [ebp - 0xc]
call fcn.00020fb1
lea esp, [esp + 4]
jne 0x2350b
call 0x1d888
push dword [ebp - 8]
pop dword [esp]
pushal
lea esp, [esp + 0x20]
call sub.ntoskrnl.exe_KeAttachProcess
adc ax, dx
sbb al, 0xbd
cmc
mov eax, dword [0x13300]
pushfd
jmp 0x23898
cmp eax, edi
mov byte [esp], cl
push eax
push edx
lea esp, [esp + 0xc]
je 0x1d9e4
lea ecx, [ecx + 0x4d1cb468]
jns 0x1403b
call fcn.00023b18

Function at 0x1e876
Capabilities:
Find process by pid

Disassembly:
mov dword [esp + 0x40], 0x14c0a
mov byte [esp], 0xcc
push edx
call fcn.0001e888

Function at 0x1eaea
Capabilities:
Find process by pid

Disassembly:
pushfd
mov dword [esp + 4], eax
push eax
pushal
jmp 0x1ef54

Function at 0x1eed9
Capabilities:
Find process by pid

Disassembly:
pushal
mov dword [esp + 0x20], eax
jmp 0x1ee62
Function at 0x21600
Capabilities:
Find process by pid

Disassembly:
call fcn.0001d8cf
test eax, eax
pushfd
mov dword [esp], 0x529adf9b
pushal
mov byte [esp], bl
lea esp, [esp + 0x24]
je 0x1d9e4
mov si, 0xc08
call fcn.00023b6c
mov byte [esp], 0x84
lea esp, [esp + 4]
call fcn.00011006
cmp dl, 0x1e
pushfd
clc
jmp 0x24b9b
mov dword [eax + 0x13199], ecx
pushfd
mov byte [esp + 8], 0xb
mov byte [eax + 0x1319d], 0xc3
push 0x8f755a5f
push dword [esp]
push ecx
mov dword [0x1331c], ebx
pushal
lea esp, [esp + 0x38]
call sub.ntoskrnl.exe_KeDetachProcess
pushfd
pushal
movzx ecx, dl
mov ecx, dword [ebp - 8]
pushal
pushfd
mov dword [esp + 0x44], 0x23c2b
pushfd
call fcn.000228b1
push esp
mov dword [esp], 0x1e
call fcn.00023b44
lea esp, [esp + 0x20]
jo 0x1e335
push esi
jmp 0x25706
call fcn.00022ec0
call fcn.00025643
call fcn.00021511
lea esp, [esp + 0x44]
je 0x1dd72
rcr cl, 2
neg ecx
mov ecx, dword [ebp - 0xc]
pushfd
mov byte [eax + 0x13198], 0x68
bt si, 8
add ecx, eax
mov byte [esp], cl
pushal
push 0x70386759
call fcn.00022b9b
mov dword [esp + 0x28], eax
jmp 0x21609
lea esp, [esp + 0x28]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test bh, ch
sub edi, edi
push 0x949237b7
mov byte [esp], 0xcb
clc
cmp eax, edi
lea esp, [esp + 4]
je 0x244a4
jl fcn.00014420
push 0xf15c51dd
push esi
push dword [ebp - 8]
pop dword [esp + 4]
call fcn.0002357a
lea esp, [esp + 0x14]
je 0x1dd72
pushfd
mov dword [esp], 6
pushfd
mov dword [esp], 0x1e
push 0xc36303b5
pushfd
mov dword [esp + 4], esi
mov word [esp], 0xe31f
jmp 0x205b3
add ecx, eax
jmp 0x205ec
pushal
lea esp, [esp + 0x20]
jl fcn.00014420
call 0x244b4
pushfd
push dword [ebp - 8]
pop dword [esp + 4]
pushfd
lea esp, [esp + 8]
call sub.ntoskrnl.exe_KeAttachProcess
and ah, 0xcc
mov eax, dword [0x13300]
cmc
cmp eax, edi
jmp 0x245d8
je 0x1d9e4
setge ch
push dword [0x131f8]
movzx cx, al
lea ecx, [ebp - 0xc]
jmp 0x20772
mov dword [0x13320], eax
cmc
test bl, 0x6c
clc
cmp eax, edi
lea esp, [esp + 4]
jg 0x20655
pushal
pushal
lea esp, [esp + 0x40]
je 0x1dd72
add ch, al
setnp ch
bswap ecx
mov ecx, dword [ebp - 0xc]
push ebp
mov byte [eax + 0x13198], 0x68
clc
push 0x4b84c68f
jmp 0x22684

Function at 0x22101
Capabilities:
Find process by pid

Disassembly:
pushal
pushfd
mov byte [esp + 4], al
lea esp, [esp + 0x24]
jmp loc.000141bf
clc
cmp eax, esi
pushfd
mov byte [esp], al
lea esp, [esp + 4]
je 0x214e1
clc
cmp dword [ebp - 4], 6
jmp 0x140bb
lea esp, [esp + 0x4c]
jne 0x21580
push esp
pushal
mov word [esp], 0xdb21
mov dword [0x13300], 0xbf
push 0xa0f3f44
mov byte [esp], 0x91
mov dword [0x13304], 0xd
pushfd
mov dword [esp + 4], 0xe2ad9318
jmp 0x21ec4

Function at 0x23124
Capabilities:
Find process by pid

Disassembly:
lea esp, [esp + 0xc]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
bt ebp, ebx
sub edi, edi
cmc
jmp 0x23360
pushal
cmp eax, edi
call fcn.0002404a
Function at 0x401bee
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x415659
call fcn.0040764a
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov edi, ecx
cmp ebx, esi
jne 0x401c10
xor eax, eax
call fcn.004076cd
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x401c36
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x401c36
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x401c08
cmp dword [edi + 0x54], 0
jne 0x401c40
mov eax, esi
jmp 0x401c08
mov eax, edi
call fcn.00402418
cmp dword [edi + 0x44], 0
jne 0x401c63
push dword [edi + 0x54]
movsx eax, bl
push eax
call fcn.00405ab2
pop ecx
cmp eax, esi
pop ecx
mov eax, ebx
jne 0x401c08
jmp 0x401c3c
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00402204
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401d11
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x401d39
cmp eax, 1
jg 0x401d19
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401cc0
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x401ce6
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x401cd3
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00405d05
add esp, 0x10
cmp esi, eax
jne 0x401d39
lea eax, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x401d34
test esi, esi
jne 0x401c72
cmp dword [ebp - 0x1c], 0x20
jae 0x401d39
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00402248
jmp 0x401c72
mov edx, dword [ebp - 0x2c]
jmp 0x401c84
cmp eax, 3
jne 0x401d39
movsx eax, byte [ebp - 0x2d]
push dword [edi + 0x54]
push eax
call fcn.00405ab2
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x401d3c
mov esi, dword [ebp + 8]
jmp 0x401d3c
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402cf0
jmp 0x401c3c
Function at 0x40232f
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4156a9
call fcn.0040764a
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x402410
cmp byte [edi + 0x49], bl
je 0x402410
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402364
xor al, al
jmp 0x402412
lea esi, [ebp - 0x2c]
call fcn.00402204
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4023b2
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x4023b7
dec eax
je 0x4023bb
dec eax
dec eax
je 0x40240c
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402cf0
mov al, bl
jmp 0x402412
mov edx, dword [ebp - 0x2c]
jmp 0x40237d
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4023c7
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x4023ed
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4023da
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00405d05
add esp, 0x10
cmp esi, eax
jne 0x4023a0
cmp byte [edi + 0x49], 0
je 0x40240c
test esi, esi
jne 0x40236f
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00402248
jmp 0x40236f
mov bl, 1
jmp 0x4023a2
mov al, 1
call fcn.004076cd
ret

Function at 0x4032d0
Capabilities:
Get uefi variable

Disassembly:
xor ecx, ecx
mov eax, 1
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00404a46
add esp, 4
push 2
push eax
push 0x41d400
push 0x4193c8
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x403316
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x403660
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4154b0
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x41c490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x208
mov dword [ebp - 0x26c], edi
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x270], edi
mov dword [ebp - 4], edi
call fcn.00404a46
add esp, 4
push 0x208
mov dword [ebp - 0x26c], eax
call fcn.00404a46
add esp, 4
push 0x208
mov dword [ebp - 0x268], eax
call fcn.00404a46
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 4
push ebx
push str._s.
push eax
mov dword [ebp - 0x270], eax
call esi
mov ecx, dword [ebp - 0x270]
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
jne 0x403750
mov edx, dword [ebp - 0x270]
push edx
call fcn.004058e7
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004058e7
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.004058e7
add esp, 0xc
xor eax, eax
jmp 0x4038e7
mov ecx, 0x419434
lea eax, [ebp - 0x238]
jmp 0x403760
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403786
cmp dx, di
je 0x403782
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403786
add eax, 4
add ecx, 4
cmp dx, di
jne 0x403760
xor eax, eax
jmp 0x40378b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x403839
mov ecx, 0x419438
lea eax, [ebp - 0x238]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4037c6
cmp dx, di
je 0x4037c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4037c6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4037a0
xor eax, eax
jmp 0x4037cb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x403839
test dword [ebp - 0x264], 0xffffffef
je 0x40380b
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x238]
push edx
push ebx
push str._s_s
push eax
call esi
mov ecx, dword [ebp - 0x26c]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40380b
inc dword [0x41e460]
test byte [ebp - 0x264], 0x10
je 0x403839
mov eax, dword [ebp - 0x268]
lea edx, [ebp - 0x238]
push edx
push ebx
push str._s_s
push eax
call esi
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.00403660
add esp, 0x14
mov eax, dword [ebp - 0x274]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403750
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403866
inc dword [0x41e460]
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x270]
push edx
call fcn.004058e7
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004058e7
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.004058e7
mov eax, dword [0x41e460]
add esp, 0xc
jmp 0x4038e7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405675
mov esp, ebp
pop ebp
ret