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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5f237c]
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 0x4138c1
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056acc0
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 0x5b046c
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 0x4138d7
lea eax, [ebp - 0x20c]
push eax
call fcn.00549840
add esp, 4
test eax, eax
je 0x4138d7
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x4138af
push str.CreatePopMgr
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4138af
call eax
mov dword [edi + 4], eax
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4138d7
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.0045a51d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0045a51d
mov esp, ebp
pop ebp
ret 4

Function at 0x414680
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f237c]
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 0x41472c
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 0x4146ff
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a51d
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 8], 0
jne 0x414726
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.0045a51d
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.0045a51d
mov esp, ebp
pop ebp
ret 4
Function at 0x414740
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f237c]
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 0x4147e9
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 0x4147bc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a51d
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 8], 0
jne 0x4147e3
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.0045a51d
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.0045a51d
mov esp, ebp
pop ebp
ret 4

Function at 0x414820
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5f237c]
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 0x41487a
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 0x414882
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], 0
jmp 0x4148b8
mov ecx, dword [ebp - 8]
mov edx, dword [edi]
dec ecx
mov dword [edi + 4], ecx
test edx, edx
je 0x4148b8
test ecx, ecx
js 0x4148b8
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 0x4148be
xor eax, eax
mov word [edi + 8], ax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045a51d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f237c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x414bc3
cmp dword [esi + 4], 0
jl 0x414bc3
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.00412bd0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x10]
dec eax
cmp eax, ecx
ja 0x414aea
mov dword [edi + 0x10], eax
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x414ae2
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x414af6
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.0040c6c0
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x414b00
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 0x414b9c
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 0x414b5b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.00413d20
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.00413c60
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 0x414bc3
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.0045a51d
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x414bce
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.0045a51d
mov esp, ebp
pop ebp
ret
Function at 0x414bf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0045a990
mov eax, dword [0x5f237c]
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 0x414cd2
cmp dword [ebp - 0x1008], 1
jne 0x414c83
lea edx, [ebp - 0x804]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414c63
sub edx, ecx
lea eax, [ebp - 0x804]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.0040cb10
jmp 0x414cd2
cmp dword [ebp - 0x1008], 2
jne 0x414ccd
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 0x414cc6
cmp eax, 0x400
ja 0x414cc6
lea eax, [ebp - 0x1004]
mov ecx, ebx
push eax
call fcn.00414340
jmp 0x414cd2
mov esi, 0xea
jmp 0x414cd2
mov esi, 0x3f4
test edi, edi
je 0x414cde
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.0045a51d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415030
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 0x415040
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 0x415070
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 0x415080
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 0x4167c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f237c]
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 0x416847
test ebx, ebx
je 0x416847
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x416847
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x416847
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 0x416841
push esi
push ebx
push edi
call fcn.0056b150
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 0x416841
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a51d
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.0045a51d
mov esp, ebp
pop ebp
ret
Function at 0x425ef0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1c0d
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x5f237c]
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.00444ed0
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 0x4260af
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.0056acc0
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 0x42609a
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 0x4260a1
lea ecx, [ebp - 0x460]
call fcn.0041d080
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.00425870
test al, al
je 0x42607d
lea eax, [ebp - 0x460]
mov ecx, ebx
push eax
push eax
call fcn.00418ee0
push eax
add eax, 0x10
mov ecx, ebx
push eax
push 0
lea eax, [ebp - 0x47c]
push eax
call fcn.0041ada0
push dword [ebp - 0x468]
call edi
lea ecx, [ebp - 0x460]
mov byte [ebp - 4], 0
call fcn.0041e930
inc esi
jmp 0x425fb0
cmp eax, 0x103
je 0x4260a7
inc esi
jmp 0x425fb0
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.0045a51d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4278d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1f21
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5f237c]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x270], ebx
call fcn.00408cf0
mov ecx, eax
test ecx, ecx
je 0x427b12
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
push 0x5af9d4
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0
call fcn.00407960
test al, al
jne 0x427960
push 0
push 0x5af9d4
lea ecx, [ebp - 0x264]
call fcn.0040a9f0
push ebx
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 1
mov dword [ebp - 0x268], 0
call fcn.0041bd40
push str..
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.0041ff30
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x427a0a
mov edi, dword [ebp - 0x264]
add edi, 0xfffffff0
push edi
call fcn.00407b20
mov edx, dword [ebp - 0x268]
add eax, 0x10
mov dword [esi], eax
add esp, 4
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4279e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4279ff
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x26c]
jmp 0x427af4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebp - 0x260]
push eax
push edi
xor esi, esi
call ebx
test eax, eax
je 0x427a98
push 1
lea eax, [ebp - 0x234]
push 0x5afe98
push eax
call fcn.0057ea1d
add esp, 0xc
test eax, eax
je 0x427a8a
push 2
lea eax, [ebp - 0x234]
push 0x5afe9c
push eax
call fcn.0057ea1d
add esp, 0xc
test eax, eax
je 0x427a8a
test byte [ebp - 0x260], 0x10
jne 0x427a8a
mov eax, dword [ebp - 0x240]
cmp eax, esi
jbe 0x427a8a
mov esi, eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x270]
lea eax, [ebp - 0x264]
push 0x5b2cbc
push eax
call fcn.00415590
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
push edi
call ebx
test eax, eax
jne 0x427a20
mov edi, dword [ebp - 0x264]
add edi, 0xfffffff0
push edi
call fcn.00407b20
mov ebx, dword [ebp - 0x26c]
add eax, 0x10
mov edx, dword [ebp - 0x268]
or esi, 0xffffffff
add esp, 4
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov dword [ebx], eax
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x427ad9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x427af2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 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.0045a51d
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00407940
int3
Function at 0x427b20
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1f93
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5f237c]
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.00408cf0
mov ecx, eax
test ecx, ecx
je 0x427d49
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x5af9d4
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00407960
test al, al
jne 0x427bb7
push 0
push 0x5af9d4
mov ecx, ebx
call fcn.0040a9f0
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 0x427d29
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x427d29
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.004278d0
mov edi, dword [ebp - 0x220]
mov dword [ebp - 4], 2
cmp dword [edi - 0xc], 0
je 0x427d0d
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 4
push 0x5b0ca4
push edi
call esi
push eax
call fcn.0057ea1d
add esp, 0xc
test eax, eax
je 0x427cff
push 4
push 0x5b0c98
push edi
call esi
push eax
call fcn.0057ea1d
add esp, 0xc
test eax, eax
je 0x427cff
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
call fcn.00415140
push 0x5b0c98
push edi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push 0x5b2cc8
push eax
call fcn.00415590
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 0x427cf2
lea eax, [ebp - 0x21c]
mov ecx, ebx
push eax
call fcn.00406bb0
lea ecx, [ebp - 0x21c]
call fcn.00406290
jmp 0x427d0d
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call fcn.00406bb0
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x427d29
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.0045a51d
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00407940
int3
Function at 0x4280e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a20d2
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5f237c]
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.0056acc0
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 0x4281be
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4281a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040cb10
cmp dword [esi + 0x10], 0
jne 0x42823a
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0056acc0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054ff80
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4281f4
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0040cb10
cmp dword [esi + 0x14], 8
mov eax, esi
mov ecx, dword [esi + 0x10]
jb 0x42821f
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.0045a51d
mov esp, ebp
pop ebp
ret
Function at 0x429b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f861
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5f237c]
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.00408cf0
mov ecx, eax
test ecx, ecx
je 0x429ca6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x5af9d4
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00407960
test al, al
jne 0x429b9f
push 0
push 0x5af9d4
mov ecx, edi
call fcn.0040a9f0
push 0x208
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
call fcn.0045a64f
mov esi, eax
add esp, 4
test esi, esi
je 0x429bd2
push 0x208
push 0
push esi
call fcn.0056acc0
add esp, 0xc
jmp 0x429bd4
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 0x429c50
push esi
call fcn.0045a658
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.0045a64f
mov esi, eax
add esp, 8
test esi, esi
je 0x429c37
push ebx
push 0
push esi
call fcn.0056acc0
add esp, 0xc
jmp 0x429c39
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 0x429c79
test esi, esi
jne 0x429c5c
xor ecx, ecx
jmp 0x429c70
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x429c61
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.0040a9f0
test esi, esi
je 0x429c86
push esi
call fcn.0045a658
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.0045a51d
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00407940
int3