joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421667
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0x438
mov eax, 0x4a039e
call fcn.00481105
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x4d001c]
mov ecx, 0x4d001c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
xor edi, edi
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4216d1
xor esi, esi
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, esi
call fcn.00481188
ret
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x421895
lea eax, [ebp - 0x434]
push eax
push 0x10
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x421895
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x434]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x421727
mov eax, dword [ebp - 0x438]
push dword [ebp - 0x434]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x21c]
push eax
push 0x4bb0b8
lea eax, [ebp - 0x428]
call fcn.00404705
pop ecx
pop ecx
push ebx
mov esi, 0x4bae2c
push esi
lea eax, [ebp - 0x428]
call fcn.0040206a
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x428]
call fcn.0040206a
push 4
push 0x4bf1a4
lea eax, [ebp - 0x428]
call fcn.0040206a
lea eax, [ebp - 0x42c]
push eax
push 0x4afe88
push ebx
push edi
push 0x4afec8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x421895
push 0x4bae00
lea eax, [ebp - 0x43c]
push eax
call fcn.004025df
lea eax, [ebp - 0x440]
push esi
push eax
lea edi, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00404174
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x444]
push ecx
mov edi, eax
mov byte [ebp - 4], 4
call fcn.00404125
add esp, 0x10
mov byte [ebp - 4], 5
mov eax, dword [eax]
mov ecx, dword [ebp - 0x42c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov eax, dword [ebp - 0x444]
add eax, 0xfffffff0
call fcn.00402a23
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x440]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp - 0x42c]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
lea edx, [ebp - 0x430]
push edx
push 0x4afee8
push eax
call dword [ecx]
test eax, eax
js 0x42186f
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x424]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x42184c
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x424]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x430]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x43c]
add eax, 0xfffffff0
call fcn.00402a23
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, ebx
jmp 0x4216a5
Function at 0x421b3b
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x224
mov eax, 0x49fb01
call fcn.00481105
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x220], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x4d001c]
mov ecx, 0x4d001c
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], 0x64
mov dword [ebp - 0x21c], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov eax, edi
mov byte [ebp - 4], 1
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x421b8f
sub eax, ecx
sar eax, 1
cmp eax, esi
jle 0x421bb9
mov eax, edi
call fcn.004025a6
mov ebx, eax
push edi
lea eax, [ebp - 0x224]
call fcn.00402530
jmp 0x421bc7
lea eax, [ebp + 0xc]
lea edi, [ebp - 0x224]
call fcn.00401dea
call fcn.00419c2c
test eax, eax
je 0x421bda
mov dword [ebp - 0x21c], 0x200
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x21c]
push esi
or eax, 0xf003f
push eax
push esi
push esi
push esi
push str.SoftwareWafCX_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421d1e
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push 0x4bae00
push dword [ebp - 0x228]
mov dword [ebp - 0x21c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x421c9e
push dword [ebp - 0x220]
mov dword [ebp - 0x21c], 1
call edi
add eax, eax
push eax
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
push esi
push 0x4bae00
push dword [ebp - 0x228]
call ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421cee
lea eax, [ebp - 0x218]
push eax
call edi
test eax, eax
je 0x421cee
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x421cf8
mov dword [ebp - 0x21c], 1
push dword [ebp - 0x220]
call edi
add eax, eax
push eax
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
push esi
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call ebx
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402a23
call fcn.00481188
ret
Function at 0x421d49
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x224
mov eax, 0x49e12c
call fcn.00481105
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x224], 0x64
call fcn.00402a45
xor esi, esi
mov dword [ebp - 4], edi
inc esi
mov dword [ebp - 0x228], esi
xor ebx, ebx
call fcn.00419c2c
test eax, eax
je 0x421d99
mov ebx, 0x200
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
or ebx, 0xf003f
push ebx
push edi
push edi
push edi
push str.SoftwareWafCX_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x421e2d
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
push edi
push 0x4bae00
push dword [ebp - 0x21c]
mov dword [ebp - 0x22c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x421e2d
push dword [ebp - 0x224]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0x220]
call fcn.0040206a
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
call fcn.00481188
ret
Function at 0x421e45
Capabilities:
Query environment variable

Disassembly:
push 0x21c
mov eax, 0x4a02db
call fcn.00481105
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004805d0
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x218]
push eax
push str.PROCESSOR_ARCHITEW6432
call esi
test eax, eax
push edi
lea eax, [ebp - 0x218]
push eax
je 0x421f5e
push str.ProgramFiles_x86_
call esi
mov esi, eax
test esi, esi
je 0x421f3c
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421ebf
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 0x21a]
jne 0x421ee5
xor ecx, ecx
mov word [ebp + eax*2 - 0x21a], cx
push 0x4bae2c
lea eax, [ebp - 0x228]
push eax
call fcn.004025df
and dword [ebp - 4], 0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x224]
push ecx
mov edi, eax
call fcn.00409fd1
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 1
call fcn.00401dea
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.00402a23
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.00402a23
mov edi, dword [ebp - 0x21c]
mov eax, ebx
call fcn.00401dea
push 0x4bae00
push str.__x86_
push edi
call fcn.00403ed9
jmp 0x421ff4
push str.ProgramFiles
call esi
mov esi, eax
test esi, esi
je 0x421ff4
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421f78
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 0x21a]
jne 0x421f9e
xor ecx, ecx
mov word [ebp + eax*2 - 0x21a], cx
push 0x4bae2c
lea eax, [ebp - 0x220]
push eax
call fcn.004025df
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov edi, eax
mov dword [ebp - 4], 2
call fcn.00409fd1
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 3
call fcn.00401dea
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
call fcn.00402a23
xor eax, eax
cmp eax, esi
sbb eax, eax
neg eax
call fcn.00481188
ret
Function at 0x422002
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xc38
mov eax, 0x49f69f
call fcn.00481105
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402162
add eax, 0x10
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0xc20]
push str.Software_
push eax
lea edi, [ebp - 0xc24]
mov byte [ebp - 4], 1
call fcn.00409fd1
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ecx
pop ecx
lea eax, [ebp - 0xc30]
push eax
push 9
push esi
push dword [ebp - 0xc20]
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
test eax, eax
je 0x42208a
mov eax, dword [ebp - 0xc20]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp - 0xc24]
add eax, 0xfffffff0
call fcn.00402a23
jmp 0x422255
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0xc44], esi
mov dword [ebp - 0xc34], esi
call fcn.004805d0
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
jmp 0x422201
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc20]
lea eax, [ebp - 0xc18]
push str._ls_ls
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0xc38]
push eax
push 9
push esi
lea eax, [ebp - 0xc18]
push eax
push ebx
call edi
lea eax, [ebp - 0xc28]
push eax
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0xc1c]
push eax
push esi
push 0x4bf260
push dword [ebp - 0xc38]
mov dword [ebp - 0xc1c], esi
mov dword [ebp - 0xc28], 4
mov dword [ebp - 0xc3c], esi
mov dword [ebp - 0xc40], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422167
cmp dword [ebp - 0xc1c], 4
jne 0x422167
mov eax, dword [ebp - 0xc3c]
cmp eax, dword [ebp + 8]
jne 0x422167
mov dword [ebp - 0xc40], 1
xor eax, eax
push 0x1fc
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push esi
push eax
call fcn.004805d0
add esp, 0xc
mov dword [ebp - 0xc28], 0x1fe
mov dword [ebp - 0xc1c], esi
cmp dword [ebp - 0xc40], esi
je 0x4221da
lea eax, [ebp - 0xc28]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0xc1c]
push eax
push esi
push str.InstallInfo
push dword [ebp - 0xc38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4221da
inc eax
cmp dword [ebp - 0xc1c], eax
jne 0x4221da
cmp word [ebp - 0x418], si
jne 0x422221
push esi
push esi
xor eax, eax
inc dword [ebp - 0xc34]
push esi
mov word [ebp - 0x218], ax
push esi
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc34]
push dword [ebp - 0xc30]
mov dword [ebp - 0xc2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4220cc
jmp 0x422227
mov dword [ebp - 0xc44], eax
push dword [ebp - 0xc30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc20]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp - 0xc24]
add eax, 0xfffffff0
call fcn.00402a23
mov esi, dword [ebp - 0xc44]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, esi
call fcn.00481188
ret
Function at 0x422268
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
xor esi, esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
xor ebx, ebx
call fcn.004805d0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
add esp, 0xc
sub ecx, eax
movzx edx, word [eax]
mov word [ecx + eax], dx
add eax, 2
cmp dx, si
jne 0x4222ab
xor eax, eax
lea edi, [ebp - 0x220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
pop edi
push edi
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004805d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
push esi
push esi
mov dword [ebp - 0x264], edi
push 0x8000000
xor edi, edi
inc edi
push edi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
mov dword [ebp - 0x238], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x422390
push 0x4e20
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422342
push 0xffffffffffffffff
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or dword [ebp - 0x210], 0xffffffff
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x42236a
cmp dword [ebp - 0x210], esi
jne 0x42236a
mov ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x21c], esi
je 0x422380
push dword [ebp - 0x21c]
call edi
cmp dword [ebp - 0x220], esi
je 0x422390
push dword [ebp - 0x220]
call edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402a23
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0047a0fb
leave
ret
Function at 0x4223ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 0x21c]
push ecx
xor eax, eax
xor ebx, ebx
inc ebx
push ebx
push eax
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], eax
call esi
test eax, eax
jne 0x42240b
push dword [ebp - 0x21c]
mov dword [ebp - 0x214], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x224]
push eax
push ebx
push 0
push str.SOFTWAREMicrosoft.NETFrameworkpolicy_v2.0.50727
push edi
call esi
test eax, eax
jne 0x422433
push dword [ebp - 0x224]
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x214], eax
jne 0x422449
cmp dword [ebp - 0x210], eax
je 0x4224da
lea ecx, [ebp - 0x214]
push ecx
push ebx
push eax
push str.SOFTWAREMicrosoft.NETFramework_
push edi
call esi
test eax, eax
jne 0x4224da
xor esi, esi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x220], 0x104
call fcn.004805d0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push str.InstallRoot
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4224ce
cmp dword [ebp - 0x210], ebx
jne 0x4224ce
cmp word [ebp - 0x20c], si
je 0x4224ce
mov dword [ebp - 0x218], ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a0fb
leave
ret
Function at 0x4224ef
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x1c
mov eax, 0x49dbd1
call fcn.0048109c
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov ecx, 0x4bae00
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call fcn.00404382
test eax, eax
je 0x4225eb
call fcn.004223ac
test eax, eax
je 0x4225eb
lea eax, [ebp - 0x10]
push eax
push 3
push ebx
push str.SOFTWAREMicrosoft.NETFramework_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x422588
push 4
pop edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
mov esi, str.NoGuiFromShim
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x14], ebx
jne 0x422588
push dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
push esi
push dword [ebp - 0x10]
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.00402162
add eax, 0x10
mov dword [edi], eax
call fcn.00422268
pop ecx
cmp eax, ebx
je 0x4225c5
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], ebx
jne 0x4225eb
cmp dword [ebp - 0x14], ebx
jne 0x4225e2
push str.NoGuiFromShim
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, dword [ebp - 0x1c]
call fcn.00481174
ret
Function at 0x422fb7
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x42312f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4d04c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x423178
push 0x4bae2c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004025df
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0047a0fb
leave
ret

Function at 0x423193
Capabilities:
Set registry value

Disassembly:
push 0xf4
mov eax, 0x49ea68
call fcn.00481105
mov eax, dword [ebp + 8]
mov dword [ebp - 0xfc], eax
xor esi, esi
xor eax, eax
mov dword [ebp - 4], esi
push 0xc6
mov word [ebp - 0xd8], ax
lea eax, [ebp - 0xd6]
push esi
push eax
call fcn.004805d0
add esp, 0xc
xor eax, eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers_
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xe0], 7
mov dword [ebp - 0xe4], esi
mov word [ebp - 0xf4], ax
call fcn.0040299a
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x423209
lea eax, [ebp + 0xc]
push 0x64
push eax
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.0047a915
mov eax, dword [ebp - 0xf4]
add esp, 0x10
cmp dword [ebp - 0xe0], 8
jae 0x423232
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0xf8]
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 0x423295
lea eax, [ebp - 0xd8]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xd8]
push eax
push 1
push esi
push dword [ebp - 0xfc]
push dword [ebp - 0xf8]
call edi
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xe0], 8
mov eax, dword [ebp - 0xf4]
jae 0x4232aa
lea eax, [ebp - 0xf4]
lea ecx, [ebp - 0x100]
push ecx
lea ecx, [ebp - 0xf8]
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 0x423301
lea eax, [ebp - 0xd8]
push eax
call ebx
add eax, eax
push eax
lea eax, [ebp - 0xd8]
push eax
push 1
push esi
push dword [ebp - 0xfc]
push dword [ebp - 0xf8]
call edi
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 1
lea ecx, [ebp - 0xf4]
call fcn.00402a5a
push esi
push 1
lea ecx, [ebp + 0xc]
call fcn.00402a5a
call fcn.00481188
ret
Function at 0x423320
Capabilities:
Delete file

Disassembly:
push 0x40
mov eax, 0x49e0e5
call fcn.00481105
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
mov byte [ebp - 0x49], 0
jbe 0x4233f9
push eax
lea esi, [ebp - 0x2c]
call fcn.00402109
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push 0xffffffffffffffff
dec eax
push eax
mov eax, esi
push eax
lea esi, [ebp - 0x48]
call fcn.00403de2
mov esi, 0x4bae2c
push esi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00404839
push 0
test eax, eax
push 1
lea ecx, [ebp - 0x48]
setne bl
mov byte [ebp - 4], 0
call fcn.00402a5a
test bl, bl
je 0x42338f
push esi
lea ecx, [ebp - 0x2c]
call fcn.004041e9
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x42339b
lea eax, [ebp - 0x2c]
push 2
push eax
call fcn.0047d25c
pop ecx
pop ecx
push str.wae.tmp
lea ecx, [ebp - 0x2c]
call fcn.004041e9
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4233be
lea eax, [ebp - 0x2c]
push 0x4bcdc0
push eax
call fcn.0047c2e8
pop ecx
pop ecx
test eax, eax
je 0x4233ed
push eax
mov byte [ebp - 0x49], 1
call fcn.0047c971
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
pop ecx
jae 0x4233e6
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5a
mov al, byte [ebp - 0x49]
call fcn.00481188
ret