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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566aab
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5d51c0]
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 eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x228], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x21c], 0x104
call fcn.0054cbf0
mov ecx, dword [ebp - 0x228]
add esp, 0xc
call fcn.00414a80
lea eax, [ebp - 0x224]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4132ab
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x224]
call esi
test eax, eax
jne 0x4132ab
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.004058d0
mov ecx, dword [ebp - 0x228]
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], 0
call fcn.004149a0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413274
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x21c], 0x104
push eax
push eax
push eax
push eax
mov word [ebp - 0x218], ax
inc ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x224]
call esi
test eax, eax
je 0x413222
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.0054a22c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413ca0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566b70
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004092f0
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00414120
mov eax, dword [ebp + 0xc]
push dword [eax - 0xc]
push eax
push 1
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0054cbf0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0054cbf0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054b04d
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054b5e8
mov eax, dword [ebp + 0xc]
add esp, 0x30
cmp dword [eax - 4], 1
jle 0x413d85
push dword [eax - 0xc]
lea ecx, [ebp + 0xc]
call fcn.00405590
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054b04d
mov eax, dword [ebp + 0xc]
push dword [eax - 8]
push eax
call fcn.0054b654
mov edx, eax
add esp, 0x14
test edx, edx
js 0x413ea0
mov ecx, dword [ebp + 0xc]
cmp edx, dword [ecx - 8]
jg 0x413ea0
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov word [eax + edx*2], cx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x413e06
push 0x104
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push str.progid
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.UserChoice
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0054b5e8
add esp, 0xc
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x413e60
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x413e81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00405730
int3
Function at 0x414120
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566c18
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5d51c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.004206b9
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x41416c
push 0x80004005
call fcn.00405730
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004092f0
add esp, 4
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00412560
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004092f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
push 0x10
push str.OpenWithProgids
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00408fb0
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, dword [ebp - 0x14]
test eax, eax
jne 0x4141f1
push 0
push 0
push 1
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x414211
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41422e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41424f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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 0x4147f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0054cbf0
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414856
sub eax, edx
sar eax, 1
jne 0x414878
push 4
push edi
push 1
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0054a22c
mov esp, ebp
pop ebp
ret 8
Function at 0x417800
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56718a
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], 0
push 0x5adca8
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004058d0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0xc0], 1
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov ecx, eax
call fcn.0041ea00
cmp eax, 0x804
ja 0x417911
je 0x417909
sub eax, 0x401
cmp eax, 0x28
ja case.0x417897.1026
movzx eax, byte [eax + 0x417a08]
jmp dword [eax*4 + 0x4179d0]
lea eax, [edi + 0x114]
jmp 0x41792d
lea eax, [edi + 0x11c]
jmp 0x41792d
lea eax, [edi + 0x124]
jmp 0x41792d
lea eax, [edi + 0x128]
jmp 0x41792d
lea eax, [edi + 0x12c]
jmp 0x41792d
lea eax, [edi + 0x130]
jmp 0x41792d
lea eax, [edi + 0x134]
jmp 0x41792d
lea eax, [edi + 0x138]
jmp 0x41792d
lea eax, [edi + 0x13c]
jmp 0x41792d
lea eax, [edi + 0x140]
jmp 0x41792d
lea eax, [edi + 0x144]
jmp 0x41792d
lea eax, [edi + 0x150]
jmp 0x41792d
lea eax, [edi + 0x154]
jmp 0x41792d
lea eax, [edi + 0x120]
jmp 0x41792d
cmp eax, 0x809
je 0x417927
cmp eax, 0xc0a
jne case.0x417897.1026
lea eax, [edi + 0x14c]
jmp 0x41792d
lea eax, [edi + 0x148]
push eax
mov ecx, esi
call fcn.00409360
push 0x5adca8
push dword [esi]
call fcn.0054bc86
add esp, 8
test eax, eax
jne 0x41798e
push 0x55
lea eax, [ebp - 0xbc]
push eax
push 0x1001
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x41798e
lea ecx, [ebp - 0xbc]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417970
sub ecx, edx
lea eax, [ebp - 0xbc]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00405780
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4179af
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret 8
Function at 0x41a770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
push eax
push 0
push 0
push 0
mov edi, ecx
mov dword [ebp - 4], 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x41a7e2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041f7ba
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41a7fe
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
push 2
call fcn.0041f7ba
mov ecx, dword [ebp + 8]
push 0x5adca8
push 1
push eax
mov dword [ecx], eax
call fcn.0054b04d
add esp, 0x10
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x41a820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a852
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0x14]
mov ecx, edx
push esi
lea esi, [ecx + 2]
jmp 0x41a860
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a860
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
push dword [ebp - 4]
test eax, eax
jne 0x41a844
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41e600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0xc], 4
xor bl, bl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetThreadUILanguage]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareHNCGlobal_Settings9.6User_Locales
push SysReAllocString
call edi
test eax, eax
jne 0x41e6aa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.LCID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41e69a
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareHNCGlobal_Settings9.6User_Locales
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41e6f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.LCID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e6f8
mov esi, dword [ebp - 4]
call fcn.0041e980
cmp al, 1
jne 0x41e6f8
mov bl, al
jmp 0x41e6f8
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SoftwareHNCGlobal_Settings9.6User_Locales
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41e6f8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.LCID
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e6f8
mov esi, dword [ebp - 4]
call fcn.0041e980
mov ecx, 1
movzx ebx, bl
cmp al, cl
cmove ebx, ecx
call fcn.0041e980
cmp al, 1
jne 0x41e70b
test bl, bl
mov eax, 0x409
cmove esi, eax
mov ecx, esi
call fcn.0041ea00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [str.Control_PanelDesktop_]
mov eax, dword [0x5b2460]
mov dword [ebp - 0x1e4], eax
mov ax, word [0x5b2464]
movdqu xmmword [ebp - 0x20c], xmm0
push 0x1da
movdqu xmm0, xmmword [0x5b2448]
mov word [ebp - 0x1e0], ax
lea eax, [ebp - 0x1de]
push 0
movdqu xmmword [ebp - 0x1fc], xmm0
push eax
movq xmm0, qword [0x5b2458]
movq qword [ebp - 0x1ec], xmm0
call fcn.0054cbf0
add esp, 0xc
mov dword [ebp - 0x21c], 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], 4
push eax
lea eax, [ebp - 0x20c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41e805
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.LogPixels
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
cmove ecx, dword [ebp - 0x214]
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret
Function at 0x41e820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x5b23d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
call esi
test eax, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
jne 0x41e86f
push str.SOFTWAREHNCSharedExecuteOption96Viewer
jmp 0x41e874
push str.SOFTWAREHNCSharedExecuteOption96
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41e8b5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push str.TFOffice
push dword [ebp - 4]
call esi
test eax, eax
jne 0x41e8b5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.TFOffice
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 1
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x41e8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x5b23d0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
call esi
test eax, eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
jne 0x41e91f
push str.SOFTWAREHNCSharedExecuteOption96Viewer
jmp 0x41e924
push str.SOFTWAREHNCSharedExecuteOption96
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x41e965
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push str.TFOffice
push dword [ebp - 4]
call esi
test eax, eax
jne 0x41e965
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.TFOffice
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
pop esi
sete al
mov esp, ebp
pop ebp
ret

Function at 0x41e980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREHNCSharedExecuteOption96
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e9f2
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push str.LightSize
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e9f2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.LightSize
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xc], 1
sete al
mov esp, ebp
pop ebp
ret
Function at 0x41f170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREHNCSharedExecuteOption96
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f1e2
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push str.HwpLangOption
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f1e2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.HwpLangOption
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xc], 1
sete al
mov esp, ebp
pop ebp
ret

Function at 0x41f1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREHNCSharedExecuteOption96
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f262
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push str.HwpSupport
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41f262
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.HwpSupport
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xc], 1
sete al
mov esp, ebp
pop ebp
ret

Function at 0x41f500
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x5d51c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.0054cbf0
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0054cbf0
add esp, 0x18
lea eax, [ebp - 0x41c]
push eax
push 1
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x5b261c
lea eax, [ebp - 0x41c]
push 0x105
push eax
call fcn.0054b5e8
push 0x5b2608
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0054b5e8
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0054b5e8
push 0x5b2608
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0054b5e8
push 0x5b2638
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0054b5e8
push 0x3c
lea eax, [ebp - 0x458]
push 0
push eax
call fcn.0054cbf0
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x458], 0x3c
mov dword [ebp - 0x448], eax
add esp, 0x48
lea eax, [ebp - 0x210]
mov dword [ebp - 0x44c], str.open
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x458]
mov dword [ebp - 0x43c], 5
push eax
mov dword [ebp - 0x454], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0054a22c
mov esp, ebp
pop ebp
ret 4
Function at 0x41f650
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc34
mov eax, dword [0x5d51c0]
xor eax, esp
mov dword [esp + 0xc30], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x24]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x40c
push 0
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], 0
call fcn.0054cbf0
add esp, 0xc
mov dword [esp + 0x10], 0x800
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
lea edi, [esp + 0x28]
lea ecx, [ecx]
xor eax, eax
mov dword [esp + 0x10], 0x800
mov word [esp + 0x438], ax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x41f710
lea eax, [esp + 0x438]
push eax
call fcn.0054c202
add esp, 4
mov dword [edi], eax
add edi, 4
inc esi
test ebx, ebx
je 0x41f6c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor edi, edi
lea ecx, [ecx]
mov esi, dword [esp + edi*4 + 0x28]
test esi, esi
je 0x41f752
push esi
push dword [esp + 0x10]
call ebx
test eax, eax
je 0x41f741
mov ecx, dword [esp + 0x18]
push esi
push dword [esp + 0x10]
call fcn.0041f650
push esi
call fcn.0054bdf4
add esp, 4
mov dword [esp + edi*4 + 0x28], 0
inc edi
cmp edi, 0x104
jl 0x41f720
push dword [esp + 0x14]
push dword [esp + 0x20]
call ebx
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc3c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054a22c
mov esp, ebp
pop ebp
ret 8

Function at 0x4241cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00423eb2
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x424203
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00424224
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8