joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405e0b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x405e35
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a9f0
add esp, 4
test eax, eax
jne 0x405e41
mov dword [ebp - 4], 1
jmp 0x405ecf
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x405e68
jmp 0x405ecd
push 2
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a9f0
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a9f0
add esp, 4
cmp dword [ebp - 8], eax
je 0x405eaf
jmp 0x405ecb
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x405ec6
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x405ed1
jmp 0x405eb6
jmp 0x405eb6
jmp 0x405eb6
mov esp, ebp
pop ebp
ret

Function at 0x405ed5
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x405f0e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040aa6b
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x405f35
jmp 0x405fa3
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 8]
je 0x405f7e
jmp 0x405fa1
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov byte [edx], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0xffffffff
je 0x405f9f
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405fa5
jmp 0x405f8f
jmp 0x405f8f
mov esp, ebp
pop ebp
ret
Function at 0x406061
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.0040acf0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov cx, word [ebp + 0xc]
mov word [ebp - 0x30], cx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x4000200
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 0
je 0x4060fc
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x64]
mov dword [ecx], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x406114
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.0040acf0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov cx, word [ebp + 0xc]
mov word [ebp - 0x24], cx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x4000200
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4063ae
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 8]
push eax
call fcn.00405fa9
add esp, 4
test eax, eax
je 0x4063fb
push 0
push 0x80
push 5
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4063f9
jmp 0x406476
jmp 0x406422
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x406422
jmp 0x406474
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a9f0
add esp, 4
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040a9f0
add esp, 4
cmp dword [ebp - 8], eax
je 0x406456
jmp 0x406472
mov dword [ebp - 4], 1
cmp dword [ebp - 0xc], 0xffffffff
je 0x40646d
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x406478
jmp 0x40645d
jmp 0x40645d
jmp 0x40645d
mov esp, ebp
pop ebp
ret

Function at 0x40647c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x10], 0
push 0x105
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push 0x411ff4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x104
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.CommonFilesDir
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x406532
cmp dword [ebp + 8], 0
je 0x406532
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a9f0
add esp, 4
test eax, eax
jbe 0x406532
push 0x412030
lea edx, [ebp - 0x10]
push edx
call fcn.004055a0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004055a0
add esp, 8
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x406539
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00405ffa
add esp, 4
test eax, eax
je 0x40655b
jmp 0x406657
cmp dword [ebp - 8], 0
je 0x40657a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0040aa6b
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0040a9f0
add esp, 4
add eax, 1
push eax
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0040a8f0
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040a9f0
add esp, 4
sub eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x40662c
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 4], al
cmp dword [ebp - 0xc], 0
je 0x406605
movsx ecx, byte [ebp - 4]
cmp ecx, 0x5c
je 0x406605
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
mov eax, dword [ebp - 8]
push eax
call fcn.0040a9f0
add esp, 4
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
mov byte [ebp - 4], dl
jmp 0x4065ce
mov eax, dword [ebp - 8]
push eax
call fcn.0040a9f0
add esp, 4
sub eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0
mov edx, dword [ebp - 8]
push edx
call fcn.00406539
add esp, 4
cmp dword [ebp - 8], 0
je 0x40664b
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040aa6b
add esp, 4
mov dword [ebp - 8], 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esp, ebp
pop ebp
ret

Function at 0x40665b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp dword [0x416908], 0
jne 0x406672
jmp 0x406763
cmp dword [0x41690c], 0
jne 0x406713
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [0x41690c], 0
je 0x4066bf
mov ecx, dword [0x41690c]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x10c]
push edx
call fcn.0040aa6b
add esp, 4
mov dword [0x41690c], 0
lea eax, [ebp - 0x108]
push eax
call fcn.0040a9f0
add esp, 4
add eax, 1
push eax
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [0x41690c], ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [0x41690c]
push eax
call fcn.0040a8f0
add esp, 8
push str.install.txt
push 0x41690c
call fcn.004055a0
add esp, 8
mov ecx, dword [0x41690c]
push ecx
call fcn.00405fa9
add esp, 4
test eax, eax
jne 0x40673c
push 2
push 0x412044
mov edx, dword [0x41690c]
push edx
call fcn.00405d91
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x41690c]
push ecx
call fcn.00405e0b
add esp, 8
push 0x412048
mov edx, dword [0x41690c]
push edx
call fcn.00405e0b
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x406767
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4067a8
cmp dword [ebp - 0x90], 2
jne 0x4067a8
mov dword [ebp - 0xc8], 1
cmp dword [ebp - 0xc8], 0
je 0x406830
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xcc]
push ecx
push 0x28
mov edx, dword [ebp - 0xa4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 8]
push eax
push str.SeShutdownPrivilege
push 0x416918
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0xc4], 1
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc0], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], 2
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xb4]
push ecx
push 0x10
lea edx, [ebp - 0xc4]
push edx
push 0
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret
Function at 0x40683e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], 0
push 0x41691c
lea eax, [ebp - 0x14]
push eax
call fcn.0040a8f0
add esp, 8
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x40694b
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
jne 0x40694b
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x20]
push eax
push 0x412060
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ax, word [edx + 0xe]
test eax, eax
jle 0x406906
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cx, word [eax + 0xe]
push ecx
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ax, word [edx + 8]
push eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 0xa]
push edx
push str._02d._02d._02d_02d
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x406936
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov cx, word [eax + 8]
push ecx
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ax, word [edx + 0xa]
push eax
push str._02d._02d._04d
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x14]
push edx
call fcn.0040a9f0
add esp, 4
cmp eax, 0xa
jbe 0x40694b
mov byte [ebp - 0xa], 0
cmp dword [ebp - 0x1c], 0
je 0x40696a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0040aa6b
add esp, 4
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x40698f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0040aa6b
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040a9f0
add esp, 4
add eax, 1
push eax
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.0040a8f0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4069c8
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4069fa
xor eax, eax
jmp 0x406b1a
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x48], edx
push 0x38
push 0x412088
lea eax, [ebp - 0x4c]
push eax
call fcn.00407d00
add esp, 0xc
mov dword [ebp - 0x10], 0x8000
mov ecx, dword [ebp - 0x10]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406a4f
jmp 0x406b18
mov edx, 1
test edx, edx
je 0x406ab9
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], ecx
push 0
lea edx, [ebp - 0x4c]
push edx
call fcn.00407d20
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x406a80
jmp 0x406b16
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
push 0
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406aad
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x50]
je 0x406aaf
jmp 0x406b14
cmp dword [ebp - 8], 1
jne 0x406ab7
jmp 0x406ab9
jmp 0x406a4f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00407ba0
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x406b1a
lea eax, [ebp - 0x4c]
push eax
call fcn.00407ba0
add esp, 4
cmp dword [ebp - 4], 0
je 0x406afc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x406b1a
jmp 0x406ae0
jmp 0x406ae0
jmp 0x406ae0
mov esp, ebp
pop ebp
ret
Function at 0x40711a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x10], 0
push 0x105
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x104
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.ProgramFilesDir
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x4071d0
cmp dword [ebp + 8], 0
je 0x4071d0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a9f0
add esp, 4
test eax, eax
jbe 0x4071d0
push 0x4121bc
lea edx, [ebp - 0x10]
push edx
call fcn.004055a0
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.004055a0
add esp, 8
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4074da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0x1000
push 0x1001
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4075a8
cmp dword [ebp - 0x10], 0
je 0x407575
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0040aa6b
add esp, 4
mov dword [ebp - 0x10], 0
push 0x416920
call fcn.0040a9f0
add esp, 4
add eax, 1
push eax
call fcn.0040a9e0
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push 0x416924
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0040a8f0
add esp, 8
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40cf8e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415d70
cmp edx, dword [eax]
je 0x40cfb0
add eax, 8
inc ecx
cmp eax, 0x415e00
jl 0x40cfa1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415d70]
jne 0x40d0de
mov eax, dword [0x416948]
cmp eax, 1
je 0x40d0b8
test eax, eax
jne 0x40cfe1
cmp dword [0x413894], 1
je 0x40d0b8
cmp edx, 0xfc
je 0x40d0de
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d018
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a8f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a9f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d05b
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a9f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f7cc
push edi
call fcn.0040abc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a8f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a900
lea eax, [ebp - 0xa0]
push 0x40f7ac
push eax
call fcn.0040a900
push dword [esi + 0x415d74]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a900
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e104
add esp, 0x2c
pop edi
jmp 0x40d0de
lea eax, [ebp + 8]
lea esi, [esi + 0x415d74]
push 0
push eax
push dword [esi]
call fcn.0040a9f0
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 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x402d7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406028]
jne 0x402d89
repz ret
jmp fcn.004032fc