joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41caf3
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x448
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x448], eax
push 0x18
mov eax, 0x5046c3
call fcn.004d9fe8
xor esi, esi
mov dword [ebp - 0x20], esi
xor eax, eax
push 0x40e
mov word [ebp + 0x38], ax
xor ebx, ebx
lea eax, [ebp + 0x3a]
mov edi, ecx
push esi
inc ebx
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
call fcn.004d9310
add esp, 0xc
push 7
pop eax
xor ecx, ecx
mov dword [ebp - 0x1c], 0x208
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], esi
mov word [edi], cx
mov dword [ebp - 4], esi
mov dword [ebp + 0x30], eax
xor eax, eax
push str.Applicationsopera.exe_shellopencommand
lea ecx, [ebp + 0x1c]
mov dword [ebp - 0x20], ebx
mov dword [ebp + 0x2c], esi
mov word [ebp + 0x1c], ax
call fcn.00404441
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x30], 8
mov eax, dword [ebp + 0x1c]
jae 0x41cb88
lea eax, [ebp + 0x1c]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20019
push esi
push esi
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41cc32
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x535144
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41cc32
lea eax, [ebp + 0x38]
push eax
mov ecx, edi
call fcn.00404441
push ebx
push 0x535148
push edi
call fcn.0040f568
cmp eax, 0xffffffff
je 0x41cc0f
dec eax
push eax
push ebx
push edi
lea esi, [ebp]
call fcn.0040f593
mov esi, eax
mov byte [ebp - 4], 2
call fcn.004035c0
push 0
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.0040476f
xor esi, esi
cmp dword [edi + 0x14], 8
jb 0x41cc19
mov eax, dword [edi]
jmp 0x41cc1b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41cc32
push 0x53514c
mov ecx, edi
call fcn.00404441
cmp dword [ebp - 0x10], esi
je 0x41cc43
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], esi
push esi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0040476f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x448]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x44c
leave
ret
Function at 0x4239f1
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x5052cb
call fcn.004da051
sub esp, 0x1c
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00404734
lea eax, [ebp - 0x2c]
push eax
call fcn.00429863
add esp, 0x20
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x423a2b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004042b1
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040476f
push 1
push edi
push edi
push dword [ebp - 0x30]
push 0x532ce0
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov eax, dword [ebp - 0x30]
setg bl
add eax, 0xfffffff0
call fcn.0040436d
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040476f
mov al, bl
call fcn.004da0d4
ret

Function at 0x4246d6
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x10c
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x10c], eax
push 0x18
mov eax, 0x50453a
call fcn.004d9fe8
mov eax, dword [ebp + 0x11c]
push 0x530f58
push dword [ebp + 0x118]
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
call fcn.004d8b2a
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x424750
cmp edi, ebx
je 0x424749
lea ecx, [ebp]
call fcn.00425032
mov esi, eax
mov dword [ebp - 4], ebx
call fcn.004035c0
push ebx
push 1
lea ecx, [ebp]
call fcn.0040476f
xor al, al
jmp 0x42484b
cmp esi, ebx
je 0x42475b
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
jmp 0x42475e
mov dword [ebp - 0x18], ebx
push 9
xor eax, eax
pop ecx
mov word [ebp + 0xe4], ax
lea edi, [ebp + 0xe6]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push ebx
stosw word es:[edi], ax
call fcn.004044a0
push 2
push ebx
push dword [ebp - 0x10]
call fcn.004dc429
push dword [ebp - 0x10]
call fcn.004dce0e
push ebx
push ebx
push dword [ebp - 0x10]
mov esi, eax
call fcn.004dc429
add esp, 0x1c
xor edi, edi
cmp esi, ebx
je 0x42480a
push esi
call fcn.004d4af2
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push 1
push esi
push eax
call fcn.004dc382
push esi
push dword [ebp - 0x14]
xor ebx, ebx
call fcn.00424deb
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4af2
push esi
push dword [ebp - 0x14]
mov ebx, eax
call fcn.00424deb
mov ecx, dword [ebp - 0x1c]
add esp, 0x28
push edi
push ebx
call fcn.004043d3
push ebx
call fcn.004d69c1
push dword [ebp - 0x14]
call fcn.004d69c1
pop ecx
pop ecx
xor ebx, ebx
push edi
push esi
lea eax, [ebp + 0xe4]
push eax
lea eax, [ebp + 0x1c]
push str._s_d_bytes_to__d_wide_chars
push eax
call fcn.004dd582
mov ecx, dword [ebp - 0x20]
add esp, 0x14
cmp ecx, ebx
je 0x424834
lea eax, [ebp + 0x1c]
push eax
call fcn.00404441
push dword [ebp - 0x10]
call fcn.004d811a
mov eax, dword [ebp - 0x24]
pop ecx
cmp eax, ebx
je 0x424849
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10c]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x110
leave
ret
Function at 0x42486e
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x128
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x128], eax
push 0x18
mov eax, 0x50450a
call fcn.004d9fe8
mov eax, dword [ebp + 0x138]
push 0x530f98
push dword [ebp + 0x134]
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edi
mov bl, 1
call fcn.004d8b2a
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4248ea
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x4248e3
lea ecx, [ebp]
call fcn.00425032
and dword [ebp - 4], 0
mov esi, eax
call fcn.004035c0
push 0
push 1
lea ecx, [ebp]
call fcn.0040476f
xor al, al
jmp 0x4249e3
test edi, edi
je 0x4248f5
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
jmp 0x4248f9
and dword [ebp - 0x14], 0
xor eax, eax
push 9
mov word [ebp + 0x100], ax
pop ecx
lea edi, [ebp + 0x102]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x424974
cmp dword [esi + 0x14], 8
jb 0x424925
mov eax, dword [esi]
jmp 0x424927
mov eax, esi
push edi
push edi
call fcn.00424cf1
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004d4af2
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], eax
jb 0x424947
mov esi, dword [esi]
push edi
push dword [ebp - 0x10]
mov eax, esi
call fcn.00424cf1
push dword [ebp - 0x18]
push 1
push edi
push dword [ebp - 0x10]
call fcn.004d7af4
push dword [ebp - 0x10]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.004d69c1
add esp, 0x1c
push edi
lea eax, [ebp + 0x100]
push eax
push dword [ebp - 0x20]
lea eax, [ebp + 0x38]
push str._d_wide_chars_to__s_d_bytes
push eax
call fcn.004dd582
mov edi, dword [ebp - 0x1c]
add esp, 0x14
test edi, edi
je 0x4249a2
lea eax, [ebp + 0x38]
push eax
mov ecx, edi
call fcn.00404441
test bl, bl
jne 0x4249cc
test edi, edi
je 0x4249cc
lea ecx, [ebp + 0x1c]
call fcn.00425032
mov esi, eax
mov dword [ebp - 4], 1
call fcn.004035c0
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040476f
push dword [ebp - 0x18]
call fcn.004d811a
mov eax, dword [ebp - 0x24]
pop ecx
test eax, eax
je 0x4249e1
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x12c
leave
ret
Function at 0x427cdd
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x505772
call fcn.004d9fe8
xor ebx, ebx
cmp dword [0x550c98], ebx
jne 0x427cfe
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.004dc048
pop ecx
mov esi, 0x550c38
cmp dword [0x550ca4], ebx
jne 0x427d1a
push 0xffffffffffffffff
push ebx
push 0x550c88
mov ecx, esi
call fcn.00402155
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x550c64
mov byte [ebp - 0x14], bl
call fcn.004282c9
push ebx
push ebx
push esi
push 0x42757e
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.004d8e98
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x427d56
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x550c54
call fcn.004283cb
cmp byte [ebp - 0x14], bl
je 0x427d66
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.004da0c0
ret

Function at 0x428bb6
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x5030aa
call fcn.004da051
xor edi, edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x21c], ebx
call fcn.004d9310
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x2e
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x428c66
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00404441
push 0x530890
mov ecx, esi
call fcn.00411f0c
cmp dword [ebp + 0x18], edi
je 0x428c4e
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x428c4b
lea eax, [ebp + 8]
push eax
jmp 0x428c53
push 0x530894
mov ecx, esi
call fcn.00411f0c
push 0x5308ac
mov ecx, esi
call fcn.00411f0c
cmp dword [esi + 0x14], 8
jb 0x428c70
mov eax, dword [esi]
jmp 0x428c72
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.0040476f
mov eax, esi
call fcn.004da0d4
ret
Function at 0x428eb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x18
mov eax, 0x50417c
call fcn.004d9fe8
mov eax, dword [ebp + 0x128]
mov dword [ebp - 0x18], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x10], edi
push 0xc6
mov word [ebp + 0x54], ax
lea eax, [ebp + 0x56]
push edi
push eax
call fcn.004d9310
add esp, 0xc
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x20], edi
xor esi, esi
call fcn.00428e79
test al, al
je 0x428f1a
mov esi, 0x200
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
or esi, 0x20019
push esi
push edi
push edi
push edi
push 0x530928
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x428f6c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push str.Version
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 7
pop esi
mov word [ebp + 0x38], ax
lea eax, [ebp + 0x54]
push eax
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x4c], esi
mov dword [ebp + 0x48], edi
call fcn.00404441
mov dword [ebp - 4], edi
push 2
pop ebx
cmp dword [ebp + 0x48], edi
jne 0x428fbb
xor eax, eax
push 0x530924
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x2c], edi
mov word [ebp + 0x1c], ax
call fcn.00404441
mov byte [ebp - 4], 1
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], 1
jmp 0x428fcd
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp]
call fcn.00404734
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov esi, eax
mov eax, dword [ebp - 0x18]
call fcn.0040317b
or dword [ebp - 0x10], 4
test byte [ebp - 0x10], bl
je 0x428fef
and dword [ebp - 0x10], 0xfffffffd
push edi
push 1
lea ecx, [ebp]
call fcn.0040476f
test byte [ebp - 0x10], 1
je 0x429000
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040476f
push edi
push 1
lea ecx, [ebp + 0x38]
call fcn.0040476f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x120
leave
ret
Function at 0x4299d2
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x6c
mov eax, 0x5040a2
call fcn.004da051
push 9
pop ecx
xor ebx, ebx
mov dword [ebp - 0x74], ebx
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
rep stosd dword es:[edi], eax
push 0xf0000000
xor edi, edi
inc edi
push edi
push ebx
push ebx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
je 0x429a23
push 0x5502f8
push 0x10
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea ecx, [ebp - 0x38]
call fcn.0042f585
push edi
push 0x530b20
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.004023bf
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.00401e52
push 0x530b1c
push esi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00401e52
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00402476
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.00402476
mov eax, esi
call fcn.004da0d4
ret

Function at 0x429a89
Capabilities:
Accept command line arguments

Disassembly:
push 0x70
mov eax, 0x50406d
call fcn.004da051
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x6c], ebx
jb 0x429aa8
mov eax, dword [eax]
lea ecx, [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x6c], ebx
jle 0x429bb2
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
call fcn.00404466
mov dword [ebp - 4], ebx
xor eax, eax
push 0x530b24
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.00404441
push 1
push 0x530b28
xor eax, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040f5c1
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x429b6f
mov ecx, dword [ebp - 0x1c]
sub ecx, eax
dec ecx
push ecx
inc eax
push eax
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x64]
call fcn.0040f593
mov esi, eax
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004035c0
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040476f
push dword [ebp - 0x74]
lea eax, [ebp - 0x2c]
push ebx
push eax
lea esi, [ebp - 0x64]
call fcn.0040f593
mov esi, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004035c0
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040476f
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
push eax
call fcn.00413ceb
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.004046a4
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040476f
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040476f
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x6c]
jl 0x429ac2
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
call fcn.004da0d4
ret
Function at 0x429bc3
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x20
mov eax, 0x504025
call fcn.004d9fe8
mov eax, dword [ebp + 0x230]
mov dword [ebp - 0x1c], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], esi
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.004d9310
add esp, 0xc
xor eax, eax
push 0x530b30
lea ecx, [ebp]
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], esi
mov word [ebp], ax
call fcn.00404441
mov dword [ebp - 4], esi
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x28], 0x200
mov dword [ebp - 0x10], esi
push dword [ebp - 0x20]
lea eax, [ebp + 0x1c]
push esi
push eax
call fcn.004244ea
mov eax, dword [ebp]
add esp, 0xc
cmp dword [ebp + 0x14], 8
jae 0x429c67
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ebp + ecx*4 - 0x2c]
push esi
or ecx, 0x20019
push ecx
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x429cd3
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.InstallName
push dword [ebp - 0x14]
mov dword [ebp - 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
cmp edi, esi
jne 0x429cd3
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429ce0
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x429c4b
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
call fcn.00404466
push esi
push 1
lea ecx, [ebp]
call fcn.0040476f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x228
leave
ret

Function at 0x429d1d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00429bc3
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
pop ecx
jae 0x429d43
lea eax, [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
test eax, eax
push 1
lea ecx, [ebp - 0x20]
setne bl
call fcn.0040476f
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004d5e0b
leave
ret
Function at 0x429d6b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x14], 8
jb 0x429d77
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429db2
cmp dword [esi + 0x14], 8
jb 0x429d9c
mov eax, dword [esi]
jmp 0x429d9e
mov eax, esi
push 4
lea ecx, [ebp + 8]
push ecx
push 4
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x429dbd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
cmp dword [eax + 0x14], 8
push esi
mov esi, ecx
jb 0x429dd2
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429e16
cmp dword [esi + 0x14], 8
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jb 0x429dfe
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x429e4f
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x503ff8
call fcn.004da051
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x38], eax
call edi
xor ecx, ecx
push 2
pop edx
mov esi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4af2
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x429f02
push esi
push ebx
push eax
call fcn.004244ea
add esp, 0xc
push dword [ebp - 0x30]
push esi
call edi
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp eax, ebx
jle 0x429ef9
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404466
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x429ec9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x429ee2
mov edi, dword [ebp - 0x38]
lea ebx, [ebp - 0x2c]
call fcn.004034ea
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040476f
add esi, 8
dec dword [ebp - 0x34]
jne 0x429eb1
push dword [ebp - 0x30]
call fcn.004d69c1
pop ecx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
push 0x1c
cdq
pop ecx
idiv ecx
call fcn.004da0d4
ret
Function at 0x42ae89
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x50667f
call fcn.004d9fe8
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
call fcn.004d9310
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp]
push eax
push str.PROCESSOR_ARCHITEW6432
call esi
test eax, eax
push edi
lea eax, [ebp]
push eax
je 0x42af89
push str.ProgramFiles_x86_
call esi
mov esi, eax
test esi, esi
je 0x42af6d
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42af05
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42af25
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x530144
lea eax, [ebp - 0x1c]
push eax
call fcn.004042b1
and dword [ebp - 4], 0
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov edi, eax
call fcn.0041cde5
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 1
call fcn.00403197
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040436d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040436d
mov edi, dword [ebp - 0x10]
mov eax, ebx
call fcn.00403197
push 0x530148
push str.__x86_
push edi
call fcn.004031d8
jmp 0x42b003
push str.ProgramFiles
call esi
mov esi, eax
test esi, esi
je 0x42b003
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42af9c
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42afbc
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x530178
lea eax, [ebp - 0x14]
push eax
call fcn.004042b1
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
mov dword [ebp - 4], 2
call fcn.0041cde5
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 3
call fcn.00403197
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040436d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040436d
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x20c
leave
ret