joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4131d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 4], 0
mov dword [edi + 8], eax
jne 0x4132b1
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005663c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x5ab42c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop esi
test eax, eax
je 0x4132c7
lea eax, [ebp - 0x20c]
push eax
call fcn.00544fd0
add esp, 4
test eax, eax
je 0x4132c7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41329f
push str.CreatePopMgr
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41329f
call eax
mov dword [edi + 4], eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4132c7
mov eax, dword [ecx]
push str.software_pm_popup_popmgr_stub
push ecx
call dword [eax + 4]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4

Function at 0x414070
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [esi + 4]
or eax, 0x20019
push eax
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41411c
push edi
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4140ef
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 8], 0
jne 0x414116
push 0
push dword [esi + 4]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4
mov eax, 0x91
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4
Function at 0x414130
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc], 0
push eax
mov eax, dword [esi + 4]
or eax, 0x20019
push eax
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4141d9
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4141ac
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 8], 0
jne 0x4141d3
push 0
push dword [esi + 4]
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4
mov eax, 0x91
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045674d
mov esp, ebp
pop ebp
ret 4

Function at 0x414210
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
or eax, 0x20019
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push edi
push eax
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41426a
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x414272
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
jmp 0x4142a8
mov ecx, dword [ebp - 8]
mov edx, dword [edi]
dec ecx
mov dword [edi + 4], ecx
test edx, edx
je 0x4142a8
test ecx, ecx
js 0x4142a8
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [edi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4142ae
xor eax, eax
mov word [edi + 8], ax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045674d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4145b3
cmp dword [esi + 4], 0
jl 0x4145b3
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x20]
sub eax, dword [ebx]
lea ecx, [esi + 0x2c]
mov edx, dword [esi + 0x1c]
sar eax, 1
push edi
mov dword [ebp - 0x18], ecx
lea edi, [esi + 8]
push edx
lea eax, [eax*2 - 2]
mov dword [ebp - 0x10], edx
mov dword [ecx], eax
mov ecx, edi
mov eax, dword [ebx]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
call fcn.004125c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
dec eax
cmp eax, ecx
ja 0x4144da
mov dword [edi + 0x10], eax
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x4144d2
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x4144e6
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.0040c4d0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x4144f0
mov ecx, dword [edi]
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 0xc]
lea edx, [esi + 0x30]
push edx
push 0
lea eax, [ebp - 8]
push eax
push ecx
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x41458c
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x2c]
mov edx, dword [ebx + 4]
inc eax
shr eax, 1
inc eax
mov dword [ebp - 0xc], eax
mov eax, edx
sub eax, dword [ebx]
sar eax, 1
cmp dword [ebp - 0xc], eax
jbe 0x41454b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.00413710
mov edx, dword [esi + 0x24]
lea ecx, [esi + 0x2c]
sub edx, dword [ebx]
sar edx, 1
push ecx
lea eax, [edx*2 - 2]
mov edx, 0x4000
mov dword [ecx], eax
lea ecx, [esi + 0x30]
push dword [ebx]
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
push ecx
push 0
lea ecx, [ebp - 8]
cmove eax, edx
push ecx
push eax
push edi
mov dword [ebp - 8], eax
call fcn.00413650
add esp, 8
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
pop edi
test eax, eax
jne 0x4145b3
mov eax, dword [ebp - 0x18]
pop esi
mov ecx, dword [eax]
mov eax, dword [ebx]
inc ecx
shr ecx, 1
xor edx, edx
pop ebx
mov word [eax + ecx*2], dx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x4145be
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x20]
mov word [eax], cx
xor al, al
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0045674d
mov esp, ebp
pop ebp
ret
Function at 0x4145e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00456bc0
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x100c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x1008]
mov dword [ebp - 0x100c], 0x800
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4146c2
cmp dword [ebp - 0x1008], 1
jne 0x414673
lea edx, [ebp - 0x804]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414653
sub edx, ecx
lea eax, [ebp - 0x804]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.0040c920
jmp 0x4146c2
cmp dword [ebp - 0x1008], 2
jne 0x4146bd
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x4146b6
cmp eax, 0x400
ja 0x4146b6
lea eax, [ebp - 0x1004]
mov ecx, ebx
push eax
call fcn.00413d30
jmp 0x4146c2
mov esi, 0xea
jmp 0x4146c2
mov esi, 0x3f4
test edi, edi
je 0x4146ce
mov eax, dword [ebp - 0x1008]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045674d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414a30
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 2
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 8

Function at 0x414a60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414a70
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x415010
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00456bc0
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.005663c0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x415106
test edi, edi
je 0x415106
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x415106
cmp eax, 0x3fff
ja 0x415106
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415106
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x5ab294
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415106
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.005663c0
mov ecx, dword [ebp - 0x4010]
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 str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00415cb0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0045674d
mov esp, ebp
pop ebp
ret
Function at 0x415d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x415dc7
test ebx, ebx
je 0x415dc7
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x415dc7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x415dc7
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x415dc1
push esi
push ebx
push edi
call fcn.00566850
add esp, 0xc
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x415dc1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045674d
mov esp, ebp
pop ebp
ret
Function at 0x4250b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cbfd
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x470], ecx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x474], ebx
mov dword [ebp - 0x46c], 0
movq qword [ebx], xmm0
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.00441820
mov dword [ebx], eax
lea eax, [ebp - 0x464]
mov dword [ebp - 4], 0
push eax
movzx eax, byte [ebp + 0x14]
shl eax, 8
add eax, 0x20019
mov dword [ebp - 0x46c], 1
push eax
push 0
push esi
push edi
mov dword [ebp - 0x464], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42526f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005663c0
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
lea eax, [ebp - 0x21c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42525a
mov dword [ebp - 0x468], eax
lea eax, [ebp - 0x468]
push eax
push 1
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x425261
lea ecx, [ebp - 0x460]
call fcn.0041c490
mov ecx, dword [ebp - 0x470]
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00424a70
test al, al
je 0x42523d
lea eax, [ebp - 0x460]
mov ecx, ebx
push eax
push eax
call fcn.00418460
push eax
add eax, 0x10
mov ecx, ebx
push eax
push 0
lea eax, [ebp - 0x47c]
push eax
call fcn.0041a2d0
push dword [ebp - 0x468]
call edi
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 0
call fcn.0041dcf0
inc esi
jmp 0x425170
cmp eax, 0x103
je 0x425267
inc esi
jmp 0x425170
push dword [ebp - 0x464]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x426da0
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cf83
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], eax
mov dword [ebx], 0
call fcn.00408b70
mov ecx, eax
test ecx, ecx
je 0x426fc9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5aa9d4
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.004077e0
test al, al
jne 0x426e37
push 0
push 0x5aa9d4
mov ecx, ebx
call fcn.0040a800
push 0
push 0x24
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x224], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.Installer_
push eax
call esi
push dword [ebp - 0x220]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x426fa9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x426fa9
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.00426a90
mov edi, dword [ebp - 0x220]
mov dword [ebp - 4], 2
cmp dword [edi - 0xc], 0
je 0x426f8d
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 4
push 0x5abad4
push edi
call esi
push eax
call fcn.0057a111
add esp, 0xc
test eax, eax
je 0x426f7f
push 4
push 0x5abac8
push edi
call esi
push eax
call fcn.0057a111
add esp, 0xc
test eax, eax
je 0x426f7f
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
call fcn.0041b370
push 0x5abac8
push edi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push 0x5ad8c8
push eax
call fcn.00414f50
mov esi, dword [ebp - 0x21c]
add esp, 0x10
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x426f72
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.00406a30
lea ecx, [ebp - 0x21c]
call fcn.00406110
jmp 0x426f8d
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.00406a30
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x426fa9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.004077c0
int3
Function at 0x427360
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d0c2
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x424], 0x104
call fcn.005663c0
add esp, 0xc
mov dword [ebp - 0x428], 1
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x428]
push eax
push str.local_m2
push str.SOFTWAREComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42743e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427420
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040c920
cmp dword [esi + 0x10], 0
jne 0x4274ba
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005663c0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054b690
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427474
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040c920
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x42749f
mov eax, dword [esi]
add ecx, ecx
push ecx
push eax
push 1
push str.local_m2
push str.SOFTWAREComMaster
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret
Function at 0x428d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a921
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [edi], 0
call fcn.00408b70
mov ecx, eax
test ecx, ecx
je 0x428f26
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x5aa9d4
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.004077e0
test al, al
jne 0x428e1f
push 0
push 0x5aa9d4
mov ecx, edi
call fcn.0040a800
push 0x208
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
call fcn.0045687f
mov esi, eax
add esp, 4
test esi, esi
je 0x428e52
push 0x208
push 0
push esi
call fcn.005663c0
add esp, 0xc
jmp 0x428e54
xor esi, esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x208
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 0
push dword [ebp - 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x428ed0
push esi
call fcn.00456888
mov eax, dword [ebp - 0x14]
xor ebx, ebx
add eax, eax
mov ecx, 2
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0045687f
mov esi, eax
add esp, 8
test esi, esi
je 0x428eb7
push ebx
push 0
push esi
call fcn.005663c0
add esp, 0xc
jmp 0x428eb9
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428ef9
test esi, esi
jne 0x428edc
xor ecx, ecx
jmp 0x428ef0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428ee1
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040a800
test esi, esi
je 0x428f06
push esi
call fcn.00456888
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004077c0
int3
Function at 0x429cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d578
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5ec374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x150], 8
lea esi, [ecx + 0x13c]
mov dword [ebp - 4], 1
mov eax, esi
jb 0x429cff
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
jne 0x429d12
mov esi, dword [ebp + 0x10]
jmp 0x429d5e
cmp dword [esi + 0x14], 8
jb 0x429d1a
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x10]
call fcn.0041b3a0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00537370
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov esi, eax
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x429d5e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x429d7c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x429d9b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc