joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4076d2
test eax, edx
je 0x4076d5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407695
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4076bb
add ecx, 4
js 0x4076ab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4076b8
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4076e1
test edx, edx
jne 0x407688
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x407cfc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c68
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407d15
test al, 0x10
je 0x407d19
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x407d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c68
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407d39
test al, 0x10
jne 0x407d3d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a83c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a875
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048ec
jmp 0x40a87e
mov eax, ebx
mov edx, esi
call fcn.00404850
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a888
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a8aa
movzx eax, byte [esp]
jmp 0x40a8ac
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40af3c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40adb4
mov eax, dword [0x5376ac]
cmp byte [eax], 0
je 0x40afb8
mov eax, dword [0x5375b8]
call fcn.004033dc
call fcn.00402f34
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407f54
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b000
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40afee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x537590]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x53a7f0]
call fcn.004057b8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x414ad0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov byte [esp], al
mov esi, ecx
dec esi
test esi, esi
jl 0x414b14
inc esi
xor ebx, ebx
mov ebp, edi
add ebp, ebx
mov edx, ebp
lea eax, [esp + 1]
mov ecx, 1
call fcn.00406930
movzx eax, byte [esp]
xor byte [esp + 1], al
lea edx, [esp + 1]
mov eax, ebp
mov ecx, 1
call fcn.00406930
inc ebx
dec esi
jne 0x414ae4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41548c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c58
xor eax, eax
push ebp
push 0x41558e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004034b0
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x10
call fcn.004034b0
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404c68
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x415578
mov eax, dword [ebp - 0x5c]
mov dword [esi], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x58]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x54]
mov dword [eax], edx
mov dword [edi], 0x10007
push edi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetThreadContext
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
jmp 0x41555b
cmp dword [ebp - 0x68], 0x10000
je 0x41556e
add edi, dword [ebp - 0x6c]
push 0x1c
lea eax, [ebp - 0x78]
push eax
push edi
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualQueryEx
test eax, eax
jne 0x41554f
mov eax, dword [ebp + 0xc]
sub edi, dword [eax]
mov eax, dword [ebp + 8]
mov dword [eax], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415595
lea eax, [ebp - 4]
call fcn.004047fc
ret
Function at 0x415ab4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov byte [esp], al
mov esi, ecx
dec esi
test esi, esi
jl 0x415af8
inc esi
xor ebx, ebx
mov ebp, edi
add ebp, ebx
mov edx, ebp
lea eax, [esp + 1]
mov ecx, 1
call fcn.00406930
movzx eax, byte [esp]
xor byte [esp + 1], al
lea edx, [esp + 1]
mov eax, ebp
mov ecx, 1
call fcn.00406930
inc ebx
dec esi
jne 0x415ac8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x415fe8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x416155
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov dl, 1
mov eax, dword [0x410660]
call fcn.00403a7c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x416126
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
call fcn.00407d20
test al, al
jne 0x416042
mov eax, edi
call fcn.0040304c
call fcn.00402f34
mov esi, edi
test esi, esi
je 0x41604d
sub esi, 4
mov esi, dword [esi]
lea eax, [ebp - 0x10]
push eax
mov ecx, 1
mov edx, esi
mov eax, edi
call fcn.00404cc8
mov eax, dword [ebp - 0x10]
mov edx, 0x416170
call fcn.00404c00
je 0x41608a
push edi
push 0x416170
mov eax, dword [0x537574]
push dword [eax]
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00404b6c
jmp 0x41609c
mov ecx, dword [0x537574]
mov ecx, dword [ecx]
mov eax, dword [ebp - 4]
mov edx, edi
call fcn.00404af0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407cfc
test al, al
je 0x4160d8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404c68
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.004049f4
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x18]
call fcn.00404c68
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [0x537650]
movzx eax, byte [eax]
mov byte [ebp - 9], al
mov edx, dword [0x537650]
inc edx
mov ecx, 0x11ea00
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
movzx eax, byte [ebp - 9]
call fcn.00415ab4
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov eax, dword [ebp - 8]
call fcn.00412c1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x416132
mov eax, dword [ebp - 8]
call fcn.00403aac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41615c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404820
ret
Function at 0x4165c4
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4166a5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.004034b0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.004032d4
mov eax, dword [ebp - 0x40]
call fcn.00404c68
mov dword [ebp - 0x2c], eax
mov eax, ebx
call fcn.00416728
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
call fcn.00407f48
mov eax, dword [ebp - 0x44]
call fcn.00404c68
mov dword [ebp - 0x24], eax
mov eax, 0x4166b4
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x416682
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x50]
call fcn.0040a7f0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x4c]
push eax
push 0
mov ecx, 0x4166c4
mov dl, 1
mov eax, dword [0x40697c]
call fcn.0040b040
call fcn.00404244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4166ac
lea eax, [ebp - 0x50]
call fcn.004047fc
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404820
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ed0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7d83626
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x42d82d87
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x407ef8
mov ecx, 0x2d435358
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x63cb703d
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x404a20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], 0
je 0x404a9b
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
push 0x104
mov ecx, dword [ebp + 0x14]
call fcn.00403230
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x14]
call fcn.00403bd0
mov eax, 1
jmp 0x404a9d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404df0
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4514c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
call fcn.00405350
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
push 0x454f04
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00402a40
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0041cec0
lea ecx, [ebp - 0x10]
call fcn.004031d0
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x14]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x404f90
mov dword [ebp - 0x20], 0
mov edx, 1
test edx, edx
je 0x404f86
lea ecx, [ebp - 0x2c]
call fcn.004031d0
mov byte [ebp - 4], 4
mov dword [ebp - 0x34], 0x104
mov dword [ebp - 0x30], 0x104
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.00403230
push eax
push 0
lea edx, [ebp - 0x34]
push edx
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403230
push eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x404f02
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041cec0
jmp 0x404f86
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00403bd0
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403bd0
lea ecx, [ebp - 0x18]
call fcn.00403250
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x10]
call fcn.00404730
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.00407d70
push eax
lea ecx, [ebp - 0x18]
call fcn.00405130
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x39], al
lea ecx, [ebp - 0x40]
call fcn.0041cec0
movzx ecx, byte [ebp - 0x39]
test ecx, ecx
je 0x404f75
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041cec0
jmp 0x404f86
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
call fcn.0041cec0
jmp 0x404e8e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x404fce
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00407d70
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00404b70
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041cec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041cec0
mov eax, dword [ebp - 0x44]
jmp 0x404ff3
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0041cec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041cec0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x405010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4514d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.004031d0
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMain
lea eax, [ebp - 0x10]
push eax
call fcn.00403b30
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
push 2
push 0
lea ecx, [ebp - 0x10]
call fcn.00407d70
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x14], 0
je 0x4050c3
mov edx, dword [ebp + 8]
push edx
call fcn.00433230
add esp, 4
add eax, 1
push eax
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.Start_Page
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041cec0
mov eax, dword [ebp - 0x18]
jmp 0x4050dc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041cec0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x405e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
call fcn.00409d10
mov dword [ebp - 0x10], eax
push str.Image
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405ea1
xor eax, eax
jmp 0x405f05
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00406c00
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00406c60
push eax
call fcn.004338b0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.004292f0
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40bea0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0x43
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [0x455208]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
jmp 0x40bede
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0x1a
jge 0x40bf53
mov edx, 1
mov ecx, dword [ebp - 0x1c]
shl edx, cl
and edx, dword [ebp - 4]
je 0x40bf51
mov eax, dword [ebp - 0x1c]
add eax, 0x41
mov byte [ebp - 8], al
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
jne 0x40bf51
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
push 0
push 0
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x14]
jb 0x40bf51
ja 0x40bf3f
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x18]
jbe 0x40bf51
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov al, byte [ebp - 8]
mov byte [ebp - 9], al
jmp 0x40bed5
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x40c000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x46a4c0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], 0x9c
mov ecx, 0x26
xor eax, eax
lea edi, [ebp - 0xa4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa4], 6
jb 0x40c057
cmp dword [ebp - 0xa0], 1
jb 0x40c057
mov eax, 1
jmp 0x40c059
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00434060
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40e810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40e87c
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
call fcn.00406c20
test eax, eax
je 0x40e872
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406c20
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00406c60
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x412180
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45219e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004031f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004031f0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004031f0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004031f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004031f0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004031f0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004031f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004031f0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004031f0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004031f0
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004031f0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4