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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
call fcn.0044aebf
push dword [esi]
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.0044b4d1
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x44c093
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44c090
push edi
lea ecx, [ebp - 0x18]
call fcn.00447d61
push dword [ebp - 4]
push dword [ebp - 0x14]
call sub.gdiplus.dll_GdipPrivateAddFontFile
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
test edi, edi
jle 0x44c087
xor ecx, ecx
mov eax, edi
push 8
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.gdiplus.dll_GdipAlloc
test eax, eax
je 0x44c056
mov dword [eax], edi
mov edx, edi
add eax, 4
mov ecx, eax
test edx, edx
je 0x44c058
mov dword [ecx], ebx
lea ecx, [ecx + 8]
mov dword [ecx - 4], ebx
sub edx, 1
jne 0x44c047
jmp 0x44c058
mov eax, ebx
mov dword [esi + 4], eax
test eax, eax
je 0x44c087
lea ecx, [ebp - 0xc]
push ecx
push eax
push edi
lea ecx, [ebp - 0x18]
call fcn.0044b25e
test eax, eax
jne 0x44c080
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x44c080
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
jmp 0x44c087
mov ecx, esi
call fcn.0044aebf
lea ecx, [ebp - 0x18]
call fcn.004483fe
pop edi
mov eax, dword [ebp - 4]
lea ecx, [eax - 0x10]
call fcn.004023e0
pop esi
pop ebx
leave
ret

Function at 0x44dbb7
Capabilities:
Hide graphical window

Disassembly:
push esi
push dword [ecx + 0xc]
push dword [ecx + 0x13c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x44dbe1
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44dbe1
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x44dbe3
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
mov word [esi + 0xc], 0
pop esi
ret 0xc
Function at 0x44e17a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
cmp dword [esi + 0x460], ebx
je 0x44e1a3
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [esi + 0x460], ebx
mov eax, dword [esi + 0x454]
test eax, eax
je 0x44e272
push edi
push eax
call fcn.0044bcf0
mov edi, eax
pop ecx
test edi, edi
je 0x44e26b
push 2
push ebx
push edi
mov ecx, esi
call fcn.0045941a
mov ecx, dword [esi + 0x454]
cmp ecx, dword [esi + 0x450]
jne 0x44e26b
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.00449543
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x44e21c
cmp word [eax], bx
je 0x44e21c
push 1
push ebx
push ebx
push eax
push 0x61594c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x44e26b
mov ebx, dword [edi + 0xc]
test ebx, ebx
je 0x44e269
mov eax, dword [esi + 4]
and dword [esi + 0x454], 0
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x10], eax
mov ecx, edi
mov eax, dword [edi]
mov dword [ebp - 8], ebx
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x44e271
xor ebx, ebx
mov dword [esi + 0x454], ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x44eacb
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0xc], 0
jne 0x44eb36
test byte [esi + 0x14], 2
je 0x44eb36
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
je 0x44eb27
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sub eax, ecx
je 0x44eb27
sub edx, dword [esi + 0x10]
sub ecx, dword [esi + 0x10]
push 0x11
push 0
push 0
push edx
push ecx
push edi
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x44eb36
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret 0xc
Function at 0x452abd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
test byte [esi + 0x14], 1
je 0x452ade
cmp dword [ebp + 0xc], 0
jne 0x452ade
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xf9
pop esi
pop ebp
ret 0xc

Function at 0x452b57
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
jne 0x452b89
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
jmp 0x452be2
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
je 0x452be7
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
je 0x452be7
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x452be2
or byte [esi + 0x14], 4
mov al, byte [esi + 0x14]
test al, 2
jne 0x452bd9
or al, 2
mov ecx, esi
push edi
mov byte [esi + 0x14], al
call fcn.00457cbb
push 8
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x452be2
cmp dword [esi + 0x18], ebx
je 0x452be2
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], ebx
jmp 0x452bf6
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x14], 0xfd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret 0xc

Function at 0x45a4df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45a55b
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [ebp - 0x210]
push ebx
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.00404cd0
mov ebx, str.kingsoft_rogue_collect_temp.ini
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.0040c36b
xor eax, eax
inc eax
pop ebx
jmp 0x45a55d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret 4
Function at 0x45a6e7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 8]
push 0x400000
push eax
call fcn.00413a13
pop ecx
pop ecx
lea ecx, [ebp - 4]
call fcn.00404190
push str.ressrcchskswitchlist.ini
push dword [ebp - 8]
lea eax, [ebp - 4]
push 0x61a9a0
push eax
call fcn.0040c593
mov esi, dword [ebp - 4]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a731
xor edi, edi
jmp 0x45a740
mov ecx, dword [ebp + 8]
push 0
push 3
push esi
call fcn.00432152
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004023e0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.004023e0
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x45a759
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea ecx, [ebp - 4]
call fcn.00404190
push str.ressrcchskswitchlist.ini
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push 0x613ad4
push eax
call fcn.0040c593
mov esi, dword [ebp - 4]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45a792
xor edi, edi
jmp 0x45a7a1
mov ecx, dword [ebp + 8]
push 0
push 3
push esi
call fcn.00432152
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004023e0
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x45a7af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.00404190
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45a829
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00404cd0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret

Function at 0x45a839
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
mov edi, dword [ebp + 0xc]
call fcn.00404190
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45a8b3
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00404cd0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret
Function at 0x45accb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x45acde
xor al, al
jmp 0x45ad06
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45ad04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x45ad04
push dword [esi]
call fcn.00413808
test eax, eax
pop ecx
setne al
jmp 0x45ad06
mov al, 1
pop esi
pop ebp
ret

Function at 0x45af8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x210]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x20a
mov dword [ebp - 0x224], ebx
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x214]
call fcn.00404190
lea eax, [ebp - 0x218]
push eax
call fcn.0045b2f4
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x220]
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.ProgramPath
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x45b0cb
cmp dword [ebp - 0x21c], 1
mov word [ebp - 8], ax
jne 0x45b0cb
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [ebp - 0x210]
push eax
call edi
pop ecx
test eax, eax
je 0x45b0cb
lea eax, [ebp - 0x210]
push eax
call fcn.0045b508
pop ecx
test eax, eax
je 0x45b0cb
lea eax, [ebp - 0x210]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00404cd0
push 0x613008
push 1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403c90
push eax
call fcn.00433b44
pop ecx
pop ecx
mov ecx, dword [ebp - 0x218]
mov bl, al
add ecx, 0xfffffff0
call fcn.004023e0
test bl, bl
je 0x45b0b4
push 0x5c
lea ecx, [ebp - 0x214]
call fcn.0040c3f8
mov edi, dword [ebp - 0x214]
add edi, 0xfffffff0
push edi
call fcn.00404b40
mov ebx, dword [ebp - 0x224]
jmp 0x45b0da
mov edi, dword [ebp - 0x214]
add edi, 0xfffffff0
push edi
call fcn.00404b40
pop ecx
add eax, 0x10
lea ecx, [esi - 0x10]
mov dword [ebx], eax
call fcn.004023e0
mov ecx, edi
call fcn.004023e0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret
Function at 0x45b100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x210]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x20a
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x214]
call fcn.00404190
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push str.ProgramPath
push str.SOFTWAREkbasesrv
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x45b210
cmp dword [ebp - 0x218], 1
mov word [ebp - 8], ax
jne 0x45b210
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea eax, [ebp - 0x210]
push eax
call esi
pop ecx
test eax, eax
je 0x45b210
lea eax, [ebp - 0x210]
push eax
call fcn.0045b508
pop ecx
test eax, eax
je 0x45b210
lea eax, [ebp - 0x210]
push ebx
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00404cd0
push 0x613008
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x214]
call fcn.00403c90
push eax
call fcn.00433b44
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
mov bl, al
add ecx, 0xfffffff0
call fcn.004023e0
test bl, bl
pop ebx
je 0x45b210
push 0x5c
lea ecx, [ebp - 0x214]
call fcn.0040c3f8
mov esi, dword [ebp - 0x214]
add esi, 0xfffffff0
push esi
call fcn.00404b40
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.004023e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret

Function at 0x45b508
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x45b542
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
test eax, eax
je 0x45b542
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x45bffc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.00404190
lea ecx, [ebp - 4]
call fcn.00404190
lea ecx, [ebp - 8]
call fcn.00404190
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
and dword [ebp - 0xc], 0
mov ecx, esi
push str.InstallLocation
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall360SD
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0045c642
push eax
lea ecx, [ebp - 4]
call fcn.004048f0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
je 0x45c0d1
push str.360sd.exe
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00413eaa
add esp, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.004048f0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c0d4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.00441f55
add esp, 0xc
test eax, eax
je 0x45c0d4
mov ecx, dword [ebp - 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x10]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
push dword [ebp + 8]
call fcn.0040c593
add esp, 0x18
jmp 0x45c0d4
mov esi, dword [ebp - 8]
lea ecx, [esi - 0x10]
call fcn.004023e0
lea ecx, [edi - 0x10]
call fcn.004023e0
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 4

Function at 0x45c0ed
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00404190
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push 0x1c
push ebx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
test eax, eax
je 0x45c18e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00404cd0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x45c1b7
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x45c1cd
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret
Function at 0x45c23a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00404190
cmp dword [ebp - 4], ebx
je 0x45c25f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push str.CLSID9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0Implemented_CategoriesA5F7140E_4311_4ef9_AABC_F55941B5EBE5
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45c2e7
mov dword [ebp + 8], ebx
cmp dword [ebp - 4], ebx
je 0x45c2f6
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0x613e34
push dword [ebp - 4]
call ebx
cmp dword [ebp - 8], 1
jne 0x45c2e7
mov ecx, esi
call fcn.004041c0
mov eax, dword [ebp + 8]
mov ecx, esi
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x613e34
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x45c2e7
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, dword [ebp - 0xc]
shr eax, 1
push 0xffffffffffffffff
mov word [ecx + eax*2], dx
mov ecx, esi
call fcn.0040e311
cmp dword [ebp - 4], 0
je 0x45c2f6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x45c46f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
call fcn.004b2a31
sub eax, 2
neg eax
sbb edi, edi
call fcn.004b2bb4
lea ecx, [eax - 1]
cmp ecx, 9
ja case.default.0x45c490
jmp dword [ecx*4 + 0x45c5d3]
xor esi, esi
inc esi
jmp 0x45c5ca
push 2
pop esi
jmp 0x45c5ca
push 3
jmp 0x45c4a1
push 4
jmp 0x45c4a1
push 5
jmp 0x45c4a1
lea esi, [edi + 8]
jmp 0x45c5ca
lea esi, [edi + 0xa]
jmp 0x45c5ca
lea esi, [edi + 0xc]
jmp 0x45c5ca
lea esi, [edi + 0xe]
jmp 0x45c5ca
lea esi, [edi + 0x10]
jmp 0x45c4e3
xor esi, esi
cmp eax, 0xa
jne 0x45c5ca
push ebx
lea ecx, [ebp - 8]
call fcn.00404190
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45c5ab
xor ebx, ebx
and dword [ebp - 0xc], ebx
cmp dword [ebp - 4], ebx
je 0x45c5ba
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x61d860
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 1
je 0x45c53e
cmp dword [ebp - 0x10], 2
jne 0x45c5ab
lea ecx, [ebp - 8]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x61d860
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45c586
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
shr eax, 1
inc ebx
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040e311
test ebx, ebx
je 0x45c5ab
push 0x61d880
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x45c5ab
lea esi, [edi + 0x12]
cmp dword [ebp - 4], 0
je 0x45c5ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
and dword [ebp - 4], 0
add ecx, 0xfffffff0
call fcn.004023e0
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x45c4d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
call fcn.004b2a31
sub eax, 2
neg eax
sbb edi, edi
call fcn.004b2bb4
lea ecx, [eax - 1]
cmp ecx, 9
ja case.default.0x45c490
jmp dword [ecx*4 + 0x45c5d3]
xor esi, esi
inc esi
jmp 0x45c5ca
push 2
pop esi
jmp 0x45c5ca
push 3
jmp 0x45c4a1
push 4
jmp 0x45c4a1
push 5
jmp 0x45c4a1
lea esi, [edi + 8]
jmp 0x45c5ca
lea esi, [edi + 0xa]
jmp 0x45c5ca
lea esi, [edi + 0xc]
jmp 0x45c5ca
lea esi, [edi + 0xe]
jmp 0x45c5ca
lea esi, [edi + 0x10]
jmp 0x45c4e3
xor esi, esi
cmp eax, 0xa
jne 0x45c5ca
push ebx
lea ecx, [ebp - 8]
call fcn.00404190
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45c5ab
xor ebx, ebx
and dword [ebp - 0xc], ebx
cmp dword [ebp - 4], ebx
je 0x45c5ba
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x61d860
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 1
je 0x45c53e
cmp dword [ebp - 0x10], 2
jne 0x45c5ab
lea ecx, [ebp - 8]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x61d860
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45c586
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
shr eax, 1
inc ebx
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040e311
test ebx, ebx
je 0x45c5ab
push 0x61d880
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
jne 0x45c5ab
lea esi, [edi + 0x12]
cmp dword [ebp - 4], 0
je 0x45c5ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
and dword [ebp - 4], 0
add ecx, 0xfffffff0
call fcn.004023e0
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret