joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085da
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x424]
mov esi, 0x20019
push eax
push esi
xor edi, edi
push edi
push 0x4013d0
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408748
lea eax, [ebp - 0x41c]
push eax
push esi
push edi
push 0x40141c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40873c
push ebx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x420]
mov esi, edi
push eax
lea eax, [ebp - 0x20c]
mov ebx, 0x104
push eax
push edi
jmp 0x408715
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4086a6
push 4
push 0x401434
push 1
push edi
push 0x401438
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
lea eax, [ebp - 0x20c]
mov edx, ebx
push eax
push 0x4013d0
lea ecx, [ebp - 0x414]
call fcn.0040e833
test eax, eax
js 0x408701
lea eax, [ebp - 0x418]
push eax
push 0x2001f
push edi
lea eax, [ebp - 0x414]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408701
push dword [ebp - 0x418]
push edi
push edi
call dword [sym.imp.IEADVPACK.dll_RegRestoreAllW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x420]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x41c]
mov dword [ebp - 0x420], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40865b
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422f70
mov esp, ebp
pop ebp
ret
Function at 0x40888e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
xor edi, edi
push eax
push edi
push 4
pop ebx
push ebx
push edi
push edi
push edi
push 0x401548
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x408930
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x401608
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x408925
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x14], ebx
push eax
push edi
push edi
mov esi, 0x401620
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 4], 0x100000
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push edi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x40893b
movzx esi, si
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409769
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 4
lea eax, [ebp - 0x210]
xor edi, edi
push eax
push 1
push 2
push dword [0x404078]
mov dword [ebp - 0x210], edi
call dword [sym.imp.iertutil.dll_Ordinal_654]
push 0xa
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4098ca
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4098ca
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4098c9
push dword [0x404074]
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call fcn.0040dbcf
push dword [0x404084]
lea ecx, [ebp - 0x214]
call fcn.0040dbcf
mov eax, dword [ebp - 0x214]
xor ecx, ecx
add ecx, dword [ebp - 0x210]
adc eax, edi
cmp eax, 0x10000000
ja 0x4098c9
jb 0x40982f
cmp ecx, 0x178e182d
jae 0x4098c9
push dword [0x40407c]
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [ebp - 0x20c], ax
call fcn.0040d8b3
push 0x5c
pop eax
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4098c9
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x5c
pop eax
mov word [edi], ax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4098c9
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], esi
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00422f70
mov esp, ebp
pop ebp
ret
Function at 0x4099e9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x409a28
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 3
push esi
push esi
push esi
push 0x402958
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
jmp 0x409a3e
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push 0x402958
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409ac0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
mov ecx, dword [ebp - 0x210]
call fcn.004098df
cmp dword [ebp + 0x10], 0
je 0x409a7f
cmp dword [ebp + 0x14], 0
jne 0x409a76
test eax, eax
je 0x409ab4
push 0x18
push 0x402f3c
jmp 0x409aa5
cmp dword [ebp + 0x14], 0
jne 0x409a9f
test eax, eax
jne 0x409ab4
lea eax, [ebp - 0x20c]
push eax
push 0x402f3c
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x409ab4
push esi
push 0x4021a0
push 1
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00422f70
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409ad6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x90]
xor ebx, ebx
push eax
push 1
push ebx
push 0x402b80
push reloc.SHLWAPI.dll_ParseURLW
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x409b9e
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x90]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x409b9e
push ebx
lea eax, [ebp - 0x8c]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push 0x402b80
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x409b92
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
push 1
push ebx
push edi
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret
Function at 0x40a6d5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push ebx
push esi
push edi
push 0x4028f0
push 0x402cc8
push 0x104
push eax
mov esi, edx
call fcn.004083b4
add esp, 0x10
mov dword [ebp - 0x214], 4
lea eax, [ebp - 0x214]
mov ebx, 0x402940
mov edi, SysReAllocStringLen
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x210]
and eax, esi
or eax, dword [ebp + 8]
push 4
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push eax
push 4
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 4

Function at 0x40a825
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x424004]
xor eax, esp
mov dword [esp + 0x41c], eax
push esi
push edi
xor esi, esi
lea eax, [esp + 0x10]
push esi
push 0x10
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x104
test eax, eax
je 0x40a89d
lea ecx, [esp + 0x10]
call fcn.0040a78a
push edi
lea eax, [esp + 0x21c]
push eax
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40a89d
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
call fcn.0040eac0
lea ecx, [esp + 0x10]
call fcn.0040a78a
lea eax, [esp + 8]
mov dword [esp + 8], 0x208
push eax
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4025ac
push 0x4025e8
push reloc.SHLWAPI.dll_ParseURLW
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40a8ed
push edi
lea eax, [esp + 0x21c]
push eax
push 0x11
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40a91a
push esi
push 2
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a91a
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x14]
call fcn.0040eac0
lea ecx, [esp + 0x10]
call fcn.0040a78a
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, esp
call fcn.00422f70
mov esp, ebp
pop ebp
ret
Function at 0x40a933
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
cmp dword [ebp + 8], esi
jbe 0x40a986
push 0
push dword [ebx + esi*4]
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40a980
push dword [ebp + 0xc]
mov edx, edi
lea ecx, [ebp - 0x20c]
push 0
call fcn.0040a587
inc esi
cmp esi, dword [ebp + 8]
jb 0x40a956
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 8

Function at 0x40a99e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test esi, esi
je 0x40a9e1
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x40a9db
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push 0
push 2
pop edx
call fcn.0040a587
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add edi, 0x10
dec esi
jne 0x40a9af
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40ac86
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40acc5
push 1
push esi
xor edx, edx
lea ecx, [ebp - 0x20c]
call fcn.0040a587
test esi, esi
je 0x40acd2
call fcn.0040ab9c
test al, al
je 0x40acd9
mov edx, esi
call fcn.0040abf2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00422f70
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae11
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x40ae8d
cmp dword [ebp - 0x28], 0
je 0x40ae8d
push edi
lea eax, [ebp - 0x28]
mov edi, SysReAllocStringLen
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, 2
jne 0x40ae8c
lea eax, [ebp - 0x28]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40ae8c
push 7
pop ecx
mov byte [ebp - 0x24], al
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
push 0x1e
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
push 3
push 0
push 0x402cac
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00422f70
mov esp, ebp
pop ebp
ret
Function at 0x40aea1
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x18], edx
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push esi
lea eax, [ebp - 8]
mov ebx, ecx
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40aff6
push edi
push 2
pop edx
cmp dword [ebp - 4], esi
jbe 0x40af77
mov eax, dword [ebp - 8]
test eax, eax
je 0x40af77
inc eax
xor ecx, ecx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
je 0x40af74
cmp dword [ebp - 4], esi
jbe 0x40af6c
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40af66
and dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40af66
push dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
call fcn.0040aea1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, dword [ebp - 4]
jb 0x40af18
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push 2
pop edx
cmp dword [ebp - 0x10], 0
jbe 0x40aff5
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40aff5
inc eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
mov esi, eax
pop ecx
test esi, esi
je 0x40aff5
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40afed
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [edi - 1]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40afea
mov eax, dword [ebp + 8]
cmp dword [ebp - 0xc], eax
jb 0x40afea
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40afea
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec edi
jne 0x40afa8
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b85f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push 0x402758
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b8b3
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push esi
push 0x402720
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c73d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 4
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 1
push eax
push 0
push 2
push dword [0x4040a0]
call dword [sym.imp.iertutil.dll_Ordinal_654]
mov esi, eax
test esi, esi
js 0x40c801
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
push 0x403330
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40c7e0
push 0x401f0c
lea eax, [ebp - 0x20c]
push eax
push 0x403344
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004083b4
mov esi, eax
add esp, 0x14
test esi, esi
js 0x40c7e0
push dword [0x404444]
lea edx, [ebp - 0x414]
call fcn.0040d973
mov esi, eax
test esi, esi
jns 0x40c800
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x418]
push 4
push eax
push 0
push 2
push dword [0x4040a0]
call dword [sym.imp.iertutil.dll_Ordinal_654]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00422f70
mov esp, ebp
pop ebp
ret

Function at 0x40c817
Capabilities:
Get common file path
Get program files directory
Get system information on windows
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x210], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [ebp - 0x210], ebx
je 0x40c88d
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x4033a8
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x40c8f0
push 0x4033ec
lea ecx, [ebp - 0x20c]
call fcn.0040eac0
test eax, eax
js 0x40c8f0
mov edx, edi
jmp 0x40c8dc
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push ebx
push 0x26
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c8f0
push 0x403408
lea ecx, [ebp - 0x20c]
call fcn.0040eac0
test eax, eax
js 0x40c8f0
push 0x4033ec
lea ecx, [ebp - 0x20c]
call fcn.0040eac0
test eax, eax
js 0x40c8f0
mov edx, 0x104
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408345
test eax, eax
js 0x40c8f0
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret 8
Function at 0x40ca08
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov bl, dl
mov edi, ecx
call fcn.0040c90a
mov esi, eax
test esi, esi
js 0x40cb3a
test bl, bl
jne 0x40ca40
cmp byte [edi + 0xc], bl
je 0x40cb3a
lea eax, [ebp - 0x604]
push eax
push 0x20019
push 0
push dword [edi + 0x10]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x40ca6a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40cb3a
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x61c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x618], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x614], eax
lea eax, [ebp - 0x600]
mov byte [ebp - 0x610], 1
mov dword [ebp - 0x60c], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x608]
mov dword [ebp - 0x608], 0xff
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push dword [ebp - 0x604]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jle 0x40cadd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40cb19
lea eax, [ebp - 0x204]
push eax
push dword [edi + 0x10]
lea eax, [ebp - 0x600]
push 0x403de4
push 0x1fe
push eax
call fcn.004083b4
mov esi, eax
add esp, 0x14
test esi, esi
js 0x40cb21
mov dl, 1
lea ecx, [ebp - 0x61c]
call fcn.0040ca08
mov esi, eax
jmp 0x40cb21
cmp esi, 0x80070103
je 0x40cb2c
inc ebx
test esi, esi
jns 0x40ca9f
jmp 0x40cb2e
xor esi, esi
push dword [ebp - 0x604]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00422f70
mov esp, ebp
pop ebp
ret

Function at 0x40cca3
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
xor esi, esi
mov ebx, edx
cmp ax, word [edi + 4]
jae 0x40ccef
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
movzx eax, si
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x40cce8
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x40cce8
push ebx
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40ccfa
inc esi
cmp si, word [edi + 4]
jb 0x40ccba
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor dl, dl
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0x10]
mov al, byte [ecx + 1]
je 0x40cd12
or al, 3
mov byte [esi], 1
mov byte [ecx + 1], al
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, edx
and eax, dword [ebp + 8]
cmp eax, dword [ebp + 8]
je 0x40cd36
or edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 4]
mov byte [esi], 1
and byte [ecx + 1], 0xef
mov ecx, dword [ebp - 4]
or byte [ecx + 1], 3
mov al, 1
jmp 0x40ccf1