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

Disassembly:
push 0xffffffffffffffff
push 0x533059
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
xor ebp, ebp
push 0x206
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebp
push eax
mov dword [esp + 0x3c], ebp
call fcn.00507230
add esp, 0xc
mov dword [esp + 0x1c], 0x104
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
push 0x56b8b0
call fcn.00450dc2
mov dword [esp + 0x260], ebp
mov edi, ebp
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x2c], 0x200
push dword [esp + 0x1c]
lea eax, [esp + 0x50]
push ebp
push eax
call fcn.0046121b
add esp, 0xc
lea eax, [esp + 0x24]
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
cmovae ecx, dword [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + edi*4 + 0x30]
push ebp
or eax, 0x20019
push eax
push ebp
push ebp
push ebp
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4822c7
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], 1
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push 0x56b920
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
test esi, esi
jne 0x4822c7
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4822d1
inc edi
cmp edi, 2
jl 0x482235
lea eax, [esp + 0x4c]
mov ecx, ebx
push eax
call fcn.00450dc2
push ebp
push 1
lea ecx, [esp + 0x3c]
call fcn.004510f8
mov eax, ebx
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.005026a3
add esp, 0x250
ret

Function at 0x482313
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004821a1
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x1c]
push 0
push 1
setne bl
call fcn.004510f8
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.005026a3
mov esp, ebp
pop ebp
ret
Function at 0x482360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x48236c
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4823a6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x482392
mov eax, dword [eax]
push 4
lea ecx, [ebp + 0xc]
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]
mov esp, ebp
pop ebp
ret

Function at 0x4823b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
cmp dword [edx + 0x14], 8
jb 0x4823c5
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48240c
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4823f4
mov eax, dword [eax]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
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]
mov esp, ebp
pop ebp
ret

Function at 0x48244a
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x53308f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebx
xor ecx, ecx
mov edi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004eb6b1
mov esi, eax
pop ecx
test esi, esi
je 0x48251d
push edi
push 0
push esi
call fcn.0046121b
add esp, 0xc
push esi
push edi
call ebx
mov eax, edi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
test edi, edi
jle 0x482516
mov ebx, esi
push ebx
lea ecx, [esp + 0x18]
call fcn.00450dc2
and dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4824fe
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
call fcn.0044fbd9
or dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push 0
push 1
call fcn.004510f8
add ebx, 8
dec edi
jne 0x4824c9
push esi
call fcn.0050335f
pop ecx
mov eax, dword [ebp + 4]
sub eax, dword [ebp]
push 0x18
cdq
pop ecx
idiv ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005026a3
add esp, 0x28
ret
Function at 0x4832fc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x533289
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x238], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0x64
call fcn.00450752
push eax
lea ecx, [esp + 0x18]
call fcn.00450580
mov ecx, esi
mov byte [esp + 0x238], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x48336c
sub ecx, edx
sar ecx, 1
test ecx, ecx
lea ecx, [esp + 0x14]
jle 0x48338b
push esi
call fcn.00450bed
jmp 0x483398
lea eax, [esp + 0x240]
push eax
call fcn.0044f8a8
call fcn.004812d2
test al, al
mov ecx, 0x200
mov esi, ebx
cmovne esi, ecx
xor eax, eax
push 0x206
mov word [esp + 0x28], ax
lea eax, [esp + 0x2a]
push ebx
push eax
call fcn.00507230
add esp, 0xc
lea eax, [esp + 0x20]
or esi, 0xf003f
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x56be24
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x4834a2
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 1
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x56be54
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x48344b
push edi
mov dword [esp + 0x18], 1
call ebx
add eax, eax
push eax
push edi
push dword [esp + 0x1c]
push 0
push 0x56be50
push dword [esp + 0x2c]
call ebp
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push esi
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x483486
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
je 0x483486
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x48348e
mov dword [esp + 0x14], 1
push edi
call ebx
add eax, eax
push eax
push edi
push dword [esp + 0x1c]
push 0
push esi
push dword [esp + 0x2c]
call ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.00450cd2
mov ecx, dword [esp + 0x240]
lea ecx, [ecx - 0x10]
call fcn.00450cd2
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005026a3
add esp, 0x228
ret
Function at 0x4834eb
Capabilities:
Get number of processors
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5332d9
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], 0x64
call fcn.00450752
push eax
mov ecx, edi
call fcn.00450580
xor ebp, ebp
mov dword [esp + 0x240], ebx
inc ebp
mov dword [esp + 0x24], ebp
call fcn.004812d2
test al, al
mov ecx, 0x200
mov esi, ebx
cmovne esi, ecx
xor eax, eax
push 0x206
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push ebx
push eax
call fcn.00507230
add esp, 0xc
lea eax, [esp + 0x1c]
or esi, 0xf003f
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SoftwareWafCX_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4835eb
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
push 0x56be58
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4835eb
push dword [esp + 0x14]
lea eax, [esp + 0x30]
mov ecx, edi
push eax
call fcn.00471ee0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.005026a3
add esp, 0x230
ret
Function at 0x48361f
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x533333
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.00507230
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [esp + 0x30]
add esp, 0xc
mov ebp, 0x104
push ebp
push eax
push str.PROCESSOR_ARCHITEW6432
call esi
test eax, eax
lea eax, [esp + 0x24]
push ebp
push eax
je 0x48375e
push str.ProgramFiles_x86_
call esi
mov esi, eax
test esi, esi
je 0x48373b
lea ecx, [esp + 0x24]
xor ebp, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x4836b8
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [esp + ecx*2 + 0x22]
jne 0x4836e7
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x483759
xor eax, eax
mov word [esp + ecx + 0x24], ax
push 0x56bed4
lea ecx, [esp + 0x24]
call fcn.00450c0b
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x23c], ebp
lea ecx, [esp + 0x1c]
call fcn.00471a76
pop ecx
push eax
mov ecx, ebx
mov byte [esp + 0x23c], 1
call fcn.0044f8a8
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.00450cd2
or dword [esp + 0x238], 0xffffffff
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.00450cd2
push ebx
mov ecx, edi
call fcn.0044f8a8
push 0x56bed0
push str.__x86_
mov ecx, edi
call fcn.0044f8f3
jmp 0x4837f7
call fcn.00504963
push 0x56bed8
call esi
mov esi, eax
test esi, esi
je 0x4837f7
lea ecx, [esp + 0x24]
xor ebp, ebp
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bp
jne 0x483778
sub ecx, edx
sar ecx, 1
push 0x5c
pop eax
cmp ax, word [esp + ecx*2 + 0x22]
jne 0x4837a7
lea ecx, [ecx*2 - 2]
cmp ecx, 0x208
jae 0x483759
xor eax, eax
mov word [esp + ecx + 0x24], ax
push 0x56bf18
lea ecx, [esp + 0x20]
call fcn.00450c0b
push eax
lea edx, [esp + 0x28]
mov dword [esp + 0x23c], 2
lea ecx, [esp + 0x18]
call fcn.00471a76
pop ecx
push eax
mov ecx, ebx
mov byte [esp + 0x23c], 3
call fcn.0044f8a8
mov ecx, dword [esp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.00450cd2
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00450cd2
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005026a3
add esp, 0x228
ret
Function at 0x483e57
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push ebx
push eax
call fcn.00507230
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x214]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x483e98
xor eax, eax
lea edi, [ebp - 0x228]
stosd dword es:[edi], eax
push 0x44
pop esi
push esi
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x274]
push eax
call fcn.00507230
add esp, 0xc
mov dword [ebp - 0x274], esi
xor eax, eax
xor esi, esi
mov word [ebp - 0x244], ax
inc esi
lea eax, [ebp - 0x228]
mov dword [ebp - 0x248], esi
push eax
lea eax, [ebp - 0x274]
push eax
push ebx
push ebx
push 0x8000000
push esi
push ebx
push ebx
lea eax, [ebp - 0x214]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x483f82
push 0x4e20
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x483f2f
push 0xffffffffffffffff
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or dword [ebp - 0x218], 0xffffffff
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x483f5a
cmp dword [ebp - 0x218], 0
movzx ebx, bl
cmove ebx, esi
cmp dword [ebp - 0x224], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x483f71
push dword [ebp - 0x224]
call esi
cmp dword [ebp - 0x228], 0
je 0x483f82
push dword [ebp - 0x228]
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00450cd2
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005026a3
mov esp, ebp
pop ebp
ret
Function at 0x483fa3
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x224
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x24]
push eax
xor eax, eax
xor ebx, ebx
inc eax
mov byte [esp + 0x16], bl
push eax
push ebx
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0
mov ebp, reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x23], bl
push ebp
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x483ff7
push dword [esp + 0x24]
mov byte [esp + 0x16], 1
call esi
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0.50727
push ebp
call edi
test eax, eax
jne 0x484016
push dword [esp + 0x1c]
mov byte [esp + 0x17], 1
call esi
cmp byte [esp + 0x12], bl
jne 0x484022
cmp byte [esp + 0x13], bl
je 0x484097
lea eax, [esp + 0x14]
push eax
push 1
push ebx
push 0x56c150
push ebp
call edi
test eax, eax
jne 0x484097
push 0x206
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push ebx
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x104
call fcn.00507230
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push str.InstallRoot
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x484091
xor ecx, ecx
inc ecx
cmp dword [esp + 0x18], ecx
jne 0x484091
cmp word [esp + 0x28], ax
movzx ebx, bl
cmovne ebx, ecx
push dword [esp + 0x14]
call esi
mov ecx, dword [esp + 0x230]
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005026a3
add esp, 0x224
ret
Function at 0x4840b2
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x53343b
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [esp + 0x38]
push 0x56c06c
mov dword [esp + 0x34], ebx
call fcn.0044fc89
test eax, eax
je 0x4841db
call fcn.00483fa3
test al, al
je 0x4841db
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebx
push eax
push 3
push ebx
push str.SOFTWAREMicrosoft.NETFramework_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
mov ebp, eax
inc edi
test ebp, ebp
jne 0x484171
push 4
pop esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x56c194
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x18], ebx
jne 0x484171
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], edi
push eax
push esi
push ebx
push 0x56c134
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8003
call ebx
push ecx
mov ecx, dword [esp + 0x3c]
mov edi, eax
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00450c72
add eax, 0x10
mov dword [esi], eax
call fcn.00483e57
pop ecx
xor ecx, ecx
test al, al
push 1
pop eax
movzx ecx, cl
cmovne ecx, eax
push edi
mov dword [esp + 0x20], ecx
call ebx
test ebp, ebp
jne 0x4841d7
cmp dword [esp + 0x18], ebp
jne 0x4841cd
push str.NoGuiFromShim
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
call fcn.00450cd2
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x484a74
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [esp + 8], edx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 8], eax
push ecx
push eax
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x484a9e
xor al, al
jmp 0x484b20
push ebp
push esi
lea ebp, [edi + 1]
push ebp
call fcn.004eb6b1
mov esi, eax
pop ecx
test esi, esi
jne 0x484ab4
xor al, al
jmp 0x484b1e
push ebp
push ebx
push esi
call fcn.00507230
add esp, 0xc
push esi
push edi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x484b15
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x56c2c8
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x484b15
mov ecx, dword [esp + 0x10]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x56c2d4
push dword [esp + 0x28]
call fcn.0047c560
add esp, 0x18
mov bl, 1
push esi
call fcn.0050335f
pop ecx
mov al, bl
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x10
ret

Function at 0x484ca5
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 0x484cb8
xor bl, bl
jmp 0x484cca
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
shr ebx, 4
and bl, 1
mov ecx, dword [esp + 8]
add ecx, 0xfffffff0
call fcn.00450cd2
mov al, bl
pop ebx
ret

Function at 0x484dd8
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
xor eax, eax
push esi
push 0x206
push eax
mov word [ebp - 0x7c], ax
mov esi, ecx
lea eax, [ebp - 0x7a]
push eax
call fcn.00507230
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jle 0x484e3c
cmp word [ebp + eax*2 - 0x7e], 0x5c
je 0x484e3c
push 0x56c2ec
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
call fcn.00450c0b
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005026a3
lea esp, [ebp + 0x190]
pop ebp
ret
Function at 0x484e5f
Capabilities:
Set registry value

Disassembly:
push 0xec
mov eax, 0x5335f9
call fcn.005078a4
mov esi, ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0xc6
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd6]
push ebx
push eax
call fcn.00507230
add esp, 0xc
mov dword [ebp - 0xf8], ebx
lea ecx, [ebp - 0xf0]
push 0x56c3c8
call fcn.00450dc2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x64
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.00503431
add esp, 0x10
lea ecx, [ebp - 0xf8]
cmp dword [ebp - 0xdc], 8
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
push ecx
lea ecx, [ebp - 0xf4]
push ecx
push ebx
push 0x20106
push ebx
push ebx
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x484f39
lea eax, [ebp - 0xd8]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xd8]
push eax
push 1
push 0
push esi
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xdc], 8
lea ecx, [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0xf4]
push ecx
lea eax, [ebp - 0xf0]
cmovae eax, dword [ebp - 0xf0]
xor ecx, ecx
push ecx
push 0x20206
push ecx
push ecx
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x484fa6
lea eax, [ebp - 0xd8]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xd8]
push eax
push 1
push 0
push esi
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xf4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
lea ecx, [ebp - 0xf0]
call fcn.004510f8
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004510f8
call fcn.00507853
ret
Function at 0x4857ac
Capabilities:
Get common file path
Get explorer pid

Disassembly:
push 0xffffffffffffffff
push 0x5337d1
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x58e700]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
mov eax, dword [0x58e700]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebp
mov word [esi], ax
mov dword [esp + 0x234], ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetShellWindow]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x14]
push ebp
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4858b4
lea eax, [esp + 0x10]
push eax
push 0xb
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4858ad
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x4858a3
xor eax, eax
push 0x206
mov word [esp + 0x24], ax
lea eax, [esp + 0x26]
push ebp
push eax
call fcn.00507230
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x18]
push 0x1c
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x20]
push eax
call fcn.00450d9e
pop ecx
push eax
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.00450d31
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.005026a3
add esp, 0x228
ret