joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ec0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x670
push ebx
push ebp
mov ebp, dword [esp + 0x67c]
mov ebx, ecx
mov cl, byte [0x40ca7c]
test cl, cl
push esi
push edi
mov edi, edx
je 0x401f35
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x104
lea ecx, [esp + 0x274]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call esi
push 0x104
lea edx, [esp + 0x47c]
push edx
push 0xffffffffffffffff
push edi
push 0
push 0
call esi
push ebx
mov ebx, ebp
lea eax, [esp + 0x274]
lea ecx, [esp + 0x47c]
call fcn.00401dc0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret
test eax, eax
je 0x401f55
push eax
push edi
push 0x40c740
lea eax, [esp + 0x74]
push str.__s_s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
jmp 0x401f6e
push edi
push 0x40c740
lea ecx, [esp + 0x70]
push str.__s_s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
push edx
mov word [esp + 0x58], ax
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea ecx, [esp + 0x88]
push ecx
push 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402023
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
test bl, bl
mov dword [esp + 0x10], 0
je 0x401ff3
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test ebp, ebp
je 0x40200d
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [ebp], eax
mov eax, dword [esp + 8]
pop ebp
pop ebx
add esp, 0x670
ret
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x670
ret

Function at 0x402130
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push eax
lea ecx, [esp + 8]
push 0x409530
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
mov dword [esp + 0xc], edx
push 0
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret

Function at 0x402180
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push eax
lea ecx, [esp + 8]
push 0x409534
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
mov dword [esp + 0xc], edx
push 0
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
add esp, 0xc
ret
Function at 0x402220
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
sub esp, 0x10c
push ebx
push eax
push ecx
lea edx, [esp + 0x14]
push str._s_u
push edx
xor bl, bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 4]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x80000001
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402297
lea edx, [esp + 8]
push edx
push esi
push eax
push eax
mov eax, dword [esp + 0x14]
push 0x40953c
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40228c
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x10c
ret

Function at 0x4022b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [str.SOFTWAREElaborate_BytesVirtualCloneDrive]
sub esp, 0x10c
push ebx
push eax
push ecx
lea edx, [esp + 0x14]
push str._s_u
push edx
xor bl, bl
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 4]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x80000001
mov word [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40232a
lea edx, [esp + 8]
push edx
push esi
push eax
push eax
mov eax, dword [esp + 0x14]
push str.LastMountedFile
push eax
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40231f
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 0x10c
ret
Function at 0x402bb0
Capabilities:
Delete registry key

Disassembly:
push 0x24
push str.Virtual_CloneDrive
push 9
call fcn.00401590
add esp, 4
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402be2
push str.SoftwareElaborate_BytesVirtualCloneDriveLRU
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
ret

Function at 0x402bf0
Capabilities:
Create process on windows

Disassembly:
push 0x24
push str.Virtual_CloneDrive
push 0xb
call fcn.00401590
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402c28
push 1
push 0
push 0x409694
push str.VCDMount.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x402cf0
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push str.VCDPrefs
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x402d60
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
sub esp, 0x210
push ebx
push ebp
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
mov bl, al
mov eax, dword [0x40c73c]
lea ecx, [esp + 0x10]
push ecx
push 0
or eax, 0xf003f
push eax
push 0
push 0
push 0
push edx
push 0x80000002
add bl, 0x41
call edi
test eax, eax
jne 0x402dab
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
push esi
movsx esi, bl
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push ecx
lea edx, [esp + 0x20]
push str._s_c
push edx
call ebx
add esp, 0x10
push 0x40c740
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.VirtualCloneDrive.ico
lea ecx, [esp + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [0x40c73c]
push 0
lea edx, [esp + 0x14]
push edx
push 0
or eax, 0xf003f
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call edi
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x402e5c
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.VirtualCloneDrive2
push edx
mov dword [esp + 0x2c], 1
call ebp
mov eax, dword [esp + 0x10]
push str.VirtualCloneDrive
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
push esi
push edx
lea eax, [esp + 0x20]
push str._s_cDefaultIcon
push eax
call ebx
mov edx, dword [0x40c73c]
add esp, 0x10
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
or edx, 0xf003f
push edx
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x402edb
lea eax, [esp + 0x11c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402eb0
sub eax, edx
mov edx, dword [esp + 0x10]
inc eax
push eax
lea ecx, [esp + 0x120]
push ecx
push 1
push 0
push 0
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
push esi
push ecx
lea edx, [esp + 0x20]
push str._s_cDefaultLabel
push edx
call ebx
mov ecx, dword [0x40c73c]
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
push 0
or ecx, 0xf003f
push ecx
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0x80000002
call edi
test eax, eax
pop esi
jne 0x402f68
push str.Virtual_CloneDrive
lea eax, [esp + 0x18]
push 0x4096c8
push eax
call ebx
lea eax, [esp + 0x20]
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402f40
sub eax, edx
mov edx, dword [esp + 0xc]
inc eax
push eax
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push 0
push edx
call ebp
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
pop ebx
add esp, 0x210
ret
Function at 0x402f80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
add al, 0x41
movsx esi, al
mov eax, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
push edi
push esi
push eax
lea ecx, [esp + 0x20]
push str._s_c
push ecx
mov dword [esp + 0x20], 0
call ebx
mov eax, dword [0x40c73c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
or eax, 0xf003f
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
call edi
test eax, eax
jne 0x403029
mov ecx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.VirtualCloneDrive
push ecx
mov dword [esp + 0x30], 4
call ebp
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push str.VirtualCloneDrive2
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403081
mov ecx, dword [0x40c73c]
mov edx, dword [str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerDriveIcons]
lea eax, [esp + 0xc]
push eax
or ecx, 0xf003f
push ecx
push 0
push edx
push 0x80000002
call edi
test eax, eax
jne 0x403081
push esi
lea eax, [esp + 0x1c]
push 0x40973c
push eax
call ebx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004019a0
mov eax, dword [esp + 0x20]
add esp, 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x403fb2
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x4097c8
call fcn.0040668c
mov edi, 0x94
mov eax, edi
call fcn.00403ec0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40caec], ecx
mov eax, dword [esi + 4]
mov dword [0x40caf8], eax
mov edx, dword [esi + 8]
mov dword [0x40cafc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40caf0], esi
cmp ecx, 2
je 0x404012
or esi, 0x8000
mov dword [0x40caf0], esi
shl eax, 8
add eax, edx
mov dword [0x40caf4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40404d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40404d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404065
cmp eax, 0x20b
je 0x404052
mov dword [ebp - 0x1c], esi
jmp 0x404079
cmp dword [ecx + 0x84], 0xe
jbe 0x40404d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404073
cmp dword [ecx + 0x74], 0xe
jbe 0x40404d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004a3000
pop ecx
test eax, eax
jne 0x4040a5
cmp dword [0x40cab0], 1
jne 0x404092
call fcn.00405e59
push 0x1c
call fcn.00405ce2
push 0xff
call fcn.00405ad5
pop ecx
pop ecx
call fcn.00406602
mov dword [ebp - 4], esi
call fcn.00406457
test eax, eax
jge 0x4040be
push 0x1b
call fcn.00403f8d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40e078], eax
call fcn.00406335
mov dword [0x40caa8], eax
call fcn.00406293
test eax, eax
jge 0x4040e4
push 8
call fcn.00403f8d
pop ecx
call fcn.00406060
test eax, eax
jge 0x4040f5
push 9
call fcn.00403f8d
pop ecx
push 1
call fcn.00405b05
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40410b
push eax
call fcn.00403f8d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406003
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40412c
movzx eax, word [ebp - 0x40]
jmp 0x40412f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403810
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40414d
push edi
call fcn.00405c30
call fcn.00405c52
jmp 0x40417f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004066c7
ret
Function at 0x40543b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40df24]
push edi
jae 0x405610
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40df40]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x405610
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4054e6
test dl, 2
jne 0x4054e6
test dl, 0x48
je 0x4054b0
cmp byte [eax + 5], 0xa
je 0x4054b0
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4054f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4054e1
mov dword [0x40cae4], ecx
jmp 0x405617
cmp eax, 0x6d
jne 0x4054ed
xor eax, eax
jmp 0x405624
push eax
call fcn.0040703d
pop ecx
jmp 0x405621
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40560b
test eax, eax
je 0x405520
cmp byte [ebx], 0xa
jne 0x405520
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x405529
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x405605
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4055f5
cmp al, 0xd
je 0x40555b
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4055e7
dec ecx
cmp dword [ebp - 8], ecx
jae 0x405575
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x405570
add dword [ebp - 8], 2
jmp 0x4055c9
mov dword [ebp - 8], eax
jmp 0x4055e3
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40559d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4055e3
cmp dword [ebp - 0x10], 0
je 0x4055e3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4055be
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4055c9
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4055e6
cmp ebx, dword [ebp + 0xc]
jne 0x4055ce
cmp byte [ebp - 1], 0xa
jne 0x4055ce
mov byte [ebx], 0xa
jmp 0x4055e6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004075ab
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4055e7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40553f
jmp 0x405605
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x405605
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x405624
and dword [0x40cae4], 0
mov dword [0x40cae0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b6f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40cb2c], esi
push edi
jne 0x405b8f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40cb28], esi
mov byte [0x40cb24], al
jne 0x405bf5
mov ecx, dword [0x40e048]
test ecx, ecx
je 0x405bd6
mov eax, dword [0x40e044]
sub eax, 4
cmp eax, ecx
jmp 0x405bcf
mov eax, dword [eax]
test eax, eax
je 0x405bc1
call eax
mov eax, dword [0x40e044]
sub eax, 4
cmp eax, dword [0x40e048]
mov dword [0x40e044], eax
jae 0x405bb9
mov eax, 0x40c020
mov esi, 0x40c028
cmp eax, esi
mov edi, eax
jae 0x405bf5
mov eax, dword [edi]
test eax, eax
je 0x405bee
call eax
add edi, 4
cmp edi, esi
jb 0x405be6
mov eax, 0x40c02c
mov esi, 0x40c030
cmp eax, esi
mov edi, eax
jae 0x405c14
mov eax, dword [edi]
test eax, eax
je 0x405c0d
call eax
add edi, 4
cmp edi, esi
jb 0x405c05
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405c2e
push dword [ebp + 8]
mov dword [0x40cb2c], 1
call fcn.00405ad5
pop ebp
ret

Function at 0x405ce2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40c5b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40c090]
je 0x405d17
inc eax
cmp eax, 0x13
jb 0x405d08
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40c090]
jne 0x405e3d
mov eax, dword [0x40cab0]
cmp eax, 1
je 0x405e15
cmp eax, edx
jne 0x405d47
cmp dword [0x40c064], 1
je 0x405e15
cmp ecx, 0xfc
je 0x405e3d
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405d7d
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407ac0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407cf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405db1
mov eax, edi
push eax
call fcn.00407cf0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a110
push edi
call fcn.00407bc0
add esp, 0x10
push edi
call fcn.00407cf0
push dword [esi + 0x40c094]
mov ebx, eax
call fcn.00407cf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403ec0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407ac0
push edi
push ebx
call fcn.00407ad0
push 0x40a0f0
push ebx
call fcn.00407ad0
push dword [esi + 0x40c094]
push ebx
call fcn.00407ad0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004079c3
add esp, 0x2c
jmp 0x405e3d
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40c094]
push dword [esi]
call fcn.00407cf0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00407dac
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x406a5c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403ec0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406af7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40caec]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x406af7
cmp eax, 1
je 0x406b18
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406af7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x406ac4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x406af3
xor eax, eax
inc eax
jmp 0x406b37
cmp edi, eax
jae 0x406afb
xor eax, eax
jmp 0x406b37
cmp eax, esi
jae 0x406b02
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40caec]
jmp 0x406b1b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407266
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40df24]
mov eax, dword [0x40c5b0]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40742c
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40df40]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40742c
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4072d0
xor eax, eax
jmp 0x407440
test al, 0x20
je 0x4072e1
push 2
push edi
push edi
push ecx
call fcn.004085d2
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4073b6
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4073fd
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x407343
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407334
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x407316
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407383
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40738f
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40730a
jmp 0x407391
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x407427
cmp dword [ebp + 0x3a4], edi
je 0x4073fd
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4073ef
mov dword [0x40cae4], eax
jmp 0x407433
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4073e1
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x407391
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x407391
push dword [ebp + 0x3a4]
call fcn.0040703d
pop ecx
jmp 0x40743d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407415
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4072c9
mov dword [0x40cae0], 0x1c
mov dword [0x40cae4], edi
jmp 0x40743d
sub eax, dword [ebp - 0x7c]
jmp 0x407440
and dword [0x40cae4], 0
mov dword [0x40cae0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00407dac
add ebp, 0x39c
leave
ret