joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180043860
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rsp + 0x38], 0
jne 0x180043891
mov r8d, 0x4d
lea rdx, str.C:Buildserver_agent_work8_sdriversEPPLibBBRequest.cpp
lea rcx, str.pNotificationCallback
call fcn.1800a60d0
xor eax, eax
lea rcx, str.BBRequest_RegisterService_called_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rsp + 0x38], 0
jne 0x1800438ad
mov eax, 0x80070057
jmp 0x1800438e1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
lea rcx, str.BBRequest_RegisterService_called_1_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1800438df
lea rcx, str.BBRequest_RegisterService_called_2_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add rsp, 0x28
ret

Function at 0x180043910
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call fcn.180043860
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x18004394a
mov eax, dword [rsp + 0x30]
jmp 0x180043a88
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 8]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x40], rax
lea rax, [0x1800435c0]
mov qword [rsp + 0x48], rax
lea rax, [0x1800d40f5]
mov qword [rsp + 0x20], rax
lea r9, [0x1800d40f4]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.1800423f0
mov qword [rsp + 0x58], rax
mov eax, 8
imul rax, rax, 7
mov rcx, qword [rsp + 0x38]
mov qword [rcx + rax], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call fcn.180043a90
nop
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov r8, qword [rsp + 0x70]
mov edx, 0x53494242
mov rcx, qword [rsp + 0x78]
call fcn.180068880
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x180043a23
mov eax, dword [rsp + 0x30]
jmp 0x180043a88
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 8]
call fcn.180068620
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x180043a45
mov eax, dword [rsp + 0x30]
jmp 0x180043a88
lea rcx, str.BBRequest_Initialize_called_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [rsp + 0x30], 0
jge 0x180043a77
lea rcx, str.BB_Request_initialize_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 8]
call fcn.180068700
lea rcx, str.BB_Request_initialize_success_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [rsp + 0x30]
add rsp, 0xe8
ret
Function at 0x180044d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x68], 0
jne 0x180044de1
mov r8d, 0x24
lea rdx, [0x1800d4640]
lea rcx, str.pdwSelect
call fcn.1800a60d0
xor eax, eax
cmp qword [rsp + 0x68], 0
jne 0x180044df3
mov eax, 0x57
jmp 0x180044ead
mov rax, qword [rsp + 0x68]
mov dword [rax], 1
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SYSTEMSELECT
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180044e3e
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
jmp 0x180044ead
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Current
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x180044e8b
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
jmp 0x180044ead
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x44]
mov dword [rax], ecx
cmp qword [rsp + 0x38], 0
je 0x180044ea9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x58
ret
Function at 0x180044ed0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 6
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x298], 0
je 0x180044f42
cmp qword [rsp + 0x2a0], 0
jne 0x180044f5d
mov r8d, 0xa9
lea rdx, [0x1800d47d0]
lea rcx, [0x1800d4848]
call fcn.1800a60d0
xor eax, eax
cmp qword [rsp + 0x298], 0
je 0x180044f73
cmp qword [rsp + 0x2a0], 0
jne 0x180044f7d
mov eax, 0x57
jmp 0x1800450e6
mov eax, 2
imul rax, rax, 0
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x298]
movzx eax, word [rdx + rax]
mov word [rsp + rcx + 0x50], ax
mov eax, 2
imul rax, rax, 1
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x298]
movzx eax, word [rdx + rax]
mov word [rsp + rcx + 0x50], ax
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180044ff7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
jmp 0x1800450e6
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], 0xffffffffffffffff
inc qword [rsp + 0x28]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp word [rax + rcx*2], 0
jne 0x18004500a
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x298]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], 0xffffffffffffffff
inc qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
cmp word [rcx + rdx*2], 0
jne 0x18004503b
mov rcx, qword [rsp + 0x30]
lea rax, [rax + rcx + 1]
mov qword [rsp + 0x38], rax
mov eax, 2
mul qword [rsp + 0x38]
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800a5988
mov rcx, qword [rsp + 0x2a0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x2a0]
cmp qword [rax], 0
jne 0x1800450a4
mov dword [rsp + 0x20], 0x5aa
mov eax, dword [rsp + 0x20]
jmp 0x1800450e6
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rax]
call fcn.1800a631c
mov rax, qword [rsp + 0x298]
add rax, 4
mov r8, rax
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x2a0]
mov rcx, qword [rax]
call fcn.1800a629c
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x280
pop rdi
ret
Function at 0x1800463c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x1040
call fcn.180099a60
sub rsp, rax
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
lea rax, [rsp + 0x1060]
mov qword [rsp + 0x20], rax
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x1058]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_wvsprintfW]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x1040
pop rdi
ret
Function at 0x180046d20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
add rax, 8
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
add rax, 8
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x180046d71
mov rax, qword [rsp + 0x30]
add rax, 8
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
jmp 0x180046da3
mov rax, qword [rsp + 0x30]
add rax, 8
lea rdx, [0x1800d89a0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, qword [rsp + 0x30]
add rax, 8
lea rdx, str.eppdisk.sys
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcatW]
add rsp, 0x20
pop rdi
ret
Function at 0x1800472d0
Capabilities:
Check for time delay via gettickcount
Print debug messages
Query service status

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x98], 0xea60
jae 0x18004732b
mov dword [rsp + 0x98], 0xea60
cmp dword [rsp + 0x98], 0x1d4c0
jbe 0x180047343
mov dword [rsp + 0x98], 0x1d4c0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18004736a
mov eax, 0x80070006
jmp 0x1800474eb
mov r8d, 0x2c
lea rdx, [0x1800d5cb0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1800473a4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80070006
jmp 0x1800474eb
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1800473ea
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80070006
jmp 0x1800474eb
cmp dword [rsp + 0x54], 1
jne 0x18004740e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1800474eb
cmp dword [rsp + 0x54], 1
je 0x1800474d1
xor edx, edx
mov eax, dword [rsp + 0x68]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x3e8
jae 0x18004743e
mov dword [rsp + 0x30], 0x3e8
jmp 0x180047450
cmp dword [rsp + 0x30], 0x2710
jbe 0x180047450
mov dword [rsp + 0x30], 0x2710
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x18004748a
mov dword [rsp + 0x34], 0x80070006
jmp 0x1800474d1
cmp dword [rsp + 0x54], 1
jne 0x18004749b
mov dword [rsp + 0x34], 0
jmp 0x1800474d1
cmp dword [rsp + 0x54], 4
jne 0x1800474af
lea rcx, str.A2Service_is_still_running_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x48]
cmp eax, dword [rsp + 0x98]
jbe 0x1800474cc
mov dword [rsp + 0x34], 0x8001011f
jmp 0x1800474d1
jmp 0x18004740e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x88
ret
Function at 0x18004a1d0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18004a30f
mov rax, qword [rsp + 0xd0]
add rax, 0x418
xor edx, edx
mov rcx, rax
call fcn.18000ea90
movzx eax, al
test eax, eax
je 0x18004a30f
mov rax, qword [rsp + 0xd0]
add rax, 0x418
mov rcx, rax
call fcn.18000ea80
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
lea rdx, [0x1800d6408]
mov rcx, qword [rsp + 0x40]
call fcn.180055220
lea rcx, [rsp + 0x58]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x38]
call fcn.180056f20
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
lea rcx, [rsp + 0x70]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x90]
mov edx, 4
mov rcx, qword [rsp + 0x50]
call fcn.180058330
cmp qword [rsp + 0x28], 0
jne 0x18004a31f
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18004a385
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18004a351
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
jmp 0x18004a376
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x18004a36a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x18004eb90
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x1f
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesEppElam
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18004ec07
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x18004ebfc
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x58
ret

Function at 0x18004ec30
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 3
lea r8, str.ImageHashCode
lea rdx, [0x1800d90a0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
add rsp, 0x38
ret

Function at 0x18004ecb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rax, qword [rsp + 0x30]
add rax, 0x210
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x30]
add rax, 0x210
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x18004ed07
mov rax, qword [rsp + 0x30]
add rax, 0x210
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
jmp 0x18004ed3d
mov rax, qword [rsp + 0x30]
add rax, 0x210
lea rdx, [0x1800d89e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, qword [rsp + 0x30]
add rax, 0x210
lea rdx, [0x1800d8a08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcatW]
add rsp, 0x20
pop rdi
ret
Function at 0x180051e20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x4c], 0
cmp dword [rsp + 0x98], 0
je 0x180051e6a
cmp qword [rsp + 0xa0], 0
jne 0x180051e85
mov r8d, 0x5cf
lea rdx, [0x1800d8660]
lea rcx, str.ulFeatureFlag__pbIsInstalled
call fcn.1800a60d0
xor eax, eax
cmp dword [rsp + 0x98], 0
je 0x180051e9a
cmp qword [rsp + 0xa0], 0
jne 0x180051ea4
mov eax, 0x57
jmp 0x180052009
mov rax, qword [rsp + 0xa0]
mov byte [rax], 0
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov r9d, 0x2001f
lea r8, [0x1800d8720]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.1800629e0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x180051f1e
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.180062250
mov eax, dword [rsp + 0x40]
jmp 0x180052009
xor eax, eax
test eax, eax
jne 0x180051f1e
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, [0x1800d8638]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x180051f6f
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
jmp 0x180051f88
cmp dword [rsp + 0x54], 4
je 0x180051f80
mov dword [rsp + 0x38], 0xd
jmp 0x180051f88
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x44], 0
cmp qword [rsp + 0x58], 0
je 0x180051fb8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x98]
mov ecx, dword [rsp + 0x4c]
and ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x98]
jne 0x180051fdf
mov byte [rsp + 0x30], 1
jmp 0x180051fe4
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0xa0]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x58]
call fcn.180062250
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180099a00
add rsp, 0x80
pop rdi
ret
Function at 0x1800532a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x1801060b8]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0xc0]
call fcn.1800512e0
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x1800534fd
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18005331f
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x3c], 0
jl 0x18005331f
mov dword [rsp + 0x30], 1
jmp 0x180053327
mov dword [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1800534fd
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0x4550
jne 0x18005336a
mov dword [rsp + 0x34], 1
jmp 0x180053372
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x1800534fd
lea rdx, str.PAGE
mov rcx, qword [rsp + 0x28]
call fcn.180064700
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800534fd
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x98], 0
lea r9, [rsp + 0x98]
mov r8d, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xc0]
call fcn.180053aa0
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x18005341c
lea rdx, str.Pattern_was_not_found_n
mov rcx, qword [rsp + 0xc0]
call fcn.1800463c0
jmp 0x1800534fd
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x1800534cb
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x180053489
mov dword [rsp + 0x38], 1
jmp 0x180053491
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1800534aa
mov rax, qword [rsp + 0x58]
add rax, 0x18
mov qword [rsp + 0x78], rax
jmp 0x1800534b3
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
lea rdx, str.Pattern_found__rva___08X_n
mov rcx, qword [rsp + 0xc0]
call fcn.1800463c0
lea r8, [rsp + 0xa0]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
call fcn.180053700
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
call fcn.180053670
cmp dword [rsp + 0xa0], 0
je 0x180053520
mov byte [rsp + 0x20], 1
jmp 0x180053525
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180099a00
add rsp, 0xb8
ret