joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426b40
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, ecx
push edi
push 0
push str.Halo_Desktop_Wnd_class
mov dword [ebp - 0xc], ebx
call esi
push 0
mov edi, eax
push str.Halo_Desktop_settingwnd_class
mov dword [ebp - 8], edi
call esi
mov esi, eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x426be9
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, eax
push 1
push edi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0
push edi
push ebx
call esi
push 0
push 1
push 0x407
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [eax + 0x498], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x498]
cmp eax, 0x1e
jae 0x426c25
test edi, edi
je 0x426c25
test eax, eax
jne 0x426c0a
push eax
push eax
push 0x435
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0xc8
push 0x7d6
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
inc dword [ebx + 0x498]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426f30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x65b500]
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
movzx eax, word [ebp + 0xc]
sub eax, 0x6f
je 0x4270c7
sub eax, 1
jne 0x427101
lea eax, [ebp - 0x2c]
push eax
call fcn.00421510
mov edx, dword [eax]
xor eax, eax
mov ecx, edx
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x426fa0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004167f0
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x426fd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
cmovae edx, dword [ebp - 0x28]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427000
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.004167f0
cmp dword [ebp - 0x34], 0
je 0x427087
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
cmovae eax, dword [ebp - 0x44]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 0x6c], 0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x100c
mov dword [ebp - 0x78], str.properties
mov dword [ebp - 0x70], 0x603f94
mov dword [ebp - 0x68], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4270bd
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4270b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427120
push edx
push ecx
call fcn.004da0c6
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00409b00
jmp 0x427101
lea eax, [ebp - 0x2c]
push eax
call fcn.00421510
mov esi, dword [ebp - 0x2c]
mov ecx, edi
push esi
mov dword [ebp - 4], 0
call fcn.00428830
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x427101
mov ecx, dword [esi]
push esi
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.004da36e
mov esp, ebp
pop ebp
ret 0x10
call fcn.005c8d19
int3
Function at 0x428830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6158
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4288b1
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x4288c3
push 0
push 0
push eax
push 0x43e650
push 0
push 0
mov dword [ebp - 4], 0
mov dword [ebp + 8], 0
call fcn.005cbfd8
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00421de0
mov ecx, eax
call fcn.0040c380
test eax, eax
je 0x4288a9
mov ecx, esi
call fcn.0041ed00
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x8007000e
call fcn.004064e0
int3
Function at 0x42fb20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6920
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x38]
push 0xffffffffffffffff
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edi, eax
cmp edi, 1
jne 0x42fb80
cmp dword [esi + 0x40], 0
jne 0x42fb84
call ebx
mov dword [esi + 0x40], eax
jmp 0x42fb84
test edi, edi
je 0x42fba7
cmp dword [esi + 0x30], 0
jbe 0x42fc9b
cmp edi, 1
jne 0x42fc9b
call ebx
sub eax, dword [esi + 0x40]
cmp eax, 0x2710
jae 0x42fc9b
lea ecx, [ebp - 0x40]
call fcn.00444d10
lea edi, [esi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x14], edi
test edi, edi
je 0x42fbcc
mov eax, dword [edi]
push edi
call dword [eax]
cmp dword [esi + 0x30], 0
mov byte [ebp - 4], 1
jbe 0x42fc28
mov eax, dword [esi + 0x20]
test eax, eax
je 0x42fbdf
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [esi + 0x2c]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x40]
call fcn.00444d80
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x24]
dec ecx
and ecx, dword [esi + 0x2c]
push 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
call dword [eax]
add dword [esi + 0x30], 0xffffffff
jne 0x42fc16
mov dword [esi + 0x2c], 0
jmp 0x42fc19
inc dword [esi + 0x2c]
cmp dword [esi + 0x30], 0
jbe 0x42fc28
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
test edi, edi
je 0x42fc44
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x3c]
push dword [esi]
mov dword [ebp - 0x2c], 0x2711
mov eax, dword [ecx]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42fc87
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x1388
push 1
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x4a
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00444d70
jmp 0x42fb50
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42fcd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6948
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x34]
test eax, eax
jne 0x42fd3f
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
push eax
push 1
push eax
call esi
push 0
push 0
push 0
push 0
mov dword [edi + 0x38], eax
call esi
push 0
push 0
push edi
push 0x42fe70
push 0
push 0
mov dword [edi + 0x3c], eax
call fcn.005cbfd8
add esp, 0x18
mov dword [edi + 0x34], eax
test eax, eax
je 0x42fe06
cmp dword [edi + 0x38], 0
je 0x42fe06
cmp dword [edi + 0x3c], 0
je 0x42fe06
lea ebx, [edi + 4]
mov dword [ebp - 0x18], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x42fd69
mov eax, dword [ebx]
push ebx
call dword [eax]
mov eax, dword [edi + 0x30]
mov ecx, dword [edi + 0x28]
inc eax
mov dword [ebp - 4], 0
cmp ecx, eax
ja 0x42fd88
push 1
lea ecx, [edi + 0x20]
call fcn.0042fec0
mov ecx, dword [edi + 0x28]
lea eax, [ecx - 1]
and dword [edi + 0x2c], eax
mov eax, dword [edi + 0x30]
add eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x28]
dec ecx
and ecx, eax
lea eax, [ecx*4]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x10], eax
cmp dword [ecx + eax], 0
jne 0x42fdc5
push 0x14
call fcn.004da3a2
mov ecx, dword [edi + 0x24]
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx], eax
mov eax, edx
mov ecx, dword [edi + 0x24]
push dword [ebp + 8]
mov ecx, dword [eax + ecx]
call fcn.00444c70
inc dword [edi + 0x30]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x42fde4
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x435d10
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x668104]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
test al, 1
jne 0x435d67
or eax, 1
mov dword [0x668104], eax
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x435e6f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x602230
mov dword [0x668100], eax
call fcn.004da359
add esp, 4
mov eax, dword [0x668100]
cmp dword [eax - 0xc], 0
jne 0x435e4d
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.HaloDesktopData
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]
test eax, eax
jne 0x435dd3
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.Config.ini
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]
test eax, eax
jne 0x435e1e
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x435e1e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x435e27
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, 0x668100
call fcn.00408d30
mov eax, dword [0x668100]
add eax, 0xfffffff0
push eax
call fcn.00407c20
mov ecx, dword [ebp - 4]
add esp, 4
add eax, 0x10
xor ecx, ebp
mov dword [esi], eax
mov eax, esi
pop esi
call fcn.004da36e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004064e0
int3
Function at 0x436750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f71bb
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x65b500]
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 dword [ebp - 0x828], edi
cmp word [0x667800], 0
jne 0x43688a
push 0x20219
push str.SOFTWAREHaloDesktop
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.004147c0
mov ebx, dword [ebp - 0x824]
test eax, eax
jne 0x43687f
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push str.Setup_Path
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43687f
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x43681c
cmp eax, 2
jne 0x43687f
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x436839
test al, 1
jne 0x43687f
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x436842
jmp 0x43687f
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x667800
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x436872
movzx eax, word [esi + ecx]
test ax, ax
je 0x436872
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x436854
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x43688a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x436901
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x667800
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4368bf
movzx eax, ax
mov ecx, edi
push eax
call fcn.00406df0
jmp 0x4368e3
mov ecx, 0x667800
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4368c7
sub ecx, edx
sar ecx, 1
push ecx
push 0x667800
mov ecx, edi
call fcn.00408d30
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.004da36e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004064e0
int3
Function at 0x436c90
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7299
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x65b500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push 0
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebx, eax
shl ebx, 0x10
mov dword [ebp + 0xc], ebx
cmp esi, 0x2d
je 0x436cfa
cmp esi, 0x2e
je 0x436cfa
cmp esi, 0x90
je 0x436cfa
cmp esi, 0x21
jb 0x436cf4
cmp esi, 0x28
jbe 0x436cfa
cmp dword [ebp + 0x10], 0
je 0x436d03
or ebx, 0x1000000
mov dword [ebp + 0xc], ebx
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x436dcb
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov esi, 0x40
mov dword [ebp - 0x10], 1
add esi, esi
js 0x436dc1
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x436d55
push esi
mov ecx, edi
call fcn.00407430
mov ecx, dword [edi]
cmp esi, dword [ecx - 8]
jg 0x436dc1
mov dword [ecx - 0xc], esi
xor edx, edx
mov eax, dword [edi]
mov word [eax + esi*2], dx
lea eax, [esi + 1]
push eax
push ecx
push ebx
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x436d90
mov ecx, dword [edi]
test ecx, ecx
jne 0x436d84
xor eax, eax
jmp 0x436d94
push dword [ecx - 8]
push ecx
call fcn.005cbb65
add esp, 8
test eax, eax
js 0x436dc1
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x436dc1
mov dword [ecx - 0xc], eax
xor edx, edx
mov ecx, dword [edi]
cmp ebx, esi
mov ebx, dword [ebp + 0xc]
mov word [ecx + eax*2], dx
je 0x436d32
mov eax, edi
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.004064e0
push 0x80004005
call fcn.004064e0
int3
Function at 0x436f50
Capabilities:
Get common file path
Get file system object information
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f72df
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x65b500]
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 ebx, ecx
mov dword [ebp - 0x2e4], 0
mov eax, dword [ebx + 4]
cmp dword [eax - 0xc], 0
jl 0x437103
push str.Immersive_Control_Panel.lnk
push eax
call fcn.005c561e
add esp, 8
test eax, eax
je 0x437103
sub eax, dword [ebx + 4]
sar eax, 1
cmp eax, 0xffffffff
je 0x437103
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0x28], ax
mov edi, 7
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2e0], 0
push eax
push 0
push 0
push 3
push 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2e4], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x4370b3
push 0x2b4
lea eax, [ebp - 0x2dc]
push 0
push eax
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x2dc]
push 0x208
push 0x2b4
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2e0]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
js 0x4370b3
lea ecx, [ebp - 0x2d0]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437050
sub ecx, edx
lea eax, [ebp - 0x2d0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004167f0
mov edi, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
cmp edi, 8
cmovae esi, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 7
jne 0x4370b3
mov ecx, str._b_tg
mov edx, 7
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x4370b3
add ecx, 2
sub edx, 1
jne 0x437090
push 4
push 0x606f4c
lea ecx, [ebp - 0x28]
call fcn.004167f0
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x2e0]
call dword [sym.imp.SHELL32.dll_ILFree]
cmp edi, 8
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
test edx, edx
jne 0x4370d1
xor ecx, ecx
jmp 0x4370e5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4370d6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 8]
call fcn.00408d30
lea ecx, [ebp - 0x28]
call fcn.00409b00
mov eax, dword [ebx + 8]
cmp dword [eax - 0xc], 0
setne al
jmp 0x437105
xor al, al
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.004da36e
mov esp, ebp
pop ebp
ret
Function at 0x437130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f71bb
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x65b500]
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 dword [ebp - 0x828], edi
cmp word [0x665800], 0
jne 0x43726a
push 0x20219
push str.SOFTWAREHaloDesktop
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.004147c0
mov ebx, dword [ebp - 0x824]
test eax, eax
jne 0x43725f
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0x607504
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43725f
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x4371fc
cmp eax, 2
jne 0x43725f
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x437219
test al, 1
jne 0x43725f
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x437222
jmp 0x43725f
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x665800
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x437252
movzx eax, word [esi + ecx]
test ax, ax
je 0x437252
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x437234
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x43726a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x665800
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4372bb
mov ecx, 0x665800
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4372ae
movzx eax, word [esi + ecx]
test ax, ax
je 0x4372ae
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x437290
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x43733a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, 0x665800
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x4372f0
movzx eax, ax
mov ecx, edi
push eax
call fcn.00406df0
jmp 0x43731c
mov ecx, 0x665800
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x437300
sub ecx, edx
sar ecx, 1
push ecx
push 0x665800
mov ecx, edi
call fcn.00408d30
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.004da36e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004064e0
int3
Function at 0x437ca0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7483
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x65b500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
push 0xc
call fcn.004da3a2
add esp, 4
mov dword [ebp - 0x250], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x437cf7
mov ecx, eax
call fcn.004db9f0
jmp 0x437cf9
xor eax, eax
push 0x208
mov dword [edi], eax
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005c5370
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push str.HaloDesktopData
push eax
call esi
push str.halosearch.db
lea eax, [ebp - 0x21c]
push eax
call esi
mov ecx, dword [edi]
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 4], 1
call fcn.004dc540
mov eax, 1
jmp 0x437e92
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004da36e
mov esp, ebp
pop ebp
ret