joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428061
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
push edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push ebx
mov dword [ebp - 0x44], ecx
mov dword [ecx], edx
mov dword [ebp - 0x4c], edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x428106
push esi
push edi
call fcn.00440ff1
push edi
mov esi, eax
push 0
push esi
call fcn.0043e710
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4280fe
push 0x34
lea eax, [ebp - 0x38]
push edi
push eax
mov dword [ebp - 0x3c], eax
call fcn.0043e710
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x46b7a8
push esi
mov dword [ebp - 0x40], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4280fe
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
push esi
call fcn.00440fb8
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0043e699
leave
ret 0xc
Function at 0x428118
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0xb8
mov eax, 0x465cd5
call fcn.0043fa79
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0x70], 0x47686c
mov dword [ebp - 0x48], 0x46d060
call fcn.004033a0
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.004034e0
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0
call fcn.00403240
cmp dword [ebp - 0x5c], 0
je 0x4281b1
push esi
lea ecx, [ebp - 0x70]
call fcn.0040fb50
lea eax, [ebp - 0x70]
push eax
mov ecx, ebx
call fcn.0042337e
push 0
lea eax, [ebp - 0xa1]
push eax
push str.PATH
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.00403400
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00427332
lea ecx, [ebp - 0x40]
call fcn.00401500
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
push 1
lea eax, [ebp - 0xb0]
push eax
push ecx
push 0x3b
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.0042416f
mov eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0xb0]
sub eax, esi
push 0x30
cdq
pop ecx
idiv ecx
mov edi, eax
test edi, edi
je 0x428307
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x42824d
mov eax, dword [esi]
jmp 0x42824f
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xb4], eax
push 0
lea eax, [ebp - 0xa1]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004033a0
push dword [ebp - 0xb4]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00402660
mov ecx, dword [eax]
mov byte [ebp - 4], 7
mov byte [eax + 4], 1
call fcn.004034e0
cmp dword [esi + 0x14], 8
mov ecx, dword [eax]
jb 0x4282b3
mov eax, dword [esi]
jmp 0x4282b5
mov eax, esi
push dword [ebp - 0xb4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 6
call fcn.00403240
cmp dword [ebp - 0x2c], 0
je 0x4282f1
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x40]
call fcn.0040fb50
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0042337e
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00401500
add esi, 0x30
dec edi
jne 0x428243
lea ecx, [ebp - 0xb0]
call fcn.00423041
lea ecx, [ebp - 0xa0]
call fcn.00401500
lea ecx, [ebp - 0x70]
call fcn.00401500
call fcn.0043fa28
ret 8
Function at 0x4284bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
test esi, esi
je 0x428537
push 0
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x408]
cmp ecx, 2
jb 0x42851e
movzx eax, byte [ebp - 0x404]
cmp eax, 0xffffffff
jne 0x42851e
movzx eax, byte [ebp - 0x403]
cmp eax, 0xfffffffe
jne 0x42851e
inc bl
jmp 0x428537
xor eax, eax
test ecx, ecx
je 0x428537
test bl, bl
jne 0x428537
cmp byte [ebp + eax - 0x404], bl
sete bl
inc eax
cmp eax, ecx
jb 0x428524
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0043e699
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x428f22
cmp byte [ebp + 0xc], 0
jne 0x428ed0
lea eax, [edi + 1]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x428f22
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x428f13
call fcn.0043f0b0
lea edi, [eax + 1]
pop ecx
cmp edi, 0x3fffffff
jle 0x428e9f
xor eax, eax
jmp 0x428eb3
lea eax, [edi + edi]
call fcn.00441a10
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004254b5
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0042b1af
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x428f24
lea eax, [edi + 3]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x428f22
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428f12
mov ecx, 0xfeff
mov eax, esi
cmp word [esi], cx
jne 0x428eb3
lea eax, [esi + 2]
jmp 0x428eb3
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e699
leave
ret 0xc
Function at 0x42935b
Capabilities:
Persist via run registry key

Disassembly:
push 0x44
mov eax, 0x464ae3
call fcn.0043fa79
mov edi, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call fcn.00427d9b
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
push ebx
mov ecx, edi
mov esi, eax
call fcn.00427d9b
push str.SYSTEMCurrentControlSetControlSession_ManagerFileRenameOperations
push ebx
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.00427d9b
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push ebx
mov ecx, edi
mov dword [ebp - 0x4c], eax
call fcn.00427cd5
push str.rename
push str._WindowsFolder_Wininit.ini
mov ecx, edi
mov dword [ebp - 0x48], eax
call fcn.00427a95
mov ebx, eax
push 0
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004033a0
and dword [ebp - 4], 0
cmp esi, dword [edi + 0x440]
jle 0x4293f2
push str.RunOnce
jmp 0x429435
mov eax, dword [ebp - 0x50]
cmp eax, dword [edi + 0x444]
jle 0x429404
push str.RunOnceEx
jmp 0x429435
mov eax, dword [ebp - 0x48]
cmp eax, dword [edi + 0x448]
jle 0x429416
push str.PendingFileRenameOperations
jmp 0x429435
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edi + 0x44c]
jle 0x429428
push str.FileRenameOperations
jmp 0x429435
cmp ebx, dword [edi + 0x450]
jle 0x429446
push str.Wininit.ini_rename
lea eax, [ebp - 0x40]
push str.Reboot_required____s_key_added
push eax
call fcn.00403190
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x42945f
xor ebx, ebx
push 0
inc ebx
push ebx
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.004253c9
jmp 0x429461
xor bl, bl
lea ecx, [ebp - 0x40]
call fcn.00401500
mov al, bl
call fcn.0043fa28
ret
Function at 0x42df62
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
je 0x42df80
mov ecx, esi
call fcn.0042ddb0
pop esi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea edi, [eax + 4]
mov dword [ebp - 0x9c], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
cmp byte [eax + 0x13], 0
je 0x42ea43
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42ea42
cmp dword [0x4866bc], esi
je 0x42ea42
mov eax, dword [0x4866c4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4866bc], esi
test al, 1
jne 0x42e928
or eax, 1
mov dword [0x4866c4], eax
call ebx
mov dword [0x4866c0], eax
call ebx
mov ecx, eax
sub ecx, dword [0x4866c0]
cmp byte [0x48454b], 0
mov dword [0x4866c0], eax
jne 0x42e949
cmp ecx, 0x64
jb 0x42ea41
push 0xa
pop eax
push 0x14
pop ecx
cmp esi, 0x100000
cmovg eax, ecx
imul esi, esi, 0xa
movzx eax, ax
mov cl, al
mov dword [ebp - 0xa0], eax
push 0
lea eax, [ebp - 0x95]
sar esi, cl
push eax
lea ecx, [ebp - 0x34]
mov byte [0x48454b], 0
mov dword [ebp - 0x34], 0x47686c
mov dword [ebp - 0xc], 0x46d060
call fcn.004033a0
lea eax, [ebp - 0x64]
push 0x758
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040a2c3
lea ebx, [eax + 4]
cmp dword [ebx + 0x14], 8
jb 0x42e9b0
mov ebx, dword [ebx]
push 0x14
xor eax, eax
pop ecx
cmp word [ebp - 0xa0], cx
mov ecx, edi
setne al
add eax, 0x652
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040a2c3
lea ecx, [eax + 4]
cmp dword [ecx + 0x14], 8
jb 0x42e9e5
mov ecx, dword [ecx]
push 0xa
mov eax, esi
pop esi
xor edx, edx
div esi
push ebx
push ecx
push edx
push eax
lea eax, [ebp - 0x34]
push str._01d._01d__s_s
push eax
call fcn.0040ac21
add esp, 0x18
lea ecx, [ebp - 0x94]
call fcn.00401500
lea ecx, [ebp - 0x64]
call fcn.00401500
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x9c]
push 0x134
push dword [eax + 0x26c]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
lea ecx, [ebp - 0x34]
call fcn.00401500
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0043e699
leave
ret 8

Function at 0x42f29c
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42f2b7
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4311e6
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4669d4
call fcn.0043fa79
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43125e
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004064e5
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412726
push 0x47bb28
lea eax, [ebp - 0x90]
push eax
call fcn.0043e6a8
mov eax, dword [ebp - 0x94]
call fcn.0043fa28
ret 8

Function at 0x43126c
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x4669d4
call fcn.0043fa79
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 4
pop ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
lea ecx, [ebp - 0x94]
push ecx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4312e5
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004064e5
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00412726
push 0x47bb28
lea eax, [ebp - 0x90]
push eax
call fcn.0043e6a8
mov eax, dword [ebp - 0x94]
call fcn.0043fa28
ret 8

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

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x431cc0
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret
Function at 0x431e94
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x466bbb
call fcn.0043fa79
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov dword [ebp - 0x154], ebx
mov byte [ebp - 0x114], bl
call fcn.0043e710
add esp, 0xc
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x14c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x431f83
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
mov ecx, str.ProgramFilesDir
push ebx
mov eax, str.CommonFilesDir
cmp edi, 1
cmovne eax, ecx
push eax
push dword [ebp - 0x14c]
mov dword [ebp - 0x150], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x47686c
mov ebx, 0x46d060
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00411bc6
push 0x46b7a8
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 1
call fcn.00408a83
lea ecx, [ebp - 0x144]
call fcn.0043223d
lea eax, [ebp - 0x144]
jmp 0x431fc8
push 0
lea eax, [ebp - 0x145]
push eax
lea eax, [ebp - 0x114]
mov edi, 0x47686c
mov ebx, 0x46d060
push eax
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x11c], ebx
call fcn.00411bc6
push 0x46b7a8
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00408a83
push 0
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], ebx
call fcn.004064e5
lea ecx, [ebp - 0x144]
call fcn.00401500
lea ecx, [ebp - 0x14c]
call fcn.0042b2b2
mov eax, esi
call fcn.0043fa28
ret
Function at 0x432b29
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x466d57
call fcn.0043fa79
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x47686c
mov dword [ebp - 0x48], 0x46d060
call fcn.004033a0
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.00434584
cmp dword [ebp + 0xc], 1
jne 0x432be1
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040763d
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406b81
inc bl
je 0x432bba
lea ecx, [ebp - 0x2c]
call fcn.00408a0f
push 0x479368
lea eax, [ebp - 0x2c]
push eax
call fcn.0043e6a8
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004065d0
mov byte [ebp - 4], 2
jmp 0x432c3a
cmp dword [ebp + 0xc], 2
jne 0x432c54
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040763d
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406b81
inc bl
jne 0x432ba4
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004065d0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00432f13
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401500
jmp 0x432c86
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040763d
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.00406b81
inc bl
jne 0x432ba4
push 0x46b7a8
lea ecx, [ebp - 0x70]
call fcn.00425101
push 0
push eax
mov ecx, esi
mov dword [esi], 0x47686c
mov dword [esi + 0x28], 0x46d060
call fcn.004064e5
lea ecx, [ebp - 0x70]
call fcn.00401500
mov eax, esi
call fcn.0043fa28
ret
Function at 0x432f7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x433001
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x432ffa
mov ecx, dword [edi]
test ecx, ecx
je 0x432ff5
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x432feb
cmp edx, 2
jbe 0x432fdd
cmp edx, 7
jne 0x432feb
test cl, 1
jne 0x432feb
shr ecx, 1
cmp ecx, 1
jb 0x432feb
cmp word [esi + ecx*2 - 2], bx
jne 0x432feb
cmp ecx, 1
jbe 0x432ffa
cmp word [esi + ecx*2 - 4], bx
jmp 0x432fe9
test cl, 1
jne 0x432feb
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x432ffa
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x432ffa
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.004064cd
int3
Function at 0x433a41
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x466ed6
call fcn.0043fa79
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x433a9f
lea ecx, [ebp + 8]
call fcn.0041f8c4
test al, al
je 0x433a9f
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
call fcn.00433c24
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401500
mov al, bl
jmp 0x433c1e
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
call fcn.0043459f
add esp, 0x30
cmp eax, 0xffffffff
je 0x433ae0
test byte [ebp + 0x38], 4
je 0x433ad2
test al, 0x10
je 0x433adc
test byte [ebp + 0x38], 8
je 0x433a90
test al, 0x10
je 0x433a90
mov bl, 1
jmp 0x433a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x433c14
cmp esi, 3
je 0x433c14
cmp esi, 5
jne 0x433bc8
lea ecx, [ebp - 0xcc]
call fcn.00432d98
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x47686c
mov dword [ecx + 0x28], 0x46d060
call fcn.004064e5
call fcn.004344d0
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x433b9f
lea ecx, [ebp - 0xd0]
call fcn.0041e784
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x433b6b
test byte [ebp - 0xcc], 0x10
je 0x433b7a
test byte [ebp + 0x38], 8
je 0x433b7c
test byte [ebp - 0xcc], 0x10
je 0x433b7c
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0041e784
lea ecx, [ebp - 0x70]
call fcn.00401500
lea ecx, [ebp - 0xa0]
call fcn.00401500
jmp 0x433a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0041e784
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401500
lea ecx, [ebp - 0xa0]
call fcn.00401500
test byte [ebp + 0x38], 0x20
je 0x433a90
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47686c
mov dword [ebp - 0x18], 0x46d060
call fcn.004064e5
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0041278a
push 0x47bb28
lea eax, [ebp - 0x90]
push eax
call fcn.0043e6a8
lea ecx, [ebp + 8]
call fcn.00401500
xor al, al
call fcn.0043fa28
ret
Function at 0x434f5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x471b24
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x434f92
push 0x471b40
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x434f92
call eax
jmp 0x435047
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xa
call esi
test eax, eax
jne 0x434fdc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 0x476700
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x435028
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push ebx
push str..DEFAULTControl_PanelInternational
push SysReAllocStringLen
mov dword [ebp - 0x18], ebx
call esi
mov esi, eax
test esi, esi
jne 0x435015
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push str.Locale
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
lea ecx, [ebp - 0x18]
call fcn.0042b2b2
test esi, esi
je 0x435028
mov esi, 0x409
jmp 0x43503a
push 0x10
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.004421fc
add esp, 0xc
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.0042b2b2
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e699
leave
ret
Function at 0x435443
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x484db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ebx
lea eax, [ebp - 0x118]
push eax
mov dword [esi], ebx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 1
jne 0x4354d5
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x4354c8
cmp eax, 0xa
je 0x4354a7
cmp eax, 0x5a
jne 0x43549a
mov bl, 1
mov dword [esi], 0x80
mov al, bl
jmp 0x43558d
call fcn.00435a46
test al, al
mov al, 1
je 0x4354bd
mov dword [esi], 0x80
jmp 0x43558d
mov dword [esi], 0x40
jmp 0x43558d
mov dword [esi], 0x10
mov al, 1
jmp 0x43558d
cmp dword [ebp - 0x108], 2
jne 0x43558b
mov eax, dword [ebp - 0x114]
sub eax, 4
je 0x435580
dec eax
je 0x43554b
dec eax
je 0x435512
sub eax, 4
jne 0x43550a
cmp dword [ebp - 0x110], ebx
jne 0x43558b
mov bl, 1
mov dword [esi], 0x10000000
jmp 0x4354a0
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x435524
mov dword [esi], 0x1000000
jmp 0x4354ce
cmp eax, 1
jne 0x435531
mov dword [esi], 0x2000000
jmp 0x4354ce
cmp eax, 2
jne 0x43553e
mov dword [esi], 0x4000000
jmp 0x4354ce
cmp eax, 3
jne 0x43558b
mov dword [esi], 0x8000000
jmp 0x4354ce
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x435560
mov dword [esi], 0x100000
jmp 0x4354ce
cmp eax, 1
jne 0x435570
mov dword [esi], 0x400000
jmp 0x4354ce
cmp eax, 2
jne 0x43558b
mov dword [esi], 0x800000
jmp 0x4354ce
mov dword [esi], 0x10000
jmp 0x4354ce
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043e699
leave
ret