joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427463
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x505619
call fcn.004d9926
xor ebx, ebx
cmp dword [0x550a38], ebx
jne 0x427484
push str._simpleLog::Log__log_filename_is_empty_n
call fcn.004db923
pop ecx
mov esi, 0x5509d8
cmp dword [0x550a44], ebx
jne 0x4274a0
push 0xffffffffffffffff
push ebx
push 0x550a28
mov ecx, esi
call fcn.004020fc
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0x550a04
mov byte [ebp - 0x14], bl
call fcn.00427a54
push ebx
push ebx
push esi
push 0x426d0e
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.004d87d8
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x4274dc
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x5509f4
call fcn.00427b98
cmp byte [ebp - 0x14], bl
je 0x4274ec
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.004d99fe
ret

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

Disassembly:
push 0x214
mov eax, 0x503ca7
call fcn.004d998f
xor edi, edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x21c], ebx
call fcn.004d8c50
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x2e
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x428474
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040ed85
push 0x5308d0
mov ecx, esi
call fcn.004116a2
cmp dword [ebp + 0x18], edi
je 0x42845c
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x428459
lea eax, [ebp + 8]
push eax
jmp 0x428461
push 0x5308d4
mov ecx, esi
call fcn.004116a2
push 0x5308ec
mov ecx, esi
call fcn.004116a2
cmp dword [esi + 0x14], 8
jb 0x42847e
mov eax, dword [esi]
jmp 0x428480
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.00403da4
mov eax, esi
call fcn.004d9a12
ret
Function at 0x4286c4
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, 0x503bcb
call fcn.004d9926
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.004d8c50
add esp, 0xc
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x20], edi
xor esi, esi
call fcn.00428687
test al, al
je 0x428728
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 0x530968
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x42877a
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.0040ed85
mov dword [ebp - 4], edi
push 2
pop ebx
cmp dword [ebp + 0x48], edi
jne 0x4287c9
xor eax, eax
push 0x530964
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x2c], edi
mov word [ebp + 0x1c], ax
call fcn.0040ed85
mov byte [ebp - 4], 1
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], 1
jmp 0x4287db
lea eax, [ebp + 0x38]
push eax
lea esi, [ebp]
call fcn.004125a9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov esi, eax
mov eax, dword [ebp - 0x18]
call fcn.0040ec06
or dword [ebp - 0x10], 4
test byte [ebp - 0x10], bl
je 0x4287fd
and dword [ebp - 0x10], 0xfffffffd
push edi
push 1
lea ecx, [ebp]
call fcn.00403da4
test byte [ebp - 0x10], 1
je 0x42880e
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.00403da4
push edi
push 1
lea ecx, [ebp + 0x38]
call fcn.00403da4
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.004d574b
add ebp, 0x120
leave
ret
Function at 0x4291e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x6c
mov eax, 0x503af1
call fcn.004d998f
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 0x429231
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.0042eec7
push edi
push 0x530b60
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ebx
mov byte [ebp - 0x54], bl
call fcn.00402366
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], ebx
call fcn.00401df9
push 0x530b5c
push esi
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00401df9
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.0040241d
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.0040241d
mov eax, esi
call fcn.004d9a12
ret

Function at 0x429297
Capabilities:
Accept command line arguments

Disassembly:
push 0x70
mov eax, 0x503abc
call fcn.004d998f
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x6c], ebx
jb 0x4292b6
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 0x4293c0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x68]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
call fcn.0040edaa
mov dword [ebp - 4], ebx
xor eax, eax
push 0x530b64
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.0040ed85
push 1
push 0x530b68
xor eax, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040ecbf
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
je 0x42937d
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.0040ec4d
mov esi, eax
lea edi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0040ec7b
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403da4
push dword [ebp - 0x74]
lea eax, [ebp - 0x2c]
push ebx
push eax
lea esi, [ebp - 0x64]
call fcn.0040ec4d
mov esi, eax
lea edi, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040ec7b
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403da4
mov edi, dword [ebp - 0x78]
lea eax, [ebp - 0x2c]
push eax
call fcn.00413447
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
call fcn.004036aa
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00403da4
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403da4
inc dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x6c]
jl 0x4292d0
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
call fcn.004d9a12
ret
Function at 0x4293d1
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, 0x503a74
call fcn.004d9926
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.004d8c50
add esp, 0xc
xor eax, eax
push 0x530b70
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.0040ed85
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.00423c7a
mov eax, dword [ebp]
add esp, 0xc
cmp dword [ebp + 0x14], 8
jae 0x429475
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 0x4294e1
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 0x4294e1
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4294ee
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jl 0x429459
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x1c]
push eax
call fcn.0040edaa
push esi
push 1
lea ecx, [ebp]
call fcn.00403da4
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.004d574b
add ebp, 0x228
leave
ret

Function at 0x42952b
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.004293d1
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
pop ecx
jae 0x429551
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.00403da4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004d574b
leave
ret
Function at 0x429579
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x14], 8
jb 0x429585
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 0x4295c0
cmp dword [esi + 0x14], 8
jb 0x4295aa
mov eax, dword [esi]
jmp 0x4295ac
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 0x4295cb
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 0x4295e0
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 0x429624
cmp dword [esi + 0x14], 8
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jb 0x42960c
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 0x42965d
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x503a47
call fcn.004d998f
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.004d4432
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x429710
push esi
push ebx
push eax
call fcn.00423c7a
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 0x429707
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040edaa
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4296d7
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4296f0
mov edi, dword [ebp - 0x38]
lea ebx, [ebp - 0x2c]
call fcn.00429d14
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403da4
add esi, 8
dec dword [ebp - 0x34]
jne 0x4296bf
push dword [ebp - 0x30]
call fcn.004d6376
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.004d9a12
ret
Function at 0x42a7cd
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, 0x505370
call fcn.004d9926
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.004d8c50
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 0x42a8cd
push str.ProgramFiles_x86_
call esi
mov esi, eax
test esi, esi
je 0x42a8b1
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a849
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42a869
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x530184
lea eax, [ebp - 0x1c]
push eax
call fcn.00403b0d
and dword [ebp - 4], 0
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov edi, eax
call fcn.0041c502
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 1
call fcn.00402e04
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00403e7d
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00403e7d
mov edi, dword [ebp - 0x10]
mov eax, ebx
call fcn.00402e04
push 0x530188
push str.__x86_
push edi
call fcn.00402e45
jmp 0x42a947
push str.ProgramFiles
call esi
mov esi, eax
test esi, esi
je 0x42a947
lea eax, [ebp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a8e0
sub eax, edx
push 0x5c
sar eax, 1
pop ecx
cmp cx, word [ebp + eax*2 - 2]
jne 0x42a900
xor ecx, ecx
mov word [ebp + eax*2 - 2], cx
push 0x5301b8
lea eax, [ebp - 0x14]
push eax
call fcn.00403b0d
lea ecx, [ebp]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov edi, eax
mov dword [ebp - 4], 2
call fcn.0041c502
pop ecx
pop ecx
mov edi, ebx
mov byte [ebp - 4], 3
call fcn.00402e04
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403e7d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403e7d
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.004d574b
add ebp, 0x20c
leave
ret
Function at 0x42ab93
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.004d8c50
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 0x42abd8
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.004d8c50
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 0x42ac8b
push 0x4e20
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42ac53
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 0x42ac71
cmp dword [ebp - 0x2c], ebx
jne 0x42ac71
mov byte [ebp - 0x25], 1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], ebx
je 0x42ac81
push dword [ebp - 0x38]
call esi
cmp dword [ebp - 0x3c], ebx
je 0x42ac8b
push dword [ebp - 0x3c]
call esi
mov eax, dword [ebp + 0x1f0]
add eax, 0xfffffff0
call fcn.00403e7d
mov ecx, dword [ebp + 0x1e4]
mov al, byte [ebp - 0x25]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d574b
add ebp, 0x1e8
leave
ret
Function at 0x42acb3
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 0x42ad07
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 0x42ad27
push dword [ebp - 0x70]
mov byte [ebp - 0x61], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x63], bl
jne 0x42ad31
cmp byte [ebp - 0x61], bl
je 0x42ad9c
lea eax, [ebp - 0x68]
push eax
push 1
push ebx
push 0x5303b8
push edi
call esi
test eax, eax
jne 0x42ad9c
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.004d8c50
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 0x42ad93
cmp dword [ebp - 0x6c], 1
jne 0x42ad93
cmp word [ebp - 0x60], bx
je 0x42ad93
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.004d574b
add ebp, 0x1ac
leave
ret
Function at 0x42adb7
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x1c
mov eax, 0x5024d6
call fcn.004d9926
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov ecx, 0x530274
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
call fcn.004030fe
test eax, eax
je 0x42aeb3
call fcn.0042acb3
test al, al
je 0x42aeb3
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 0x42ae53
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 0x5302bc
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], ebx
jne 0x42ae53
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push 0x530334
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.00403e21
add eax, 0x10
mov dword [edi], eax
call fcn.0042ab93
pop ecx
cmp al, bl
je 0x42ae8d
mov byte [ebp - 0xd], 1
push dword [ebp - 0x20]
call esi
cmp dword [ebp - 0x24], ebx
jne 0x42aeb3
cmp dword [ebp - 0x18], ebx
jne 0x42aeaa
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.00403e7d
mov al, byte [ebp - 0xd]
call fcn.004d99fe
ret
Function at 0x42b6fc
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 0x42b721
xor al, al
jmp 0x42b7a3
push ebx
push edi
lea edi, [esi + 1]
push edi
call fcn.004d4432
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x42b737
xor al, al
jmp 0x42b7a1
push edi
push 0
push ebx
call fcn.004d8c50
add esp, 0xc
push ebx
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x42b797
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x530518
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x42b797
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 0x53051c
call fcn.00423911
add esp, 0x14
mov byte [ebp - 1], 1
push ebx
call fcn.004d6376
mov al, byte [ebp - 1]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42b912
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 0x42b933
xor bl, bl
mov eax, dword [esp + 8]
add eax, 0xfffffff0
call fcn.00403e7d
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 0x42b923

Function at 0x42baa3
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.004d8c50
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jle 0x42bb04
cmp word [ebp + eax*2 - 0x7e], 0x5c
je 0x42bb04
push 0x53053c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00403b0d
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
mov eax, esi
call fcn.004d574b
add ebp, 0x190
leave
ret