joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800713b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor r11d, r11d
mov dword [rsp], 0x6c005c
lea r10, [0x180179388]
mov dword [rsp + 4], 0x640075
lea r9, [rsp]
mov dword [rsp + 8], 0x730061
mov dword [rsp + 0xc], 0x690068
mov rcx, r10
lea r8d, [r11 + 0x13]
mov dword [rsp + 0x10], 0x6c005f
mov dword [rsp + 0x14], 0x67006f
sub r9, r10
mov dword [rsp + 0x18], 0x2e006f
mov dword [rsp + 0x1c], 0x6e0070
mov dword [rsp + 0x20], 0x67
lea rax, [r8 + 0x7fffffeb]
test rax, rax
je 0x180071445
movzx edx, word [r9 + rcx]
test dx, dx
je 0x180071445
mov word [rcx], dx
add rcx, 2
sub r8, 1
jne 0x180071422
test r8, r8
lea rdx, [rcx - 2]
mov rax, r10
cmovne rdx, rcx
mov word [rdx], r11w
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a5130
add rsp, 0x38
ret
Function at 0x18007c730
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov r13d, r9d
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
lea rax, vtable.LogUtils::LogAppender.0
mov qword [rcx], rax
xor edi, edi
mov qword [rcx + 8], rdi
mov dword [rcx + 0x10], edi
mov byte [rcx + 0x14], 1
mov dword [rcx + 0x18], edi
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18007c905
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x20], rax
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18007c910
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x28], rax
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18007c8fa
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x30], rax
mov r14, 0xffffffffffffffff
mov dword [rbx + 0x38], r14d
lea rcx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov qword [rbx + 0x78], rdi
mov dword [rbx + 0x18], r13d
test rsi, rsi
jne 0x18007c80c
mov eax, edi
jmp 0x18007c81a
mov rax, r14
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x18007c810
mov r8d, eax
mov rdx, rsi
lea rcx, [rbx + 0x20]
call fcn.180009210
lea rdx, [rbx + 0x20]
lea rcx, [rbx + 0x28]
call fcn.180036030
test rbp, rbp
je 0x18007c84d
mov rax, r14
nop
inc rax
cmp word [rbp + rax*2], 0
jne 0x18007c840
mov edi, eax
mov r8d, edi
mov rdx, rbp
lea rcx, [rbx + 0x30]
call fcn.180009210
lea r8, [rbx + 0x28]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18007d380
nop
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.180036030
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x18007c899
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, qword [rbx + 0x28]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 8], rax
test rax, rax
je 0x18007c8da
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18007c8da
cmp dword [rbx + 0x18], 0
je 0x18007c8cf
mov rcx, qword [rbx + 0x20]
call fcn.1800e56f0
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80004005
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x18007eac0
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x160
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 0x180
lea r9d, [rbp + 0x40]
mov r8d, 0x8109
call fcn.1800e612c
mov esi, eax
test eax, eax
je 0x18007ec7f
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x60]
call fcn.1800d4600
lea edx, [rbp + 2]
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x60]
call fcn.18000d950
nop
lea rdx, str.open
lea rcx, [rsp + 0x60]
call fcn.18000c590
mov rcx, rax
mov rdx, rdi
call fcn.18000c590
mov rcx, rax
lea rdx, str._error.__
call fcn.18000c590
mov rcx, rax
mov edx, esi
call fcn.18000ec10
mov rcx, rax
lea rdx, [0x180120280]
call fcn.18000c590
nop
movdqa xmm0, xmmword [0x180113320]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], bp
mov dword [rsp + 0x30], 2
mov rcx, qword [rsp + 0xd8]
test cl, 2
jne 0x18007ebdd
mov rax, qword [rsp + 0xa8]
mov r8, qword [rax]
test r8, r8
je 0x18007ebdd
mov rax, qword [rsp + 0x88]
mov rdx, qword [rax]
cmp r8, qword [rsp + 0xd0]
cmovb r8, qword [rsp + 0xd0]
sub r8, rdx
jmp 0x18007ec11
test cl, 4
jne 0x18007ec1f
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
test rcx, rcx
je 0x18007ec1f
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax]
mov rax, qword [rsp + 0xb8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x38]
call fcn.180019da0
nop
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x18007ec75
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18007ec6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18007ecbb
call fcn.1800a4c5c
nop
lea rcx, [rsp + 0x60]
call fcn.18000f5c0
mov ecx, dword [rbx]
cmp ecx, 0xffffffff
je 0x18007ec93
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1800e66d8
jmp 0x18007ec98
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
call fcn.1800d79f8
nop
int3
Function at 0x180089bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x880
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rax, r9
mov r10, r8
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov rsi, qword [rsp + 0x8c0]
xor ebp, ebp
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x40], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], 7
mov word [rdx], bp
mov dword [rsp + 0x48], 1
test r8, r8
je 0x180089d18
test rax, rax
je 0x180089d18
test rsi, rsi
je 0x180089d18
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, rax
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180089d08
cmp qword [rsp + 0x40], rbp
je 0x180089d18
xor edx, edx
mov r8d, 0x802
lea rcx, [rsp + 0x60]
call fcn.1800d4600
mov dword [rsp + 0x4c], 0x800
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
mov r9d, 0xffff
mov r8, rsi
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x180089d08
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x180089cf0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180019da0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180089d18
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.1800a5130
add rsp, 0x880
pop rsi
pop rbp
pop rbx
ret
Function at 0x18008c4d0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x18008c608
test rdx, rdx
je 0x18008c608
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18008c608
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18008c608
xor ebx, ebx
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rax + 5]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x18008c5fe
xor eax, eax
mov qword [rsp + 0x88], rax
lea rdx, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008c5f5
cmp dword [rsp + 0x8c], ebx
jne 0x18008c5f5
mov edx, dword [rsp + 0x88]
xor r8d, r8d
mov rcx, rsi
call fcn.180070340
nop
mov dword [rsp + 0x70], ebx
xor edx, edx
mov rcx, rsi
call fcn.18007723c
mov rdx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x88], eax
jne 0x18008c5f5
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x18008d5b0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x38], rcx
mov rbx, qword [rsp + 0x2b0]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1800d4600
mov rax, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x40]
mov r8, qword [r14]
mov rdx, qword [rsi]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18008d6ad
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r15], rax
lea rax, [rsp + 0x40]
cmp rax, 0x10000
lea rax, [rsp + 0x40]
jae 0x18008d662
movzx edx, ax
mov rcx, r15
call fcn.180012580
jmp 0x18008d68b
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x18008d670
mov r8d, ecx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.180009210
nop
mov rax, r15
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800a5130
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x18008e1c0
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rbp + 8], rax
mov rbx, r9
mov r13, r8
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], r8
mov qword [rbp], rbx
mov r14d, dword [rbp + 0x80]
xor r12d, r12d
mov dword [rsp + 0x38], r12d
cmp qword [rcx + 0x20128], r12
jne 0x18008e243
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
mov r9, rcx
lea r8, [0x180090d10]
xor edx, edx
xor ecx, ecx
call fcn.1800d76ec
mov qword [rdi + 0x20128], rax
mov ecx, 0x28
call fcn.1800a5060
mov rsi, rax
mov qword [rbp - 0x48], rax
test rax, rax
je 0x18008e279
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.18000dad0
mov r9d, r14d
mov r8, rax
mov rdx, rsi
mov rcx, rdi
call fcn.18008e620
mov r12, rax
mov ecx, 0x18
call fcn.1800a5060
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18008e29a
mov rcx, rax
call fcn.18008fdc0
mov r14, rax
jmp 0x18008e29d
xor r14d, r14d
mov rdx, r15
mov rcx, r14
call fcn.1800969c0
mov dword [rsp + 0x38], 1
lea rsi, [r13 + 8]
lea rax, [0x18008de30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18008e2f2
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdi
mov dword [rsp + 0x38], 3
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rbp - 8], r14
lea rcx, [rsp + 0x40]
call fcn.18008e980
mov qword [rbp - 8], rax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x18008e338
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x70], r14
lea rcx, [rdi + 0x200e0]
lea rdx, [rbp - 0x40]
call fcn.180096ca0
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x18008e363
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x18008e37c
mov rax, qword [rcx]
cmp rcx, rsi
setne dl
call qword [rax + 0x20]
mov qword [rsi + 0x38], r14
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18008e3b2
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x18008e3ad
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18008e3e4
mov rcx, r8
call fcn.1800a4c5c
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, r15
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1800a5130
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1800d79f8
int3
Function at 0x1800905a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rdx
mov qword [rsp + 0x20], rdx
xor edi, edi
mov dword [rsp + 0x28], 0x4f0053
xor edx, edx
mov word [rsp + 0x4c], di
mov r8d, 0x208
mov dword [rsp + 0x2c], 0x540046
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x410057
mov dword [rsp + 0x34], 0x450052
mov dword [rsp + 0x38], 0x43005c
mov dword [rsp + 0x3c], 0x6d006f
mov dword [rsp + 0x40], 0x61004d
mov dword [rsp + 0x44], 0x740073
mov dword [rsp + 0x48], 0x720065
call fcn.1800d4600
lea r9, [rsp + 0x50]
mov rcx, 0xffffffff80000002
lea r8, str.c_identity
lea rdx, [rsp + 0x28]
call fcn.1800aae60
mov qword [rbx + 0x10], rdi
lea rax, [rsp + 0x50]
mov qword [rbx + 0x18], 7
mov r8, 0xffffffffffffffff
mov word [rbx], di
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x180090670
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.180019da0
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1800a5130
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180097100
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x18009711b
xor al, al
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x180097146
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x180097146
cmp eax, 0x50
je 0x180097146
cmp eax, 0xb7
jne 0x180097113
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180097150
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x290], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebp, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call fcn.1800d4600
xor r9d, r9d
lea r8d, [r9 + 0x1a]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18009739f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov rdi, 0xffffffffffffffff
cmp rax, 0x10000
jae 0x1800971fa
lea rax, [rsp + 0x40]
movzx edx, ax
lea rcx, [rsp + 0x28]
call fcn.180012580
jmp 0x18009721f
lea rcx, [rsp + 0x40]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x180097202
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.180009210
nop
xor r9d, r9d
mov r8, rbx
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1800974e0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180097251
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test ebp, ebp
je 0x1800972f2
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800972f2
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x1800973aa
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x18010e038]
cmp rdx, 0x10000
jae 0x1800972b3
movzx edx, dx
mov rcx, rsi
call fcn.180012580
jmp 0x1800972cc
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x1800972b6
mov r8d, eax
mov rcx, rsi
call fcn.180009210
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x180097373
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
jmp 0x180097373
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x18009731a
cmp rax, qword [rbx - 0x18]
jne 0x18009731a
lea rbp, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x180097350
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
je 0x180097399
mov eax, dword [rbx - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
add rdx, rdx
mov r8, rbx
lea rcx, [rbp + 0x18]
mov r9, rdx
call fcn.180009440
lea rax, [rbp + 0x18]
mov qword [rsi], rax
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x180097373
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
call fcn.180009380
nop
mov ecx, 0x80004005
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x1800974e0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov r14d, r9d
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800975fa
test r8, r8
je 0x1800975fa
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x180097677
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x105
or eax, ecx
jge 0x180097566
mov edx, 0x105
lea rcx, [rsp + 0x58]
call fcn.180009160
mov rbx, qword [rsp + 0x58]
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800d7f80
test eax, eax
js 0x180097682
cmp eax, dword [rbx - 0xc]
jg 0x180097682
mov dword [rbx - 0x10], eax
cdqe
xor ecx, ecx
mov word [rbx + rax*2], cx
test r14d, r14d
je 0x1800975eb
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800975eb
lea rdx, [0x18010e038]
mov rcx, rdi
call fcn.1800088c0
nop
lea rdx, [rbx - 0x18]
mov rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180097656
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x180097656
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.180035e30
jmp 0x1800975cb
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18009766c
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
lea rdx, [0x18010e038]
cmp rdx, 0x10000
jae 0x180097631
movzx edx, dx
mov rcx, rdi
call fcn.180012580
jmp 0x180097656
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x180097640
mov r8d, eax
mov rcx, rdi
call fcn.180009210
nop
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.180008c20
int3
mov ecx, 0x80004005
call fcn.180008c20
nop
mov ecx, 0x80070057
call fcn.180008c20
int3
Function at 0x1800a4380
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov rbx, r8
mov rsi, rdx
mov qword [r11 - 0x58], rdx
mov qword [r11 - 0x50], r9
mov rbp, qword [rsp + 0xc0]
xor r15d, r15d
mov dword [r11 - 0x68], r15d
mov qword [r11 - 0x40], r15
xor eax, eax
mov qword [rdx], rax
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x1800a4550
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rdi, [r15 - 1]
test eax, eax
jne 0x1800a4511
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800a4500
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x1800a4511
add eax, 0x10
mov dword [rsp + 0x50], eax
mov ecx, eax
lea rdx, [0x180179690]
call fcn.1800a59cc
mov rbx, rax
test rax, rax
je 0x1800a4511
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov rcx, rax
call fcn.1800d4600
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1800a44c2
mov rcx, rbx
call fcn.1800a4c5c
jmp 0x1800a4511
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1800a44c5
test rax, rax
je 0x1800a44f8
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1800a44e0
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.180009210
mov rcx, rbx
call fcn.1800a4c5c
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800a4511
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1800a452c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.180008c20
int3