joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454f40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505210
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x56cfb4], 0
jne 0x454fba
push 0x110
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x120], 6
mov byte [0x56cfb4], 1
setae al
mov byte [0x56cfb5], al
jmp 0x454fbf
mov al, byte [0x56cfb5]
test al, al
je 0x455111
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x128]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x455078
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x455008
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_OpenProcessToken:_0x_08x.
push str.kupdate::KProcessUtils::IsProcessInSplitToken
push 0x66
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412230
mov eax, dword [ebp - 0x128]
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x455041
cmp eax, 0xffffffff
je 0x455041
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0
push eax
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionPoliciesSystemEnableLUA
call fcn.0044cd70
add esp, 0xc
test eax, eax
js 0x455111
cmp dword [ebp - 0x130], 0
setne al
jmp 0x455113
lea eax, [ebp - 0x134]
mov dword [ebp - 0x12c], 1
push eax
push 4
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], 0
push eax
push 0x12
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4550d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4550c0
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_GetTokenInformation:_0x_08x.
push str.kupdate::KProcessUtils::IsProcessInSplitToken
push 0x70
jmp 0x455015
mov eax, dword [ebp - 0x12c]
cmp eax, 2
je 0x4550e6
cmp eax, 3
je 0x4550e6
xor bl, bl
jmp 0x4550e8
mov bl, 1
mov eax, dword [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x455105
cmp eax, 0xffffffff
je 0x455105
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x455041
mov al, 1
jmp 0x455113
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x4554f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp - 6]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.major:__d__minor:__d__type:__d
push str.kupdate::KProcessUtils::IsWin7OrLater
push 0x4b3
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 4
call fcn.00412230
mov eax, dword [ebp - 0x11c]
add esp, 0x20
cmp eax, 6
jne 0x455590
cmp byte [ebp - 6], 1
mov eax, dword [ebp - 0x118]
jne 0x45557b
cmp eax, 1
je 0x455592
cmp eax, 2
jae 0x455592
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
jbe 0x455580
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret

Function at 0x4555b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x56cfc0], 0
jne 0x455641
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
ja 0x455627
jne 0x45560d
cmp dword [ebp - 0x110], 2
jae 0x455627
mov al, byte [0x56cfc1]
mov byte [0x56cfc0], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
mov al, 1
mov byte [0x56cfc1], al
mov byte [0x56cfc0], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [0x56cfc1]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret

Function at 0x455660
Capabilities:
Shutdown system

Disassembly:
push esi
push str.Restart_computer.
push str.kupdate::KProcessUtils::RestartComputer
push 0x3dc
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 7
call fcn.00412230
push 1
push str.SeShutdownPrivilege
call fcn.00453270
mov esi, eax
add esp, 0x1c
test esi, esi
jns 0x4556b4
push esi
push str.Failed_ajust_privilege:_0x_08x.
push str.kupdate::KProcessUtils::RestartComputer
push 0x3e0
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412230
add esp, 0x18
mov eax, esi
pop esi
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4556fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4556d7
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_exit_window:_0x_08x.
push str.kupdate::KProcessUtils::RestartComputer
push 0x3e6
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412230
add esp, 0x18
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x457c80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505690
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x567e00]
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]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
push 0x20a
push 0
mov dword [ebp - 0x224], esi
push eax
mov dword [ebp - 0x224], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x457ce0
mov eax, dword [ebx]
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, eax
mov dword [ebp - 0x240], ecx
test ecx, ecx
je 0x457e8e
cmp ecx, 0x104
ja 0x457d4c
xor eax, eax
mov dword [esi], 0
lea ecx, [ebp - 0x21c]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea edx, [ecx + 2]
mov word [esi], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457d30
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
jmp 0x457ead
lea eax, [ecx + 1]
mov dword [ebp - 0x234], 0
xor edi, edi
mov dword [ebp - 0x220], eax
xor ebx, ebx
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
test eax, eax
je 0x457e05
cmp eax, 0x7fffffff
ja 0x457ed2
push eax
lea ecx, [ebp - 0x230]
call fcn.00403890
mov ecx, dword [ebp - 0x220]
mov edi, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], edi
lea edx, [ecx + ecx]
lea ecx, [ebp - 0x234]
mov ax, word [ecx]
lea ebx, [edx + edi]
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x228], ebx
cmp ax, word [ecx]
mov ecx, dword [ebp - 0x220]
jne 0x457de6
push edx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x457df7
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x240]
mov eax, ebx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x224]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x457e1a
mov eax, dword [eax]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457e41
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00403a70
test edi, edi
je 0x457eb4
sub ebx, edi
mov eax, edi
and ebx, 0xfffffffe
cmp ebx, 0x1000
jb 0x457e82
mov edi, dword [edi - 4]
add ebx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x457e82
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push edi
call fcn.004c6f6f
add esp, 8
jmp 0x457eb4
xor eax, eax
mov dword [esi], 0
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x516c74
mov ecx, esi
call fcn.00403a70
mov eax, esi
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.004c6f8b
mov esp, ebp
pop ebp
ret
call fcn.00403880
int3
Function at 0x45a7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505a56
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.CBalloonBase_class_ATL::CDialogImpl_class_KInstallPatchDlg__class_ATL::CWindow__.0
mov dword [esi + 4], vtable.CBalloonBase_class_ATL::CDialogImpl_class_KInstallPatchDlg__class_ATL::CWindow__.1.0
mov dword [ebp - 4], 0
call fcn.0040fa60
test eax, eax
je 0x45a98f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 1
call fcn.0040fa60
test eax, eax
je 0x45a98f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov dword [ebp - 4], 2
call fcn.0040fa60
test eax, eax
je 0x45a98f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi], vtable.KInstallPatchDlg.0
mov dword [esi + 4], vtable.KInstallPatchDlg.1.0
and dword [esi + 0xa4], 0xfffffff0
mov dword [esi + 0x64], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 4], 3
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], 8
mov dword [esi + 0x88], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x8c], 0xffffffff
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x60], vtable.WTL::CBitmapButton.0
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 4
call fcn.0045a390
lea ecx, [esi + 0x308]
mov byte [ebp - 4], 5
call fcn.0045a390
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041d020
int3
Function at 0x45ab40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505b13
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00420560
add eax, 0x10
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
sub eax, 0x10
mov dword [ebp - 4], 0
push eax
call fcn.00420560
add eax, 0x10
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
sub eax, 0x10
mov byte [ebp - 4], 1
push eax
call fcn.00420560
add eax, 0x10
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov byte [ebp - 4], 2
sub eax, 0x10
push eax
call fcn.00420560
add esp, 0x10
add eax, 0x10
mov dword [edi + 0x78], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45c630
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
call esi
push 1
mov dword [ebp - 0x28], eax
call esi
lea ecx, [ebx + 0x50]
mov esi, eax
push ecx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
cmp dword [ebx + 0x48], 0
je 0x45c6f4
test edi, edi
je 0x45c6bb
mov eax, dword [edi + 0xc]
add eax, dword [edi + 4]
sub eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [edi + 8]
mov edi, dword [ebp - 0xc]
sub eax, edi
add eax, dword [ecx]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar ebx, 1
sar eax, 1
mov ecx, eax
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
add edi, ecx
mov eax, ebx
mov dword [ebp - 0xc], edi
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
jmp 0x45c7a5
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
add eax, esi
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x14]
sub eax, edi
sar ebx, 1
add eax, dword [ebp - 0x28]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
add edi, ecx
mov eax, ebx
mov dword [ebp - 0xc], edi
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], ebx
jmp 0x45c7a5
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, esi
mov eax, dword [ebp - 0x14]
add edi, 0xfffffffe
mov esi, dword [ebp - 0xc]
add edi, ecx
mov ecx, dword [ebp - 0x28]
sub eax, esi
add ecx, 0xfffffff4
add ecx, eax
mov eax, ecx
sub eax, dword [ebp - 0x14]
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, edi
mov dword [ebp - 0xc], esi
sub eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
push 0
push str.Shell_TrayWnd
mov dword [ebp - 0x10], edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x45c7a8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [ebp - 0x18]
mov ecx, ebx
mov esi, dword [ebp - 0x1c]
mov eax, esi
mov edi, dword [ebp - 0x20]
sub ecx, edi
mov edx, dword [ebp - 0x24]
sub eax, edx
cmp ecx, eax
jle 0x45c792
test edx, edx
je 0x45c7a8
sub edx, esi
add edx, dword [ebp - 0x14]
mov eax, edx
sub eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edx
jmp 0x45c7a8
test edi, edi
je 0x45c7a8
mov esi, dword [ebp - 0x10]
sub esi, ebx
add esi, edi
mov eax, esi
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], esi
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 8
Function at 0x460d00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x460dba
push edi
lea edi, [esi + 4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x460d46
call fcn.004c83f5
mov dword [edi + 0x14], eax
test eax, eax
jne 0x460d46
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
push ebx
push 0
push 0
push eax
call fcn.004c84f7
lea ebx, [edi + 8]
test ebx, ebx
je 0x460df9
test edi, edi
je 0x460df9
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5673e4
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5673fc]
mov dword [ebx + 8], eax
push 0x5673e4
mov dword [0x5673fc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x4613c0
push dword [ebp + 8]
push 0x165
push dword [0x56d9e4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop ebx
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x48], 0
mov eax, dword [esi + 8]
push 0x53
push 0
push 0
push 0
push 0
je 0x460de9
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop esi
pop ebp
ret 4
push 1
push 0xc0000005
call fcn.004116f0
int3
Function at 0x460e10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x460e2f
push eax
push eax
call fcn.0045c630
mov eax, dword [esi + 0x38]
test eax, eax
je 0x460ed9
push edi
lea edi, [esi + 4]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x14]
test eax, eax
jne 0x460e65
call fcn.004c83f5
mov dword [edi + 0x14], eax
test eax, eax
jne 0x460e65
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
push ebx
push 0
push 0
push eax
call fcn.004c84f7
lea ebx, [edi + 8]
test ebx, ebx
je 0x460f18
test edi, edi
je 0x460f18
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x5673e4
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5673fc]
mov dword [ebx + 8], eax
push 0x5673e4
mov dword [0x5673fc], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x4613c0
push dword [ebp + 8]
push 0x165
push dword [0x56d9e4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop ebx
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x48], 0
mov eax, dword [esi + 8]
push 0x53
push 0
push 0
push 0
push 0
je 0x460f08
push 0xfffffffffffffffe
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
pop esi
pop ebp
ret 4
push 1
push 0xc0000005
call fcn.004116f0
int3
Function at 0x46ac30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x210]
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x46acb0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x20c]
push eax
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x46e350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506b0d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x567e00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xf0], 0
jne 0x46e46b
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [edi + 0xf0], eax
test eax, eax
jne 0x46e46b
mov dword [ebp - 4], eax
call fcn.0040fa60
mov ecx, eax
test ecx, ecx
je 0x46e487
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or ecx, eax
mov dword [ebp - 4], 1
jge 0x46e3e8
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00421770
mov esi, dword [ebp - 0x10]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push dword [esi - 8]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
test eax, eax
js 0x46e47d
cmp eax, dword [esi - 8]
jg 0x46e47d
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0xd
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x10]
push str.winhlp32.exe
call fcn.00424500
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46e44c
push 0x6a
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x46e44c
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0xf0], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46e46b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041d020
push 0x80004005
call fcn.0041d020
int3