joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7758
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x4e790b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428eb4
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.00458e5c
call fcn.004bec84
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x4e77dc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.00423954
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428eb4
mov eax, dword [eax + 0xc]
pop edx
call fcn.0042395c
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.0042383c
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409ee0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428eb4
call fcn.00424a24
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004238b0
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004238ec
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004238ec
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004238ec
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00423954
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428eb4
mov eax, dword [eax + 0xc]
pop edx
call fcn.004237e8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.00428eb4
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
imul edx, dword [edx - 0x54], 0x13
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x90]
mov edx, dword [ecx + edx*8 + 0x10]
call fcn.0042362c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7912
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x4f6a34
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409730
test al, al
je 0x4f6abb
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.0040333c
or esi, 0x100
test esi, esi
jns 0x4f6a6f
call fcn.00403a7c
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404dd0
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4f6abb
mov dl, 1
mov eax, dword [0x4227c4]
call fcn.0042a560
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042a930
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x4f6abb
mov eax, esp
call fcn.0040ec88
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x50055c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x50062d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404910
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00404bd0
mov esi, eax
sar esi, 1
jns 0x5005a1
adc esi, 0
test esi, esi
jle 0x50060a
mov dword [ebp - 8], 1
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 8]
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00404e30
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x500644
call fcn.00404c1c
mov eax, dword [ebp - 0x10]
call fcn.00409280
mov edx, eax
mov al, byte [ebx + 0x50ee6c]
xor dl, al
lea eax, [ebp - 0xc]
call fcn.00404af8
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404bd8
lea eax, [ebx + 1]
mov ecx, 0xa
cdq
idiv ecx
mov ebx, edx
inc dword [ebp - 8]
dec esi
jne 0x5005ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500634
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404934
lea eax, [ebp - 4]
call fcn.00404910
ret

Function at 0x500818
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x500897
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x41
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404af8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x5008ac
call fcn.00404c1c
mov eax, dword [ebp - 4]
call fcn.00404dd0
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
je 0x500876
cmp eax, 1
je 0x500876
cmp eax, 3
jne 0x500876
mov eax, dword [esi]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc ebx
cmp ebx, 0x5b
jne 0x500836
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50089e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404934
ret
Function at 0x50154c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
xor eax, eax
push ebp
push 0x501778
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50173c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x513124]
mov eax, dword [eax + 0x330]
mov edx, dword [eax]
call dword [edx + 0xd8]
mov eax, dword [ebp - 4]
call fcn.00402910
call fcn.004028d4
lea eax, [ebp - 0x14c]
push eax
push 0x50178c
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x501651
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.00404b80
lea eax, [ebp - 0x150]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c1c
mov eax, dword [ebp - 0x150]
call fcn.00409730
test al, al
je 0x50163a
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c1c
mov edx, dword [ebp - 0x154]
mov eax, dword [0x513124]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5015da
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [0x513124]
mov eax, dword [eax + 0x330]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov esi, eax
dec esi
test esi, esi
jl 0x50172e
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x158]
mov eax, dword [0x513124]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x158]
call fcn.0050007c
cmp edx, 0
jne 0x5016af
cmp eax, 0x25435650
jbe 0x501726
jmp 0x5016b1
jle 0x501726
lea ecx, [ebp - 0x15c]
mov eax, dword [0x513124]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x15c]
call fcn.0050007c
cmp edx, 0
jne 0x5016e8
cmp eax, 0x25437d60
jae 0x501726
jmp 0x5016ea
jge 0x501726
mov byte [ebp - 5], 1
lea ecx, [ebp - 0x160]
mov eax, dword [0x513124]
mov eax, dword [eax + 0x330]
mov eax, dword [eax + 0x218]
mov edx, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x160]
mov eax, 0x51313c
call fcn.00404964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50174a
inc ebx
dec esi
jne 0x501678
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x50174a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50177f
lea eax, [ebp - 0x160]
mov edx, 5
call fcn.00404934
lea eax, [ebp - 0xc]
call fcn.00404910
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x501810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404dc0
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x50198a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004814a4
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004814c4
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x501956
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b80
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409c6c
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408c8c
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408c8c
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404d1c
je 0x501930
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00404b80
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408c8c
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408c8c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404d1c
jne 0x501947
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004814e4
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x501891
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501991
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404934
lea eax, [ebp - 4]
call fcn.00404910
ret
Function at 0x5fcb70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x357000
lea edi, [esi - 0x1a6000]
push edi
jmp 0x5fcb8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fcb91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcb80
mov eax, 1
add ebx, ebx
jne 0x5fcba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fcbb4
jne 0x5fcbd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbd3
dec eax
add ebx, ebx
jne 0x5fcbc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fcb98
add ebx, ebx
jne 0x5fcbcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5fcc25
xor ecx, ecx
sub eax, 3
jb 0x5fcbeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fcc5a
sar eax, 1
mov ebp, eax
jmp 0x5fcbf6
add ebx, ebx
jne 0x5fcbf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbc4
inc ecx
add ebx, ebx
jne 0x5fcc04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbc4
add ebx, ebx
jne 0x5fcc11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fcc06
jne 0x5fcc22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fcc06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fcc44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fcc36
jmp 0x5fcb86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fcc44
add edi, ecx
jmp 0x5fcb86
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fcc62
cmp byte [edi], 0x11
jne 0x5fcc62
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 0x5fcc67
lea edi, [esi + 0x1f5000]
mov eax, dword [edi]
or eax, eax
je 0x5fccdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x320030]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3201ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fcc94
mov ecx, edi
jns 0x5fccc3
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 + 0x3201b0]
or eax, eax
je 0x5fccd9
mov dword [ebx], eax
add ebx, 4
jmp 0x5fccb1
call dword [esi + 0x3201c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5fcd10
cmp al, 0xef
ja 0x5fcd03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5fcce5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5fccf2
mov ebp, dword [esi + 0x3201b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x5fcd44
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push str.PROFILE
push 0x81
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401020
pop edi
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40102f
pop edi
pop esi
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x208
sbb eax, eax
not eax
and eax, ebx
pop ebx
pop edi
pop esi
ret

Function at 0x401180
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0xc
xor ebx, ebx
call fcn.004016f7
mov ecx, dword [esp + 0x18]
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
mov eax, dword [esp + 0x18]
push edx
push ebx
push esi
push 0x401100
push ebx
push ebx
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
je 0x4011cf
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004016ec
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x401230
Capabilities:
Enumerate gui resources

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ecx, ebx
xor eax, eax
mov edi, ebp
push 0xc
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], 0
call fcn.004016f7
mov esi, eax
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi + 8], 0
mov dword [esi], ebp
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x401290
push esi
push 0x4011e0
push eax
call dword [sym.imp.USER32.dll_EnumDesktopsA]
mov edi, dword [esi + 8]
push esi
call fcn.004016ec
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x10]
push esi
call fcn.004016ec
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4012b0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x110]
lea edx, [esp + 0xc]
push ecx
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
push str.._gb
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401313
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x401363
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x110]
push eax
push ecx
call ebx
test eax, eax
je 0x401363
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push eax
call esi
lea ecx, [esp + 0x110]
push str..eno
push ecx
call edi
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x208
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret

Function at 0x401440
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
mov ecx, dword [esp + 0x64]
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x80]
push eax
push ecx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, 1
pop edi
add esp, 0x54
ret

Function at 0x4014a0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1108
call fcn.00401820
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x11c]
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x401523
mov ebx, dword [esp + 0x10]
mov edi, 0
shr ebx, 2
je 0x401523
mov ebp, dword [esp + 0x111c]
lea esi, [esp + 0x118]
mov edx, dword [esi]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40151b
lea ecx, [esp + 0x14]
push 0x80
push ecx
push 0
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
lea edx, [esp + 0x14]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401530
inc edi
add esi, 4
cmp edi, ebx
jb 0x4014e5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1108
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1108
ret
Function at 0x401540
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x70c
mov eax, dword [esp + 0x710]
push esi
push eax
call fcn.00401000
push 0
push eax
mov dword [esp + 0x10], eax
call fcn.00401050
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4016d3
push ebx
push ebp
lea ecx, [esp + 0x31c]
push 0xff
push ecx
call fcn.00401230
mov ebx, eax
add esp, 8
xor ebp, ebp
test ebx, ebx
jle 0x4015b3
push edi
lea edi, [esp + 0x320]
mov edx, dword [esp + 0x10]
mov eax, dword [edi]
push edx
push eax
call fcn.00401180
mov esi, eax
add esp, 8
test esi, esi
jne 0x4015b2
inc ebp
add edi, 4
cmp ebp, ebx
jl 0x401594
pop edi
push str.PTRecover.EXE
call fcn.004014a0
add esp, 4
test eax, eax
pop ebp
pop ebx
jne 0x4016d3
test esi, esi
jne 0x4016d3
call fcn.004012b0
cmp eax, 1
jne 0x40164a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x210]
lea eax, [esp + 8]
push edx
push eax
mov byte [esp + 0x218], 0
call fcn.004013f0
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x11c], 0
call fcn.00401370
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x220]
push eax
push ecx
call fcn.00401440
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x70c
ret 0x10
test eax, eax
jne 0x4016d3
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x210]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
lea ecx, [esp + 0x210]
push eax
push ecx
mov byte [esp + 0x10], 0
call fcn.004013f0
add esp, 8
lea edx, [esp + 8]
push str..eno
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x210]
push eax
push ecx
mov byte [esp + 0x114], 0
call fcn.00401370
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00401440
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
add esp, 0x70c
ret 0x10
xor eax, eax
pop esi
add esp, 0x70c
ret 0x10
Function at 0x402ae9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406440
cmp edx, dword [eax]
je 0x402b0b
add eax, 8
inc ecx
cmp eax, 0x4064d0
jl 0x402afc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406440]
jne 0x402c39
mov eax, dword [0x4064e8]
cmp eax, 1
je 0x402c13
test eax, eax
jne 0x402b3c
cmp dword [0x406084], 1
je 0x402c13
cmp edx, 0xfc
je 0x402c39
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402b73
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403950
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401b00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402bb6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401b00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053f8
push edi
call fcn.00403e00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403950
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403960
lea eax, [ebp - 0xa0]
push 0x4053d8
push eax
call fcn.00403960
push dword [esi + 0x406444]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403960
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403d75
add esp, 0x2c
pop edi
jmp 0x402c39
lea eax, [ebp + 8]
lea esi, [esi + 0x406444]
push 0
push eax
push dword [esi]
call fcn.00401b00
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 0x401330
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2bf8
call fcn.00411110
mov eax, dword [0x41a464]
xor eax, esp
mov dword [esp + 0x2bf4], eax
push edi
push 0x2bf2
lea eax, [esp + 8]
push 0
push eax
call fcn.004102d0
mov edx, dword [esp + 0x2c0c]
lea ecx, [esp + 0x2c10]
push ecx
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004074db
lea edi, [esp + 0x1c]
add esp, 0x18
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401380
mov cx, word [0x417f20]
lea edx, [esp + 4]
push edx
mov word [edi], cx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x2bf8]
pop edi
xor ecx, esp
call fcn.00405f18
add esp, 0x2bf8
ret

Function at 0x401470
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call edi
mov esi, eax
push esi
call fcn.004075d2
add esp, 4
mov ebx, eax
push ebx
push esi
call edi
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x10], 0
test eax, eax
jle 0x401504
lea ecx, [esp + 0xc]
mov edi, 0x4e8f38
mov esi, ecx
push ebp
sub edi, ecx
mov ebp, ebx
sub esi, ebx
mov dword [esp + 0x18], eax
mov eax, ebp
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4014c2
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x4014e1
cmp eax, 2
jne 0x4014f6
lea eax, [esp + 0x10]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x4014e5
inc dword [esp + 0x14]
add edi, 4
sub esi, 4
add ebp, 4
sub dword [esp + 0x18], 1
jne 0x4014c0
pop ebp
push ebx
call fcn.00406beb
add esp, 4
cmp dword [esp + 0x10], 0
pop edi
pop esi
setg al
pop ebx
add esp, 0xc
ret