joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428f29
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, 0x5041e5
call fcn.004d9fb6
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.004d92e0
add esp, 0xc
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x20], edi
xor esi, esi
call fcn.00428eec
test al, al
je 0x428f8d
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 0x530958
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x428fdf
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.00404501
mov dword [ebp - 4], edi
push 2
pop ebx
cmp dword [ebp + 0x48], edi
jne 0x42902e
xor eax, eax
push 0x530954
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x2c], edi
mov word [ebp + 0x1c], ax
call fcn.00404501
mov byte [ebp - 4], 1
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], 1
jmp 0x429040
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp]
call fcn.004047f4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov esi, eax
mov eax, dword [ebp - 0x18]
call fcn.00403275
or dword [ebp - 0x10], 4
test byte [ebp - 0x10], bl
je 0x429062
and dword [ebp - 0x10], 0xfffffffd
push edi
push 1
lea ecx, [ebp]
call fcn.0040482f
test byte [ebp - 0x10], 1
je 0x429073
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040482f
push edi
push 1
lea ecx, [ebp + 0x38]
call fcn.0040482f
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.004d5ddb
add ebp, 0x120
leave
ret
Function at 0x429a45
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x6c
mov eax, 0x50410b
call fcn.004da01f
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 0x429a96
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.0042f4f2
push edi
push 0x530b50
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.004024af
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.00401f41
push 0x530b4c
push esi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00401f41
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.00402566
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.00402566
mov eax, esi
call fcn.004da0a2
ret

Function at 0x429afc
Capabilities:
Accept command line arguments

Disassembly:
push 0x70
mov eax, 0x5040d6
call fcn.004da01f
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x6c], ebx
jb 0x429b1b
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 0x429c25
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
call fcn.00404526
mov dword [ebp - 4], ebx
xor eax, eax
push 0x530b54
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.00404501
push 1
push 0x530b58
xor eax, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040f74a
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x429be2
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.0040f71c
mov esi, eax
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004036ba
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040482f
push dword [ebp - 0x74]
lea eax, [ebp - 0x2c]
push ebx
push eax
lea esi, [ebp - 0x64]
call fcn.0040f71c
mov esi, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004036ba
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040482f
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
push eax
call fcn.00413daa
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.00404764
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.0040482f
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040482f
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x6c]
jl 0x429b35
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
call fcn.004da0a2
ret
Function at 0x429c36
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, 0x50408e
call fcn.004d9fb6
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.004d92e0
add esp, 0xc
xor eax, eax
push 0x530b60
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.00404501
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.0042451e
mov eax, dword [ebp]
add esp, 0xc
cmp dword [ebp + 0x14], 8
jae 0x429cda
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x429d46
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 0x429d46
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x429d53
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x429cbe
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
call fcn.00404526
push esi
push 1
lea ecx, [ebp]
call fcn.0040482f
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.004d5ddb
add ebp, 0x228
leave
ret

Function at 0x429d90
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.00429c36
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
pop ecx
jae 0x429db6
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.0040482f
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004d5ddb
leave
ret
Function at 0x429dde
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x14], 8
jb 0x429dea
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429e25
cmp dword [esi + 0x14], 8
jb 0x429e0f
mov eax, dword [esi]
jmp 0x429e11
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 0x429e30
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 0x429e45
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429e89
cmp dword [esi + 0x14], 8
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jb 0x429e71
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 0x429ec2
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x504061
call fcn.004da01f
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.004d4abd
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x429f75
push esi
push ebx
push eax
call fcn.0042451e
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 0x429f6c
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404526
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x429f3c
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x429f55
mov edi, dword [ebp - 0x38]
lea ebx, [ebp - 0x2c]
call fcn.004035e4
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040482f
add esi, 8
dec dword [ebp - 0x34]
jne 0x429f24
push dword [ebp - 0x30]
call fcn.004d6991
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.004da0a2
ret
Function at 0x42ae3f
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, 0x506648
call fcn.004d9fb6
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.004d92e0
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 0x42af3f
push str.ProgramFiles_x86_
call esi
mov esi, eax
test esi, esi
je 0x42af23
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42aebb
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42aedb
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x530174
lea eax, [ebp - 0x1c]
push eax
call fcn.00404371
and dword [ebp - 4], 0
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov edi, eax
call fcn.0041cde0
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 1
call fcn.00403291
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040442d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040442d
mov edi, dword [ebp - 0x10]
mov eax, ebx
call fcn.00403291
push 0x530178
push str.__x86_
push edi
call fcn.004032d2
jmp 0x42afb9
push str.ProgramFiles
call esi
mov esi, eax
test esi, esi
je 0x42afb9
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42af52
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42af72
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x5301a8
lea eax, [ebp - 0x14]
push eax
call fcn.00404371
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
mov dword [ebp - 4], 2
call fcn.0041cde0
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 3
call fcn.00403291
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040442d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040442d
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.004d5ddb
add ebp, 0x20c
leave
ret
Function at 0x42b206
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.004d92e0
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 0x42b24b
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.004d92e0
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 0x42b2fe
push 0x4e20
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42b2c6
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 0x42b2e4
cmp dword [ebp - 0x2c], ebx
jne 0x42b2e4
mov byte [ebp - 0x25], 1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], ebx
je 0x42b2f4
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x3c], ebx
je 0x42b2fe
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp + 0x1f0]
add eax, 0xfffffff0
call fcn.0040442d
mov ecx, dword [ebp + 0x1e4]
mov al, byte [ebp - 0x25]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5ddb
add ebp, 0x1e8
leave
ret
Function at 0x42b326
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, 0x80000002
push edi
mov byte [ebp - 0x62], bl
mov byte [ebp - 0x63], bl
mov byte [ebp - 0x61], bl
call esi
test eax, eax
jne 0x42b37a
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 0x42b39a
push dword [ebp - 0x70]
mov byte [ebp - 0x61], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x63], bl
jne 0x42b3a4
cmp byte [ebp - 0x61], bl
je 0x42b40f
lea eax, [ebp - 0x68]
push eax
push 1
push ebx
push 0x5303a8
push edi
call esi
test eax, eax
jne 0x42b40f
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.004d92e0
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 0x42b406
cmp dword [ebp - 0x6c], 1
jne 0x42b406
cmp word [ebp - 0x60], bx
je 0x42b406
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.004d5ddb
add ebp, 0x1ac
leave
ret
Function at 0x42b42a
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x1c
mov eax, 0x502a3b
call fcn.004d9fb6
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov ecx, 0x530264
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
call fcn.004036fe
test eax, eax
je 0x42b526
call fcn.0042b326
test al, al
je 0x42b526
lea eax, [ebp - 0x14]
push eax
push 3
push ebx
push str.SOFTWAREMicrosoft.NETFramework_
push 0x80000002
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x42b4c6
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 0x5302ac
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], ebx
jne 0x42b4c6
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push 0x530324
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.004043d1
add eax, 0x10
mov dword [edi], eax
call fcn.0042b206
pop ecx
cmp al, bl
je 0x42b500
mov byte [ebp - 0xd], 1
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], ebx
jne 0x42b526
cmp dword [ebp - 0x18], ebx
jne 0x42b51d
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.0040442d
mov al, byte [ebp - 0xd]
call fcn.004da08e
ret
Function at 0x42bd6f
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 0x42bd94
xor al, al
jmp 0x42be16
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.004d4abd
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42bdaa
xor al, al
jmp 0x42be14
push edi
push 0
push ebx
call fcn.004d92e0
add esp, 0xc
push ebx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42be0a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x530508
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42be0a
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 0x53050c
call fcn.004241b3
add esp, 0x14
mov byte [ebp - 1], 1
push ebx
call fcn.004d6991
mov al, byte [ebp - 1]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42bf85
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 0x42bfa6
xor bl, bl
mov eax, dword [esp + 8]
add eax, 0xfffffff0
call fcn.0040442d
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 0x42bf96

Function at 0x42c116
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.004d92e0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jle 0x42c177
cmp word [ebp + eax*2 - 0x7e], 0x5c
je 0x42c177
push 0x53052c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00404371
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.004d5ddb
add ebp, 0x190
leave
ret
Function at 0x42c198
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, 0x503e92
call fcn.004d9fb6
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.004d92e0
add esp, 0xc
xor eax, eax
push 0x530530
lea ecx, [ebp]
mov dword [ebp - 0x18], esi
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], esi
mov word [ebp], ax
call fcn.00404501
cmp dword [ebp + 0x108], 8
mov eax, dword [ebp + 0xf4]
jae 0x42c217
lea eax, [ebp + 0xf4]
push 0x64
push eax
lea eax, [ebp + 0x1c]
push 0x64
push eax
call fcn.004d6a5d
mov eax, dword [ebp]
add esp, 0x10
cmp dword [ebp + 0x14], 8
jae 0x42c234
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 0x80000002
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 0x42c282
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 0x42c28e
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 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42c2d0
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.0040482f
push esi
push 1
lea ecx, [ebp + 0xf4]
call fcn.0040482f
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.004d5ddb
add ebp, 0xe8
leave
ret

Function at 0x42c9f9
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.004d92e0
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.00404526
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004d5ddb
leave
ret