joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432200
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a3fd
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.BackupArmExe...
lea ecx, [ebp - 0x230]
call fcn.004026b0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x230]
push eax
push 2
call fcn.004381a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00407a90
mov dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jge 0x4322b8
mov edx, dword [ebp - 0x228]
push edx
push 0x443110
push 0x443140
push 0x443144
call fcn.0042ed30
add esp, 0x10
jmp 0x432430
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004026b0
mov dword [ebp - 4], 1
push str.AdobeARM1.0Backup
lea ecx, [ebp - 0x224]
call fcn.00402810
push 0
lea ecx, [ebp - 0x224]
call fcn.00403210
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0xa1
je 0x432312
cmp dword [ebp - 0x220], 3
jne 0x43235a
mov ecx, dword [ebp - 0x220]
push ecx
push 0x4431a0
lea ecx, [ebp - 0x224]
call fcn.00403210
push eax
push 0x4431d0
call fcn.0042ed30
add esp, 0x10
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00407a90
mov eax, dword [ebp - 0x234]
jmp 0x432430
push 0x443208
lea ecx, [ebp - 0x224]
call fcn.00402810
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004027b0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00403210
push eax
mov ecx, dword [ebp + 8]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4323d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x443224
lea ecx, [ebp - 0x224]
call fcn.00403210
push eax
push str.Failed_arm_backup_folder:
call fcn.0042ed30
add esp, 0x10
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00407a90
mov eax, dword [ebp - 0x238]
jmp 0x432430
push str.success_backup
lea ecx, [ebp - 0x23c]
call fcn.004026b0
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x23c]
push edx
push 2
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x23c]
call fcn.00407a90
mov dword [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00407a90
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414831
mov esp, ebp
pop ebp
ret
Function at 0x432710
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call fcn.00401d70
add esp, 4
test eax, eax
jne 0x432725
jmp 0x43275f
push 0x80
mov ecx, dword [ebp + 8]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 8]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43275f
push 0x186a0
mov ecx, dword [ebp + 8]
push ecx
push 2
call fcn.004381a0
add esp, 0xc
pop ebp
ret

Function at 0x432860
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a4f5
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
push 0x11c
push 0
lea eax, [ebp - 0x13c]
push eax
call fcn.00414840
add esp, 0xc
mov dword [ebp - 0x13c], 0x11c
lea ecx, [ebp - 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4328e2
mov dword [ebp - 0x13c], 0x114
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4328f8
cmp dword [ebp - 0x138], 6
jb 0x4328f8
mov dword [ebp - 0x14], 1
movzx eax, byte [0x452cb1]
test eax, eax
jne 0x43298e
cmp dword [ebp - 0x14], 0
je 0x43294b
push str.Vista_or_later
lea ecx, [ebp - 0x140]
call fcn.004026b0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x140]
push ecx
push 2
call fcn.004381a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x140]
call fcn.00407a90
jmp 0x432987
push str.not_Vista_or_later
lea ecx, [ebp - 0x144]
call fcn.004026b0
mov dword [ebp - 4], 1
push 0
lea edx, [ebp - 0x144]
push edx
push 2
call fcn.004381a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x144]
call fcn.00407a90
mov byte [0x452cb1], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00414831
mov esp, ebp
pop ebp
ret
Function at 0x4329b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a528
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x44eca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
push 0
lea eax, [ebp - 0x134]
push eax
call fcn.00414840
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x432a2b
mov dword [ebp - 0x134], 0x114
lea edx, [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x432a86
cmp dword [ebp - 0x130], 6
jne 0x432a86
cmp dword [ebp - 0x12c], 2
jne 0x432a86
push str.IsWin8WinServer2012_returns_1
lea ecx, [ebp - 0x138]
call fcn.004026b0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x138]
push eax
push 2
call fcn.004381a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.00407a90
mov eax, 1
jmp 0x432a88
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00414831
mov esp, ebp
pop ebp
ret
Function at 0x434070
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a8af
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x44eca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403220
movzx eax, al
test eax, eax
jne 0x4340b8
lea ecx, [ebp + 8]
call fcn.004031f0
cmp eax, 4
jae 0x4340cc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407a90
jmp 0x43424c
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00408060
mov byte [ebp - 4], 1
push 0x5c
lea ecx, [ebp - 0x34]
call fcn.00402bf0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x434134
lea ecx, [ebp - 0x34]
call fcn.004031f0
sub eax, 1
cmp dword [ebp - 0x30], eax
jne 0x434134
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00402df0
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.004027b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
call fcn.00407a90
push 0x442680
lea ecx, [ebp - 0x34]
call fcn.00402810
lea ecx, [ebp - 0x24]
call fcn.004088f5
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x34]
call fcn.00403210
push eax
lea ecx, [ebp - 0x24]
call fcn.004089bc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4341e0
lea ecx, [ebp - 0x24]
call fcn.004085d7
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x24]
call fcn.004088b6
test eax, eax
je 0x434182
jmp 0x434163
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.00408be9
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24]
call fcn.004016a0
test eax, eax
je 0x4341c6
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp - 0x38]
push edx
call fcn.00408060
mov dword [ebp - 0x4c], eax
call fcn.00434070
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407a90
jmp 0x434163
lea eax, [ebp - 0x38]
push eax
call fcn.00432710
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407a90
jmp 0x434163
lea ecx, [ebp - 0x24]
call fcn.004084f1
push 0x80
lea ecx, [ebp + 8]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp + 8]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x434225
push 0x186a0
lea ecx, [ebp + 8]
push ecx
push 2
call fcn.004381a0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0040891e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00407a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407a90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x437250
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x437274
mov eax, 3
jmp 0x43738c
mov ecx, dword [ebp - 0x14]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437290
mov eax, 2
jmp 0x43738c
mov dword [ebp - 4], 0x82
mov edx, dword [ebp - 4]
shl edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 1
cmp dword [ebp - 4], eax
ja 0x43736b
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x821
jb 0x4372c9
mov eax, 0xd
jmp 0x43738c
xor ecx, ecx
mov eax, dword [ebp - 4]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408443
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.00414840
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 4
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
push 0x446d74
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43733c
mov ecx, dword [ebp - 4]
sub ecx, 1
cmp dword [ebp - 8], ecx
jne 0x437366
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040844e
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [ebp - 8], 0
jne 0x437366
mov eax, pe_nt_image_headers32
jmp 0x43738c
jmp 0x43729f
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x437383
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x43738a
mov eax, 0xd
jmp 0x43738c
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x4373a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, 0xfeff
mov word [ebp - 8], ax
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4373e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x437443
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x437404
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x437443
push 0
lea edx, [ebp - 4]
push edx
push 0x446ce4
call fcn.004148ba
add esp, 4
lea eax, [eax + eax + 2]
push eax
push str._SESSION_
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x437437
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x437443
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x437730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], vtable.CArmReport.0
push 0x104
push 0
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.00414840
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 4
push edx
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x43777b
jmp 0x4377a7
push str.AdobeARM_
push 0x104
mov eax, dword [ebp - 8]
add eax, 4
push eax
call fcn.00401080
push str.ArmReport.ini
push 0x104
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
call fcn.00401080
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4378e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x43790c
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x437913
mov eax, 2
jmp 0x437983
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x437981
mov byte [ebp - 9], 0
lea eax, [ebp - 9]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Delete_Report
mov ecx, dword [ebp - 0x10]
call fcn.004377b0
push 4
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x437981
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov byte [ebp - 0xa], 0
lea edx, [ebp - 0xa]
push edx
mov eax, dword [ebp - 8]
push eax
push str.MoveEx_Report
mov ecx, dword [ebp - 0x10]
call fcn.004377b0
mov eax, dword [ebp - 8]
jmp 0x437983
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x437990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov byte [0x452cc5], 1
mov dword [0x452cbc], 1
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, 0x452d20
call fcn.00403210
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x437a16
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, 0x452d2c
call fcn.00403210
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
jne 0x437a2c
cmp dword [ebp - 0xc], 1
jne 0x437a2c
mov dword [0x452cbc], 2
mov esp, ebp
pop ebp
ret
Function at 0x406030
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push str.Fatal:__s_n
call fcn.0040c128
push str.pause
call fcn.0040c092
add esp, 0xc
push 1
call fcn.0040bfbd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x408660
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
dec eax
dec ecx
mov word [esp + 0x14], ax
mov word [esp + 0x16], cx
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push ecx
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
pop esi
add esp, 8
ret

Function at 0x4086d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
mov ebx, dword [esp + 0x10]
sub eax, ebx
cmp eax, edi
jae 0x4086fd
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
call esi
sub eax, ebx
cmp eax, edi
jb 0x4086f0
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408710
Capabilities:
Get disk information

Disassembly:
sub esp, 0x80c
mov dl, byte [0xf1fee4]
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x411]
mov byte [esp + 0x410], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 0x400
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x424]
push 0x400
push ecx
push 0x415214
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 4]
pop edi
add esp, 0x80c
ret
Function at 0x40d780
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d7a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f1fc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40d7c1
test byte [esp + 8], 2
je 0x40d7c1
mov dword [0xf1fee8], 0xd
mov dword [0xf1feec], 5
jmp 0x40d79c
xor eax, eax
ret

Function at 0x40f035
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4158e0
cmp edx, dword [eax]
je 0x40f057
add eax, 8
inc ecx
cmp eax, 0x415970
jl 0x40f048
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4158e0]
jne 0x40f185
mov eax, dword [0xf1ff44]
cmp eax, 1
je 0x40f15f
test eax, eax
jne 0x40f088
cmp dword [0x415358], 1
je 0x40f15f
cmp edx, 0xfc
je 0x40f185
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f0bf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004105b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d220
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f102
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d220
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414500
push edi
call fcn.0040c710
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004105b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004105c0
lea eax, [ebp - 0xa0]
push 0x415234
push eax
call fcn.004105c0
push dword [esi + 0x4158e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004105c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411bda
add esp, 0x2c
pop edi
jmp 0x40f185
lea eax, [ebp + 8]
lea esi, [esi + 0x4158e4]
push 0
push eax
push dword [esi]
call fcn.0040d220
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 0x401020
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov edx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov esi, dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x4011f3
mov dword [ebp - 0x10], edx
xor ecx, ecx
xor ebx, ebx
xor edi, edi
jmp 0x401063
cmp ax, 0x5c
jne 0x401170
add ebx, 1
lea edx, [ecx + 1]
movzx eax, word [esi + edx*2]
test ax, ax
je 0x401085
mov ecx, edx
cmp ax, 9
je 0x40106f
cmp ax, 0x20
jne 0x401048
test edi, edi
je 0x4011d8
lea edx, [ecx + 1]
xor ebx, ebx
movzx eax, word [esi + edx*2]
test ax, ax
jne 0x401061
mov edx, dword [ebp - 0x10]
lea ecx, [ecx + ecx + 4]
mov dword [ebp - 0x14], edx
mov eax, dword fs:[0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x401164
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
movzx eax, word [ecx]
test ax, ax
je 0x4011fd
lea ebx, [ecx + 2]
xor edi, edi
xor edx, edx
jmp 0x401106
mov ecx, ebx
cmp ax, 0x5c
jne 0x401190
mov eax, 0x5c
add edi, 1
add esi, 2
mov word [esi - 2], ax
movzx eax, word [ebx]
add ebx, 2
test ax, ax
je 0x40112f
cmp ax, 9
je 0x401112
cmp ax, 0x20
jne 0x4010e0
test edx, edx
je 0x4011e8
mov word [esi], ax
movzx eax, word [ebx]
mov ecx, ebx
add esi, 2
xor edi, edi
add ebx, 2
test ax, ax
jne 0x401106
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [edx], ecx
mov word [esi], ax
movzx eax, word [ecx]
cmp ax, 0x20
je 0x401148
cmp ax, 9
jne 0x401164
add ecx, 2
lea esi, [esi]
nop
mov dword [edx], ecx
movzx eax, word [ecx]
add ecx, 2
cmp ax, 9
je 0x401150
cmp ax, 0x20
je 0x401150
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ax, 0x22
jne 0x401077
and ebx, 1
jne 0x401077
xor edi, 1
jmp 0x401055
cmp ax, 0x22
jne 0x40111a
mov eax, edi
shr eax, 0x1f
add eax, edi
sar eax, 1
and edi, 1
jne 0x4011b8
add eax, eax
xor edx, 1
xor edi, edi
sub esi, eax
jmp 0x4010fb
mov edi, 0x7fffffff
sub edi, eax
lea eax, [esi + edi*2]
mov edi, 0x22
mov word [eax], di
lea esi, [eax + 2]
xor edi, edi
jmp 0x4010fb
mov edx, dword [ebp - 0x10]
lea ecx, [ecx + ecx + 2]
jmp 0x40108c
mov edx, dword [ebp - 0x14]
lea ecx, [ebx - 2]
jmp 0x401132
mov ecx, 2
jmp 0x40108c
mov esi, dword [ebp - 0x10]
jmp 0x401132
Function at 0x402520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402578
cmp byte [esi + ebx - 1], 0xa
je 0x40254c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4080a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret