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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x868
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
mov qword [rcx + 0x20], 7
mov qword [rcx + 0x18], r13
mov word [rcx + 8], r13w
mov dword [rsp + 0x38], 1
mov rsi, r13
cmp r8, r13
je 0x180053dd4
mov word [rsp + 0x50], r13w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rsp + 0x52]
call fcn.18009e990
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], r13d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x34]
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [rsp + 0x34], 1
je 0x180053d24
cmp dword [rsp + 0x34], 2
jne 0x180053dd4
mov eax, dword [rsp + 0x30]
cmp eax, r13d
je 0x180053dd4
cmp eax, 0x800
jbe 0x180053d7a
lea rcx, [rax + 2]
call fcn.18009aa3c
mov rsi, rax
mov r8d, dword [rsp + 0x30]
add r8, 2
xor edx, edx
mov rcx, rax
call fcn.18009e990
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
jmp 0x180053da0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, r12
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea rdx, [rsp + 0x50]
cmp rsi, r13
cmovne rdx, rsi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.18000f510
cmp rsi, r13
je 0x180053dd4
mov rcx, rsi
call fcn.18009a9fc
mov rax, rbx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x868
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180053df8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
mov eax, 0x20a0
call fcn.1800b3cb0
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x2090], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x80], rcx
xor ebp, ebp
mov dword [rsp + 0x44], ebp
lea ecx, [rbp + 8]
call fcn.18009a960
cmp rax, rbp
je 0x180053e53
mov qword [rax], rbx
jmp 0x180053e56
mov rax, rbp
mov qword [rbx], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
mov dword [rsp + 0x44], 1
lea r12, vtable.RegHandleHolder.0
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
mov rdi, qword [rsp + 0x50]
cmp rdi, rbp
je 0x180053fac
mov esi, ebp
mov word [rsp + 0x90], bp
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0x92]
call fcn.18009e990
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
jne 0x180053fa7
inc esi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.18000f510
nop
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180032320
nop
cmp qword [rsp + 0x78], 8
jb 0x180053f62
mov rcx, qword [rsp + 0x60]
call fcn.18009a864
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebp
je 0x180053f02
mov rdi, qword [rsp + 0x50]
jmp 0x180053fac
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x48], r12
cmp rdi, rbp
je 0x180053fbf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x2090]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x20a0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180053fe4
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x20a0
call fcn.1800b3cb0
sub rsp, rax
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x20c8], rbx
mov qword [rsp + 0x20d8], rbp
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x2090], rax
mov rdi, r8
mov rbx, rcx
mov qword [rsp + 0x80], rcx
xor ebp, ebp
mov dword [rsp + 0x44], ebp
lea ecx, [rbp + 8]
call fcn.18009a960
cmp rax, rbp
je 0x18005404a
mov qword [rax], rbx
jmp 0x18005404d
mov rax, rbp
mov qword [rbx], rax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov qword [rbx + 0x28], rbp
mov dword [rsp + 0x44], 1
lea r12, vtable.RegHandleHolder.0
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 8
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop
mov rdi, qword [rsp + 0x50]
cmp rdi, rbp
je 0x1800541a7
mov esi, ebp
mov word [rsp + 0x90], bp
xor edx, edx
mov r8d, 0x1ffe
lea rcx, [rsp + 0x92]
call fcn.18009e990
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
jne 0x1800541a2
inc esi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.18000f510
nop
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180032320
nop
cmp qword [rsp + 0x78], 8
jb 0x18005415d
mov rcx, qword [rsp + 0x60]
call fcn.18009a864
mov dword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x90]
mov edx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebp
je 0x1800540fd
mov rdi, qword [rsp + 0x50]
jmp 0x1800541a7
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x48], r12
cmp rdi, rbp
je 0x1800541ba
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x2090]
xor rcx, rsp
call fcn.180099fe0
lea r11, [rsp + 0x20a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800541e8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov qword [r11 - 0x30], rax
and qword [r11 - 0x38], 0
mov edi, r9d
mov rsi, r8
xor r9d, r9d
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x180054277
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x50]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x1800542b8
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18005434d
lea r8d, [rdi + 0x10]
lea rdx, str.gxdte
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x180054308
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x180054331
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x18005432c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x180054331
mov edi, 1
test rsi, rsi
je 0x18005433f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x18005434d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x180054410
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x18005448e
lea rdx, str.gxdte
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x180054462
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x180054472
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
test rdi, rdi
je 0x180054480
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x18005448e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800544a0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edi, edi
xor edx, edx
xor ecx, ecx
lea r8d, [rdi + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x180054542
lea r8d, [rdi + 4]
lea rdx, str.gxdte
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x1800544ee
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rbx, rbx
je 0x180054526
and dword [rsp + 0x20], edi
xor edx, edx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x18]
call fcn.18009e990
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x180054526
cmp dword [rsp + 0x24], 4
mov eax, 1
cmove edi, eax
test rsi, rsi
je 0x180054534
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x180054542
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x180059c74
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x148
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r13, r9
mov r15, r8
mov rbp, rdx
mov rbx, rcx
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x40], rax
mov r12, qword [rsp + 0x1c0]
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x180059f21
test rdx, rdx
je 0x180059f21
test r8, r8
je 0x180059f21
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180059d0d
mov eax, 4
jmp 0x180059f26
mov rcx, rbx
call fcn.180004b80
test eax, eax
jne 0x180059d23
mov eax, 0xd
jmp 0x180059f26
mov rcx, rbx
call fcn.1800504b4
mov r14, rax
test rax, rax
jne 0x180059d3c
lea eax, [r14 + 7]
jmp 0x180059f26
cmp rax, 0x40000000
jbe 0x180059d4e
mov eax, 6
jmp 0x180059f26
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x180059f03
or rsi, 0xffffffffffffffff
cmp rax, rsi
je 0x180059f1a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
shr r14, 0xb
lea rcx, [rsp + 0x60]
call fcn.180058268
nop
mov dword [rsp + 0x60], 1
xor eax, eax
mov rcx, rsi
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.18000f510
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbp
lea rcx, [rsp + 0x90]
call fcn.18000f510
mov r9, rsi
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xe0]
call fcn.18000d880
mov r9, rsi
xor r8d, r8d
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x108]
call fcn.18000d880
mov rcx, rbx
call fcn.1800594e0
mov rcx, rbp
call fcn.1800594e0
mov rcx, rbx
call fcn.180059528
mov r11, qword [rsp + 0x48]
mov qword [rsp + 0x20], r11
xor r9d, r9d
mov r8, r12
lea edx, [r14 + 0x1388]
lea rcx, [rsp + 0x60]
call fcn.180058cac
mov r14d, eax
mov rcx, rbx
call fcn.1800598c8
test r14d, r14d
jne 0x180059ef4
mov rcx, rbx
call fcn.1800594e0
mov rcx, rbp
call fcn.1800594e0
cmp qword [r12 + 0x18], 0
jne 0x180059eab
mov r9, rsi
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, r12
call fcn.18000d880
lea rcx, [r12 + 0x28]
mov r9, rsi
xor r8d, r8d
mov rdx, rdi
call fcn.18000d880
test r13, r13
jne 0x180059ecb
xor r8d, r8d
lea rdx, str..docwmtmp
mov rcx, rbp
call fcn.1800539e8
mov r13, rbp
test eax, eax
cmovne r13, rbx
lea rax, [r12 + 0x28]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 1
mov r8, r13
mov rdx, r15
mov rcx, rbp
call fcn.180058f64
nop
lea rcx, [rsp + 0x60]
call fcn.180058bd4
mov eax, r14d
jmp 0x180059f26
or rsi, 0xffffffffffffffff
cmp rax, rsi
je 0x180059f1a
test rax, rax
je 0x180059f1a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 5
jmp 0x180059f26
mov eax, 3
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x148
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18005a3ac
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x158
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbp, r9
mov r13, r8
mov rsi, rdx
mov rbx, rcx
mov r15, qword [rsp + 0x1c0]
mov r14, qword [rsp + 0x1c8]
test rcx, rcx
je 0x18005a62f
test rdx, rdx
je 0x18005a62f
test r8, r8
je 0x18005a62f
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18005a426
mov eax, 4
jmp 0x18005a634
mov rcx, rbx
call fcn.180004b80
test eax, eax
jne 0x18005a43c
mov eax, 0xd
jmp 0x18005a634
mov rcx, rbx
call fcn.1800504b4
mov r12, rax
test rax, rax
jne 0x18005a456
lea eax, [r12 + 7]
jmp 0x18005a634
cmp rax, 0x40000000
jbe 0x18005a468
mov eax, 6
jmp 0x18005a634
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x18005a614
cmp rax, 0xffffffffffffffff
je 0x18005a628
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.180036c90
test al, al
jne 0x18005a4c2
mov eax, 2
jmp 0x18005a634
shr r12, 0xb
mov eax, 0x7d0
cmp r12d, eax
cmovb r12d, eax
lea rcx, [rsp + 0x70]
call fcn.180058268
nop
mov dword [rsp + 0x70], 2
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18000f510
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.18000f510
mov rcx, rbx
call fcn.1800594e0
mov rcx, rsi
call fcn.1800594e0
mov rcx, rbx
call fcn.180059528
mov qword [rsp + 0x20], r15
mov r9d, 1
mov r8, r14
mov edx, r12d
lea rcx, [rsp + 0x70]
call fcn.180058cac
mov edi, eax
mov rcx, rbx
call fcn.1800598c8
test edi, edi
jne 0x18005a606
mov rcx, rbx
call fcn.1800594e0
mov rcx, rsi
call fcn.1800594e0
test rbp, rbp
jne 0x18005a59d
xor r8d, r8d
lea rdx, str..docwmtmp
mov rcx, rsi
call fcn.1800539e8
mov rbp, rsi
test eax, eax
cmovne rbp, rbx
mov qword [rsp + 0x60], socket
and qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
xor r8d, r8d
lea rdx, [0x1800cda5f]
lea rcx, [rsp + 0x40]
call fcn.18000f0f0
nop
lea rax, [r14 + 0x28]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 1
mov r8, rbp
mov rdx, r13
mov rcx, rsi
call fcn.180058f64
nop
cmp qword [rsp + 0x60], 0x10
jb 0x18005a606
mov rcx, qword [rsp + 0x48]
call fcn.18009a864
nop
lea rcx, [rsp + 0x70]
call fcn.180058bd4
mov eax, edi
jmp 0x18005a634
cmp rax, 0xffffffffffffffff
je 0x18005a628
test rax, rax
je 0x18005a628
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 5
jmp 0x18005a634
mov eax, 3
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18005a980
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x150
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x18005a9c2
lea edi, [rcx + 3]
jmp 0x18005aab5
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18005a9d4
lea edi, [rax + 4]
jmp 0x18005aab5
mov rcx, rbx
call fcn.180004b80
test eax, eax
jne 0x18005a9e8
lea edi, [rax + 0xd]
jmp 0x18005aab5
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov edi, 3
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x18005aa9c
cmp rax, 0xffffffffffffffff
je 0x18005aab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x70]
call fcn.180058268
nop
mov dword [rsp + 0x70], edi
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.18000f510
mov rcx, rbx
call fcn.180059528
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov r8, rbp
mov edx, 0x7d0
lea rcx, [rsp + 0x70]
call fcn.180058cac
mov edi, eax
mov rcx, rbx
call fcn.1800598c8
nop
lea rcx, [rsp + 0x70]
call fcn.180058bd4
test edi, edi
je 0x18005aaf1
jmp 0x18005aab5
cmp rax, 0xffffffffffffffff
je 0x18005aab0
test rax, rax
je 0x18005aab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 5
cmp qword [rsi + 0x18], 0
jne 0x18005aaf1
xor r8d, r8d
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.180058568
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call fcn.18000db80
nop
cmp qword [rsp + 0x68], 8
jb 0x18005aaf1
mov rcx, qword [rsp + 0x50]
call fcn.18009a864
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180099fe0
mov rbx, qword [rsp + 0x188]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret

Function at 0x18005c5d0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
mov eax, 0x1038
call fcn.1800b3cb0
sub rsp, rax
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov r8, rcx
lea r9, [rsp + 0x1048]
lea rcx, [rsp + 0x20]
mov edx, 0x800
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x1038
ret
Function at 0x18005c640
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
mov eax, 0x1880
call fcn.1800b3cb0
sub rsp, rax
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x1870], rax
lea rax, [rsp + 0x38]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea rdx, str.SoftwareWOW6432Nodeprojonepodlp_smpcache_
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18005c6bb
cmp dword [rsp + 0x34], 4
jne 0x18005c6bb
mov eax, dword [rsp + 0x30]
jmp 0x18005c6bd
xor eax, eax
test eax, eax
je 0x18005c79f
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
call fcn.18009e990
mov r11d, 0x5b
lea rcx, [rsp + 0x70]
mov r8d, 0x400
mov rdx, rbx
mov word [rsp + 0x70], r11w
call qword [sym.imp.SHLWAPI.dll_StrNCatW]
lea rdx, [0x1800d3b68]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
mov edx, 1
call fcn.180051f30
cmp qword [rax + 0x20], 8
jb 0x18005c725
mov rdx, qword [rax + 8]
jmp 0x18005c729
lea rdx, [rax + 8]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
cmp qword [rsp + 0x60], 8
jb 0x18005c746
mov rcx, qword [rsp + 0x48]
call fcn.18009a864
lea rdx, [0x1800d3b70]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rsp + 0x1898]
lea rcx, [rsp + 0x70]
mov r8d, 0x400
call qword [sym.imp.SHLWAPI.dll_StrNCatW]
lea r9, [rsp + 0x18a0]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x870]
mov edx, 0x800
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x870]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1870]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x1880
pop rbx
ret

Function at 0x18005c8d8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
mov eax, 0x2070
call fcn.1800b3cb0
sub rsp, rax
mov rax, qword [0x180101090]
xor rax, rsp
mov qword [rsp + 0x2060], rax
call fcn.18005c9f0
xor ebx, ebx
cmp al, bl
je 0x18005c9d6
lea rdx, [0x1800d3b90]
lea rcx, [rsp + 0x60]
mov word [rsp + 0x60], bx
mov word [rsp + 0x860], bx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1800d3ba4]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCatW]
lea rcx, [rsp + 0x30]
call fcn.18005c7b8
cmp qword [rax + 0x20], 8
jb 0x18005c962
mov r9, qword [rax + 8]
jmp 0x18005c966
lea r9, [rax + 8]
mov rax, qword [rsp + 0x2080]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x860]
mov edx, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_wnsprintfW]
cmp qword [rsp + 0x50], 8
jb 0x18005c99d
mov rcx, qword [rsp + 0x38]
call fcn.18009a864
lea r9, [rsp + 0x2088]
lea r8, [rsp + 0x860]
lea rcx, [rsp + 0x1060]
mov edx, 0x800
mov word [rsp + 0x1060], bx
call qword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea rcx, [rsp + 0x1060]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.180099fe0
add rsp, 0x2070
pop rbx
ret