joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ac50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
push ebx
push ebp
push esi
lea esi, [eax + eax*4]
push edi
mov edi, ecx
shl esi, 5
lea edx, [edx + edx*8]
add edi, esi
mov esi, dword [esp + 0xb0]
lea eax, [eax + eax*8]
xor ebp, ebp
lea edx, [edi + edx*8 + 0x774c]
shl eax, 8
lea edi, [esi + 8]
mov dword [esp + 0x10], edx
lea esi, [eax + ecx + 0x24a8]
jmp 0x43ac9f
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x43acb6
mov eax, dword [edx + 0x18]
test eax, eax
je 0x43acb6
cmp ebp, 0x24
jge 0x43acb6
xor eax, eax
jmp 0x43acb9
mov eax, dword [edx + 0x14]
lea ecx, [esp + 0x14]
lea ebx, [edi - 8]
push eax
push ecx
push ebx
call fcn.00437990
fld dword [esp + 0x20]
fadd dword [esi - 8]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
add esp, 0xc
fstp dword [ebx]
fld dword [esp + 0x18]
fadd dword [esi - 4]
mov dword [esi - 8], edx
mov edx, dword [esp + 0x68]
fstp dword [edi - 4]
fld dword [esp + 0x1c]
fadd dword [esi]
mov dword [esi - 4], eax
mov eax, dword [esp + 0x6c]
fstp dword [edi]
fld dword [esp + 0x20]
fadd dword [esi + 4]
mov dword [esi], ecx
mov ecx, dword [esp + 0x70]
fstp dword [edi + 4]
fld dword [esp + 0x24]
fadd dword [esi + 8]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x74]
fstp dword [edi + 8]
fld dword [esp + 0x28]
fadd dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x78]
fstp dword [edi + 0xc]
fld dword [esp + 0x2c]
fadd dword [esi + 0x10]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x7c]
fstp dword [edi + 0x10]
fld dword [esp + 0x30]
fadd dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x80]
fstp dword [edi + 0x14]
fld dword [esp + 0x34]
fadd dword [esi + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x84]
fstp dword [edi + 0x18]
fld dword [esp + 0x38]
fadd dword [esi + 0x1c]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x88]
fstp dword [edi + 0x1c]
fld dword [esp + 0x3c]
fadd dword [esi + 0x20]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x8c]
fstp dword [edi + 0x20]
fld dword [esp + 0x40]
fadd dword [esi + 0x24]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x90]
fstp dword [edi + 0x24]
fld dword [esp + 0x44]
fadd dword [esi + 0x28]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x94]
fstp dword [edi + 0x28]
fld dword [esp + 0x48]
fadd dword [esi + 0x2c]
mov dword [esi + 0x28], edx
fstp dword [edi + 0x2c]
fld dword [esp + 0x4c]
fadd dword [esi + 0x30]
mov dword [esi + 0x2c], eax
fstp dword [edi + 0x30]
fld dword [esp + 0x50]
fadd dword [esi + 0x34]
mov edx, dword [esp + 0x98]
mov dword [esi + 0x30], ecx
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
add ebp, 0x12
add esi, 0x48
fstp dword [edi + 0x34]
fld dword [esp + 0x54]
fadd dword [esi - 0x10]
mov dword [esi - 0x14], edx
add edi, 0x48
cmp ebp, 0x240
fstp dword [edi - 0x10]
fld dword [esp + 0x58]
fadd dword [esi - 0xc]
mov dword [esi - 0x10], eax
fstp dword [edi - 0xc]
mov dword [esi - 0xc], ecx
jl 0x43ac9b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 0xc
Function at 0x44bce9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44bd09
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044baca
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x44bd2c
test byte [esp + 8], 2
je 0x44bd2c
call fcn.0044bb3d
mov dword [eax], 0xd
call fcn.0044bb46
mov dword [eax], 5
jmp 0x44bd05
xor eax, eax
ret

Function at 0x44e71d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x483d48
cmp edx, dword [eax]
je 0x44e73f
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x44e730
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x483d48]
jne 0x44e86d
mov eax, dword [0x4900b8]
cmp eax, 1
je 0x44e847
test eax, eax
jne 0x44e770
cmp dword [0x481604], 1
je 0x44e847
cmp edx, 0xfc
je 0x44e86d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44e7a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004452e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004462d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44e7ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.004462d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x467998
push edi
call fcn.004451e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004452e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004452f0
lea eax, [ebp - 0xa0]
push 0x467978
push eax
call fcn.004452f0
push dword [esi + 0x483d4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004452f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00452893
add esp, 0x2c
pop edi
jmp 0x44e86d
lea eax, [ebp + 8]
lea esi, [esi + 0x483d4c]
push 0
push eax
push dword [esi]
call fcn.004462d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406010
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80c95b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4042e4
call fcn.00406c71
push 4
mov dword [esp + 0x18], 0
call fcn.004079a7
mov edi, eax
add esp, 4
test edi, edi
je 0x406084
push ebx
call fcn.00406b49
mov dword [edi], eax
call fcn.00406908
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406c32
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406078
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406c5a
pop ebx
jmp 0x406086
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408421
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x810510]
jne 0x40842b
repz ret
jmp fcn.0040c62c
Function at 0x80aa10
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x100c
call fcn.004112b0
cmp dword [0xb993ec], 0x37
jne 0x80aaaa
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
lea eax, [esp + 0x810]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0xb9a3e0]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x81a43c]
mov byte [ecx + esi], al
add esp, 0x100c
ret
Function at 0x80ad40
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xb993ec]
sub esp, 0x97c
push ebx
push ebp
push esi
mov esi, dword [0x81a43c]
push edi
shr eax, 3
xor edi, edi
cmp eax, edi
jbe 0x80af56
mov dword [esp + 0x30], 0x9e3779b9
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], eax
jmp 0x80ad86
mov esi, dword [esp + 0x24]
xor edi, edi
cmp dword [0xb993ec], 0x1c
jne 0x80ad9d
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [0x8112c0]
mov ebx, dword [0x8112c8]
mov ebp, dword [0x8112cc]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x8112c4]
mov dword [esp + 0x1c], eax
mov esi, 0xc6ef3720
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], 0x20
jmp 0x80ade6
mov eax, dword [esp + 0x1c]
xor edi, edi
mov edx, eax
shr edx, 5
add edx, ebp
mov ecx, eax
shl ecx, 4
mov dword [esp + 0x20], edx
add ecx, ebx
lea edx, [esi + eax]
xor ecx, edx
mov dword [esp + 0x10], ecx
mov dword [0xb9935c], edi
mov eax, dword [esp + 0x20]
add dword [0xb9935c], eax
mov eax, dword [0xb9935c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x3c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
sub dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x38]
add dword [esp + 0x10], eax
cmp dword [0xb993ec], 0x1be
mov eax, dword [esp + 0x14]
lea edi, [esi + eax]
jne 0x80ae7d
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0xb993ec], 0x979
mov dword [0xb99360], 0xff6b3619
mov dword [0xb99364], 0xffffffff
mov dword [esp + 0x20], eax
jne 0x80aec7
push 0
lea ecx, [esp + 0x18c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
lea edx, [esp + 0x48]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], edi
mov eax, dword [esp + 0x20]
xor dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x30]
add dword [esp + 0x18], eax
sub esi, dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x80ade0
cmp dword [0xb993ec], 0x8d4
jne 0x80af0b
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
cmp dword [0xb993ec], 0x17
jne 0x80af45
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea edx, [esp + 0x48]
push edx
push 0x403f50
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esi, 8
dec dword [esp + 0x28]
mov dword [esp + 0x24], esi
jne 0x80ad80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x97c
ret
Function at 0x402800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4028e6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4028d5
jg 0x402840
test edx, edx
je 0x4028d5
nop dword [eax]
call fcn.00403c10
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402894
jg 0x402857
test esi, esi
je 0x402894
cmp ebx, eax
jg 0x402867
jl 0x402861
cmp edi, esi
jae 0x402867
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.0040a520
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x4028b9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x4028cf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402840
jl 0x4028cf
test edi, edi
jne 0x402840
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402908
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x40290a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402988
jg 0x40291d
test esi, esi
je 0x402988
test eax, eax
jl 0x40296c
jg 0x402927
test ebx, ebx
je 0x40296c
cmp edi, eax
jg 0x402937
jl 0x402931
cmp esi, ebx
jae 0x402937
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0040a520
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x402988
jg 0x40296f
test esi, esi
je 0x402988
jmp 0x40296f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402988
push eax
push esi
push 1
push edx
call fcn.0040e33f
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4029a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4029d2
jl 0x4029c5
test ecx, ecx
jne 0x4029d2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402a92
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00403c30
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402a3e
jg 0x4029fd
test esi, esi
je 0x402a3e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x402a15
mov eax, dword [esp + 0x10]
jl 0x402a0f
cmp eax, esi
jae 0x402a15
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.0040a520
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x402a5f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402a7b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4029e4
jl 0x402a7b
test ecx, ecx
jne 0x4029e4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x402ad1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x402ad1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.0040a520
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x402b40
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x402af7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x402b29
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040e996
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x402b54
cmp edi, eax
ja 0x402b05
test ecx, ecx
je 0x402b40
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040e996
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402ef0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408152
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x402f2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402f2c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408152
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403014
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402f54
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402f87
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040d232
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408152
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x402fe7
sub eax, 1
je 0x402fe7
sub eax, 2
jne 0x403014
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040d232
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408152
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403004
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040e33f
add esp, 0x10
cmp edi, eax
jne 0x403014
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x402f17
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408152
mov esp, ebp
pop ebp
ret 4
Function at 0x403940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x4039fa
cmp byte [esi + 0x3d], 0
je 0x4039fa
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4039e8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4039b0
sub eax, 1
je 0x4039b4
sub eax, 2
jne 0x4039e8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408152
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4039d1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040e33f
add esp, 0x10
cmp edi, eax
jne 0x4039e8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408152
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408152
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00408152
mov esp, ebp
pop ebp
ret

Function at 0x403fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a210
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x43a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00408362
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040913e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b795
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b60b

Function at 0x420530
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420083
Function at 0x402640
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x38]
mov dword [0x607548], eax
mov eax, dword [esp + 0x3c]
mov dword [0x607538], eax
mov eax, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x34]
add eax, 0x10
push 0
mov dword [0x607550], eax
mov dword [0x6073a0], esi
mov dword [esp + 0x2c], str.PPEE_Hex_Editor__Press_G_for_goto
mov dword [esp + 0xc], 0x4028b0
mov dword [esp + 8], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push 0x7f00
push 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6b
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_RegisterClassW]
push 0
push esi
push 0
push dword [esp + 0x3c]
push 0x1f4
push 0x320
push 0x64
push 0x64
push 0x2ef0000
push str.PPEE_Hex_Editor__Press_G_for_goto
push str.PPEE_Hex_Editor__Press_G_for_goto
push 0x8040004
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 5
push eax
mov dword [0x607608], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e8
push dword [0x607608]
push str.Statusbar
push 0x52000103
call dword [sym.imp.COMCTL32.dll_CreateStatusWindowW]
mov dword [0x607540], eax
pop esi
add esp, 0x28
ret 0x14