joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4290cc
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x6c
mov eax, 0x503b63
call fcn.004d9a2f
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 0x42911d
push 0x550098
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.0042edfc
push edi
push 0x530b30
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.004023d3
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.00401e66
push 0x530b2c
push esi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00401e66
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.0040248a
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.0040248a
mov eax, esi
call fcn.004d9ab2
ret

Function at 0x429183
Capabilities:
Accept command line arguments

Disassembly:
push 0x70
mov eax, 0x503b2e
call fcn.004d9a2f
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x6c], ebx
jb 0x4291a2
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 0x4292ac
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
call fcn.0040ed9b
mov dword [ebp - 4], ebx
xor eax, eax
push 0x530b34
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.0040ed76
push 1
push 0x530b38
xor eax, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ecb0
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x429269
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.0040ec3e
mov esi, eax
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040ec6c
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403de3
push dword [ebp - 0x74]
lea eax, [ebp - 0x2c]
push ebx
push eax
lea esi, [ebp - 0x64]
call fcn.0040ec3e
mov esi, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040ec6c
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403de3
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
push eax
call fcn.004133e2
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.004036e9
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403de3
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403de3
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x6c]
jl 0x4291bc
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
call fcn.004d9ab2
ret
Function at 0x4292bd
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, 0x503ae6
call fcn.004d99c6
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.004d8ce0
add esp, 0xc
xor eax, eax
push 0x530b40
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.0040ed76
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.00423b97
mov eax, dword [ebp]
add esp, 0xc
cmp dword [ebp + 0x14], 8
jae 0x429361
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 0x4293cd
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 0x4293cd
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4293da
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x429345
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
call fcn.0040ed9b
push esi
push 1
lea ecx, [ebp]
call fcn.00403de3
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.004d57db
add ebp, 0x228
leave
ret

Function at 0x429417
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.004292bd
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
pop ecx
jae 0x42943d
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.00403de3
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004d57db
leave
ret
Function at 0x429465
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x14], 8
jb 0x429471
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 0x4294ac
cmp dword [esi + 0x14], 8
jb 0x429496
mov eax, dword [esi]
jmp 0x429498
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 0x4294b7
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 0x4294cc
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 0x429510
cmp dword [esi + 0x14], 8
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jb 0x4294f8
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 0x429549
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x503ab9
call fcn.004d9a2f
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.004d44bd
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x4295fc
push esi
push ebx
push eax
call fcn.00423b97
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 0x4295f3
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040ed9b
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4295c3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4295dc
mov edi, dword [ebp - 0x38]
lea ebx, [ebp - 0x2c]
call fcn.00429c00
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403de3
add esi, 8
dec dword [ebp - 0x34]
jne 0x4295ab
push dword [ebp - 0x30]
call fcn.004d6406
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.004d9ab2
ret
Function at 0x42a702
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, 0x5053e6
call fcn.004d99c6
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.004d8ce0
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 0x42a802
push str.ProgramFiles_x86_
call esi
mov esi, eax
test esi, esi
je 0x42a7e6
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a77e
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42a79e
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x530154
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b4c
and dword [ebp - 4], 0
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov edi, eax
call fcn.0041c529
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 1
call fcn.00402e7b
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00403eb2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00403eb2
mov edi, dword [ebp - 0x10]
mov eax, ebx
call fcn.00402e7b
push 0x530158
push str.__x86_
push edi
call fcn.00402ebc
jmp 0x42a87c
push str.ProgramFiles
call esi
mov esi, eax
test esi, esi
je 0x42a87c
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a815
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42a835
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x530188
lea eax, [ebp - 0x14]
push eax
call fcn.00403b4c
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
mov dword [ebp - 4], 2
call fcn.0041c529
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 3
call fcn.00402e7b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403eb2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403eb2
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.004d57db
add ebp, 0x20c
leave
ret
Function at 0x42aac8
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x1e4], eax
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x22]
push ebx
push eax
mov byte [ebp - 0x25], bl
call fcn.004d8ce0
mov eax, dword [ebp + 0x1f0]
lea ecx, [ebp - 0x24]
add esp, 0xc
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp dx, bx
jne 0x42ab0d
push edi
xor eax, eax
lea edi, [ebp - 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop esi
push esi
stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004d8ce0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x50], cx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push ebx
push ebx
push 0x8000000
xor eax, eax
inc eax
push eax
push ebx
mov dword [ebp - 0x54], eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x42abc0
push 0x4e20
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42ab88
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42aba6
cmp dword [ebp - 0x2c], ebx
jne 0x42aba6
mov byte [ebp - 0x25], 1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], ebx
je 0x42abb6
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x3c], ebx
je 0x42abc0
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp + 0x1f0]
add eax, 0xfffffff0
call fcn.00403eb2
mov ecx, dword [ebp + 0x1e4]
mov al, byte [ebp - 0x25]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d57db
add ebp, 0x1e8
leave
ret
Function at 0x42abe8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x224
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x78]
push eax
xor ebx, ebx
push 1
push ebx
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov byte [ebp - 0x62], bl
mov byte [ebp - 0x63], bl
mov byte [ebp - 0x61], bl
call esi
test eax, eax
jne 0x42ac3c
push dword [ebp - 0x78]
mov byte [ebp - 0x63], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x70]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0.50727
push edi
call esi
test eax, eax
jne 0x42ac5c
push dword [ebp - 0x70]
mov byte [ebp - 0x61], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x63], bl
jne 0x42ac66
cmp byte [ebp - 0x61], bl
je 0x42acd1
lea eax, [ebp - 0x68]
push eax
push 1
push ebx
push 0x530388
push edi
call esi
test eax, eax
jne 0x42acd1
push 0x206
mov word [ebp - 0x60], ax
lea eax, [ebp - 0x5e]
push ebx
push eax
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], 0x104
call fcn.004d8ce0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push str.InstallRoot
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42acc8
cmp dword [ebp - 0x6c], 1
jne 0x42acc8
cmp word [ebp - 0x60], bx
je 0x42acc8
mov byte [ebp - 0x62], 1
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1a8]
mov al, byte [ebp - 0x62]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d57db
add ebp, 0x1ac
leave
ret
Function at 0x42acec
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x1c
mov eax, 0x502586
call fcn.004d99c6
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov ecx, 0x530244
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
call fcn.00403160
test eax, eax
je 0x42ade8
call fcn.0042abe8
test al, al
je 0x42ade8
lea eax, [ebp - 0x14]
push eax
push 3
push ebx
push str.SOFTWAREMicrosoft.NETFramework_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x42ad88
push 4
pop esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x53028c
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], ebx
jne 0x42ad88
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push 0x530304
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8003
call esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
call fcn.00403e56
add eax, 0x10
mov dword [edi], eax
call fcn.0042aac8
pop ecx
cmp al, bl
je 0x42adc2
mov byte [ebp - 0xd], 1
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], ebx
jne 0x42ade8
cmp dword [ebp - 0x18], ebx
jne 0x42addf
push str.NoGuiFromShim
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00403eb2
mov al, byte [ebp - 0xd]
call fcn.004d9a9e
ret
Function at 0x42b631
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x42b656
xor al, al
jmp 0x42b6d8
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.004d44bd
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42b66c
xor al, al
jmp 0x42b6d6
push edi
push 0
push ebx
call fcn.004d8ce0
add esp, 0xc
push ebx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42b6cc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x5304e8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42b6cc
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push 0x5304ec
call fcn.0042382e
add esp, 0x14
mov byte [ebp - 1], 1
push ebx
call fcn.004d6406
mov al, byte [ebp - 1]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42b868
xor bl, bl
mov eax, dword [esp + 8]
add eax, 0xfffffff0
call fcn.00403eb2
mov al, bl
pop ebx
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0x10
cmp al, 0x10
sete bl
jmp 0x42b858

Function at 0x42b9d8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.004d8ce0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jle 0x42ba39
cmp word [ebp + eax*2 - 0x7e], 0x5c
je 0x42ba39
push 0x53050c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00403b4c
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.004d57db
add ebp, 0x190
leave
ret
Function at 0x42ba5a
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0xe4
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push 0xc
mov eax, 0x5038b6
call fcn.004d99c6
mov eax, dword [ebp + 0xf0]
mov dword [ebp - 0x14], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push 0xc6
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.004d8ce0
add esp, 0xc
xor eax, eax
push 0x530510
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], esi
mov word [ebp], ax
call fcn.0040ed76
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x42bad9
lea eax, [ebp + 0xf4]
push 0x64
push eax
lea eax, [ebp + 0x1c]
push 0x64
push eax
call fcn.004d6391
mov eax, dword [ebp]
add esp, 0x10
cmp dword [ebp + 0x14], 8
jae 0x42baf6
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20106
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x42bb44
lea eax, [ebp + 0x1c]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42bb50
lea eax, [ebp]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push esi
push 0x20206
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42bb92
lea eax, [ebp + 0x1c]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp + 0x1c]
push eax
push 1
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp]
call fcn.00403de3
push esi
push 1
lea ecx, [ebp + 0xf4]
call fcn.00403de3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
call fcn.004d57db
add ebp, 0xe8
leave
ret

Function at 0x42c304
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004d8ce0
add esp, 0xc
push 0
push 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
call fcn.0040ed9b
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004d57db
leave
ret
Function at 0x42c36b
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x294
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x294], eax
push 0x1c
mov eax, 0x5037a7
call fcn.004d99c6
xor eax, eax
push 0x206
mov word [ebp + 0x8c], ax
xor edi, edi
lea eax, [ebp + 0x8e]
push edi
push eax
mov ebx, ecx
call fcn.004d8ce0
add esp, 0xc
push 0x104
lea eax, [ebp + 0x8c]
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42c542
lea eax, [ebp + 0x54]
push 0x5306fc
push eax
call fcn.00411a26
pop ecx
pop ecx
mov dword [ebp - 4], edi
xor eax, eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x8c]
push eax
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x30], 7
mov dword [ebp + 0x2c], edi
call fcn.0040ed76
xor ebx, ebx
lea eax, [ebp + 0x70]
push 0x530700
inc ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], bl
call fcn.00411a05
pop ecx
pop ecx
push edi
push ebx
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.00403de3
cmp dword [ebp + 0x84], 8
mov eax, dword [ebp + 0x70]
jae 0x42c438
lea eax, [ebp + 0x70]
push dword [ebp + 0x80]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040ecb0
cmp eax, 0xffffffff
je 0x42c469
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00403de3
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.00403de3
mov al, bl
jmp 0x42c544
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp - 0x28]
call fcn.0040ec3e
lea ecx, [ebp + 0x38]
push 0x530704
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00411a05
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00403de3
cmp dword [ebp + 0x4c], 8
mov eax, dword [ebp + 0x38]
jae 0x42c4a7
lea eax, [ebp + 0x38]
push dword [ebp + 0x48]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040ecb0
cmp eax, 0xffffffff
je 0x42c4c6
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403de3
jmp 0x42c44e
push 3
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040ec3e
lea ecx, [ebp]
push str.Program_Files__x86__
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00411a05
pop ecx
pop ecx
push edi
push ebx
mov ecx, esi
call fcn.00403de3
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x42c500
lea eax, [ebp]
push dword [ebp + 0x10]
lea ecx, [ebp + 0x54]
push eax
xor eax, eax
call fcn.0040ecb0
push edi
lea ecx, [ebp]
push ebx
cmp eax, 0xffffffff
je 0x42c51f
call fcn.00403de3
jmp 0x42c4ba
call fcn.00403de3
push edi
push ebx
lea ecx, [ebp + 0x38]
call fcn.00403de3
push edi
push ebx
lea ecx, [ebp + 0x70]
call fcn.00403de3
push edi
push ebx
lea ecx, [ebp + 0x54]
call fcn.00403de3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x294]
xor ecx, ebp
call fcn.004d57db
add ebp, 0x298
leave
ret