joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca550
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov rsi, r9
mov qword [rax + 0x10], r14
mov r10, rcx
test r9, r9
je 0x1400ca708
cmp word [r9], r14w
je 0x1400ca708
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x1400ca6e8
cmp word [rdi], r14w
je 0x1400ca6e8
mov ebp, 0x7fffffff
mov rcx, rdi
mov eax, ebp
cmp word [rcx], r14w
je 0x1400ca5bc
add rcx, 2
sub rax, 1
jne 0x1400ca5ac
test rax, rax
je 0x1400ca69b
mov qword [rsp + 0x40], r14
lea rdx, str.SoftwareMicrosoftSQMClient
sub rbp, rax
xor r9d, r9d
lea rax, [rsp + 0x78]
mov rcx, r10
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
xor r8d, r8d
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x1400ca64b
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca6d4
test byte [rcx + 0x1c], 1
je 0x1400ca6d4
mov edx, SafeArrayAccessData
lea r9, str.SoftwareMicrosoftSQMClient
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
mov dword [rsp + 0x20], ebx
call fcn.1400056b0
jmp 0x1400ca6d4
mov rcx, qword [rsp + 0x78]
lea eax, [rbp*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400ca6d4
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca6d4
test byte [rcx + 0x1c], 1
je 0x1400ca6d4
mov edx, SafeArrayAccessData
mov r9, rdi
jmp 0x1400ca632
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca6cf
test byte [rcx + 0x1c], 1
je 0x1400ca6cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
mov edx, SafeArrayUnlock
mov r9d, 0x80070057
call fcn.1400036d4
mov ebx, 0x57
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400ca6e4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400ca73b
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca736
test byte [rcx + 0x1c], 1
je 0x1400ca736
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
jmp 0x1400ca726
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca736
test byte [rcx + 0x1c], 1
je 0x1400ca736
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
call fcn.140003614
mov eax, 0x57
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400ca758
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov dword [rax - 0x18], 4
mov dword [rax + 0x10], ebp
mov rsi, r9
mov qword [rax - 0x10], rbp
mov rdi, r8
test rdx, rdx
je 0x1400ca89a
cmp word [rdx], bp
je 0x1400ca89a
test r8, r8
je 0x1400ca87a
cmp word [r8], bp
je 0x1400ca87a
test r9, r9
jne 0x1400ca7d5
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca8c8
test byte [rcx + 0x1c], 1
je 0x1400ca8c8
lea edx, [rbp + 0x16]
jmp 0x1400ca8b8
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400ca866
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 2
je 0x1400ca866
mov r8d, dword [rsp + 0x58]
cmp r8d, 4
je 0x1400ca866
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca861
test byte [rcx + 0x1c], 1
je 0x1400ca861
mov rcx, qword [rcx + 0x10]
mov edx, reloc.Cabinet.dll_FDIDestroy
mov dword [rsp + 0x20], r8d
mov r9, rdi
lea r8, [0x140127ce0]
call fcn.1400056b0
mov ebx, reloc.Cabinet.dll_FCIFlushCabinet
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400ca876
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400ca8cd
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca8c8
test byte [rcx + 0x1c], 1
je 0x1400ca8c8
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
jmp 0x1400ca8b8
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400ca8c8
test byte [rcx + 0x1c], 1
je 0x1400ca8c8
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
call fcn.140003614
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ca8e8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, r9
mov qword [r11 + 0x18], rbp
mov rsi, rdx
test rdx, rdx
je 0x1400caa18
cmp word [rdx], bp
je 0x1400caa18
test r9, r9
je 0x1400ca9f8
cmp word [r9], bp
je 0x1400ca9f8
mov qword [r11 - 0x18], rbp
lea rax, [r11 + 0x18]
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], rbp
xor r8d, r8d
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
je 0x1400ca980
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400ca9e4
test byte [rcx + 0x1c], 1
je 0x1400ca9e4
lea edx, [rbp + 0x1a]
mov r9, rsi
jmp 0x1400ca9d0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x80]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400ca9e4
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400ca9e4
test byte [rcx + 0x1c], 1
je 0x1400ca9e4
mov edx, reloc.OLEAUT32.dll_DispGetParam
mov r9, rdi
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
mov dword [rsp + 0x20], eax
call fcn.1400056b0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400ca9f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400caa4b
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400caa46
test byte [rcx + 0x1c], 1
je 0x1400caa46
mov edx, DispGetParam
jmp 0x1400caa36
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400caa46
test byte [rcx + 0x1c], 1
je 0x1400caa46
mov edx, DispGetParam
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
call fcn.140003614
mov eax, 0x57
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1400cb4a0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r15d, r15d
mov rbx, rcx
lea rcx, [rsp + 0x52]
mov qword [rsp + 0x20], r15
xor edx, edx
mov word [rsp + 0x50], r15w
mov r8d, 0x206
mov r14d, r15d
mov rsi, r9
call sub.msvcrt.dll_memset
lea edi, [r15 + 0x57]
test rsi, rsi
jne 0x1400cb53d
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov rcx, qword [rcx + 0x10]
lea edx, [rdi - 0x13]
lea r8, [0x140127ce0]
call fcn.140003614
jmp 0x1400cb65f
mov r12d, 0x104
lea rcx, [rsp + 0x50]
mov edx, r12d
mov r8, rbx
call fcn.140036ea4
mov r9d, eax
test eax, eax
jns 0x1400cb585
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov edx, 0x4d
jmp 0x1400cb64f
mov ebx, r15d
mov r9d, ebx
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, rsi
call fcn.140069190
mov r9d, eax
test eax, eax
js 0x1400cb631
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400cb62c
lea r8, [rsp + 0x28]
xor edx, edx
mov rcx, rsi
call sub.KERNEL32.dll_GetFileAttributesExW
test eax, eax
je 0x1400cb5eb
test ebx, ebx
je 0x1400cb5de
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1400cb5eb
mov rax, qword [rsp + 0x3c]
mov r14d, ebx
mov qword [rsp + 0x20], rax
inc ebx
cmp ebx, 0xa
jb 0x1400cb588
mov r9d, r14d
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, rsi
call fcn.140069190
mov r9d, eax
test eax, eax
jns 0x1400cb62c
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov edx, 0x4f
jmp 0x1400cb64f
mov edi, r15d
jmp 0x1400cb65f
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cb65f
test byte [rcx + 0x1c], 1
je 0x1400cb65f
mov edx, 0x4e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
call fcn.1400036d4
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400cbfb8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ebp, dword [rsp + 0xb0]
xor ebx, ebx
mov edi, ebp
mov r13, r8
mov r15d, edx
mov r12, rcx
call sub.KERNEL32.dll_GetTickCount
mov r14d, eax
lea eax, [rbp - 1]
cmp eax, 0xfffffffd
ja 0x1400cbffc
mov edi, ebp
sub edi, ebx
mov r9d, edi
mov dword [rsp + 0x20], 0x4ff
xor r8d, r8d
mov rdx, r13
mov ecx, r15d
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov esi, eax
cmp eax, r15d
jne 0x1400cc055
mov ebx, 1
jmp 0x1400cc03a
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x1400cc024
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
sub ebx, r14d
cmp r14d, eax
jbe 0x1400cc066
dec ebx
cmp esi, r15d
je 0x1400cbff0
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cc0a0
test byte [rcx + 0x1c], 4
je 0x1400cc0a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
mov edx, 0x6a
mov dword [rsp + 0x20], ebx
mov r9, r12
call fcn.1400056b0
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400cc164
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15, rcx
xor r12d, r12d
lea rcx, [rsp + 0x34]
mov dword [rsp + 0x30], r12d
xor edx, edx
mov r8d, 0x24c
mov ebx, r12d
call sub.msvcrt.dll_memset
xor edx, edx
mov word [rbp + 0x180], r12w
mov r8d, 0x206
lea rcx, [rbp + 0x182]
call sub.msvcrt.dll_memset
test r15, r15
jne 0x1400cc215
lea ebx, [r12 + 0x57]
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400cc3bd
test byte [rcx + 0x1c], 1
je 0x1400cc3bd
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x22]
lea r8, [0x140127ce0]
call fcn.140003614
jmp 0x1400cc3bd
lea rax, str..bin
mov r9, r15
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140069190
test eax, eax
jns 0x1400cc286
mov ebx, eax
and ebx, 0x1000ffff
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400cc3bd
test byte [rcx + 0x1c], 1
je 0x1400cc3bd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
mov edx, 0x7a
mov r9d, eax
call fcn.1400036d4
jmp 0x1400cc3bd
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400cc2e1
mov rcx, qword [0x14014dd40]
lea rdi, [0x14014dd40]
cmp rcx, rdi
je 0x1400cc3bd
test byte [rcx + 0x1c], 4
je 0x1400cc3bd
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x7c]
lea r9, [rbp + 0x180]
lea r8, [0x140127ce0]
call fcn.140003638
jmp 0x1400cc3bd
lea rdi, [0x14014dd40]
cmp dword [rsp + 0x30], 0x10
je 0x1400cc39e
lea rax, [rsp + 0x5c]
mov r9, r15
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.140069190
mov r14d, eax
test eax, eax
js 0x1400cc36b
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400cc39e
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400cc39e
test byte [rcx + 0x1c], 1
je 0x1400cc39e
mov rcx, qword [rcx + 0x10]
lea r9, [rbp + 0x180]
mov edx, 0x7c
mov dword [rsp + 0x20], eax
lea r8, [0x140127ce0]
call fcn.1400056b0
jmp 0x1400cc39e
mov rcx, qword [0x14014dd40]
cmp rcx, rdi
je 0x1400cc395
test byte [rcx + 0x1c], 1
je 0x1400cc395
mov rcx, qword [rcx + 0x10]
lea r8, [0x140127ce0]
mov edx, 0x7d
mov r9d, eax
call fcn.1400036d4
mov ebx, r14d
and ebx, 0x1000ffff
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400cc2e8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400cd650
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
and qword [rax + 8], rdi
add rcx, 0x48
xor esi, esi
call sub.KERNEL32.dll_EnterCriticalSection
cmp dword [rbx + 8], esi
jne 0x1400cd6b3
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cd6a9
test byte [rcx + 0x1c], 1
je 0x1400cd6a9
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x1f]
lea r8, [0x1401282f8]
call fcn.140003614
mov edi, 0x8000ffff
jmp 0x1400cd7e9
cmp dword [rbx + 0xc], esi
jne 0x1400cd7e9
cmp dword [rbx + 0x20], esi
jbe 0x1400cd7e9
mov rcx, qword [rbx + 0x70]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rbx + 0x78]
call sub.KERNEL32.dll_ResetEvent
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400cd6e8
call sub.KERNEL32.dll_CloseHandle
lea r8, [rsp + 0x40]
mov ecx, 4
lea rdx, [0x1400cc3f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x1400cd75e
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cd7e9
test byte [rcx + 0x1c], 1
je 0x1400cd7e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401282f8]
mov edx, 0x20
mov r9d, edi
call fcn.1400036d4
jmp 0x1400cd7e9
mov rax, qword [rsp + 0x40]
lea r8, [0x1400cc3f0]
mov qword [rbx + 0x2f0], rax
mov r9, rbx
lea rax, [rbx + 0x88]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
and dword [rsp + 0x20], esi
call sub.KERNEL32.dll_CreateThread
mov qword [rbx + 0x80], rax
test rax, rax
jne 0x1400cd7e2
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400cd7d6
test byte [rcx + 0x1c], 1
je 0x1400cd7d6
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x14014dd40]
lea r8, [0x1401282f8]
mov r9d, eax
mov edx, 0x21
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov edi, 0x80004005
mov esi, 1
jmp 0x1400cd7e9
mov dword [rbx + 0xc], 1
lea rcx, [rbx + 0x48]
call sub.KERNEL32.dll_LeaveCriticalSection
test esi, esi
je 0x1400cd806
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400cd806
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400ce554
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov r14, rdx
mov ebx, 0x80004005
xor r15d, r15d
mov esi, r15d
mov qword [rbp - 0x41], r15
mov word [rbp - 0x19], r15w
xor edx, edx
lea r8d, [r15 + 0x4c]
lea rcx, [rbp - 0x17]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x49], 0x27
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], r15
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftSQMClientCAID
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400ce5fb
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400ce6a6
mov dword [rbp - 0x49], 0x27
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x19]
mov edx, esi
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x1400ce65d
test esi, esi
je 0x1400ce64a
lea rdx, [0x14011c030]
lea rcx, [rbp - 0x39]
call fcn.1400d9104
mov ebx, eax
test eax, eax
js 0x1400ce6a6
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.1400d9104
mov ebx, eax
test eax, eax
js 0x1400ce6a6
inc esi
test edi, edi
jne 0x1400ce66a
cmp esi, 0xf
jae 0x1400ce682
jmp 0x1400ce5fb
cmp edi, 0x103
je 0x1400ce682
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x1400ce6a6
mov r8, qword [rbp - 0x39]
test r8, r8
je 0x1400ce6a6
cmp dword [rbp - 0x2d], r15d
je 0x1400ce6a6
lea rcx, [r14 + 0xd0]
lea rdx, str.caid
call fcn.1400db078
mov ebx, eax
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1400ce6b6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov edx, 1
lea rcx, [rbp - 0x39]
call fcn.1400d9748
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400cfa78
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov rsi, rdx
mov r15, rcx
cmp dword [rdx + 0x10], ebp
jbe 0x1400cfb7c
mov rax, qword [rsi]
xor ebx, ebx
xor edx, edx
xor ecx, ecx
cmp qword [rsi + 0x18], rcx
je 0x1400cfad4
cmp dword [rsi + 0x28], ebp
ja 0x1400cfad4
mov rax, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x20]
mov ecx, dword [rsi + 0x28]
jmp 0x1400cfad4
test rax, rax
je 0x1400cfb71
mov rdx, rax
inc ecx
mov rax, qword [rax + 8]
cmp ecx, ebp
jb 0x1400cfac2
test rax, rax
je 0x1400cfb71
mov dword [rsi + 0x28], ecx
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rdx
mov r14, qword [rax]
mov ecx, dword [r14 + 0x188]
sub ecx, 1
je 0x1400cfb2d
sub ecx, 2
je 0x1400cfbaf
sub ecx, 1
je 0x1400cfb9a
sub ecx, 1
je 0x1400cfba2
sub ecx, 1
je 0x1400cfb95
cmp ecx, 2
je 0x1400cfb28
mov r8d, 0xcc
jmp 0x1400cfb33
mov ebx, 1
mov r8d, 0x1f4
cmp qword [r15 + 0xa8], 0
je 0x1400cfb48
mov rdx, r14
mov rcx, r15
call fcn.1400d0d40
test ebx, ebx
je 0x1400cfb71
mov rdi, qword [r14 + 0x158]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rcx, rbx
call qword [fcn.140009050]
mov rcx, rdi
call rbx
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
inc ebp
cmp ebp, dword [rsi + 0x10]
jb 0x1400cfaa1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov ebx, 1
mov r8d, 0x193
jmp 0x1400cfb33
mov ebx, 1
mov r8d, VarDecRound
jmp 0x1400cfb33
test dword [r14 + 0xe8], 0x400
jne 0x1400cfba2
mov r8d, reloc.OLEAUT32.dll_CreateErrorInfo
jmp 0x1400cfb33
Function at 0x1400d5230
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ebx, 0x80070057
test rcx, rcx
jne 0x1400d5275
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
lea edx, [rdi + 0xc]
jmp 0x1400d52a0
test rdx, rdx
jne 0x1400d52b5
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
mov edx, reloc.Cabinet.dll_FCIFlushCabinet
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128410]
call fcn.140003614
jmp 0x1400d5366
lea r8, str._DB
mov edx, 0x104
call fcn.140036f20
mov ebx, eax
test eax, eax
jns 0x1400d52f0
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
mov edx, reloc.Cabinet.dll_FCIDestroy
jmp 0x1400d5324
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140036f20
mov ebx, eax
test eax, eax
jns 0x1400d5339
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d5366
test byte [rcx + 0x1c], 1
je 0x1400d5366
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128410]
mov r9d, ebx
call fcn.1400036d4
jmp 0x1400d5366
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400d5364
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x1400d5364
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400d5366
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d573c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov esi, edx
mov rdi, rcx
xor r14d, r14d
xor edx, edx
mov word [rbp - 0x80], r14w
mov r8d, 0x206
lea rcx, [rbp - 0x7e]
call sub.msvcrt.dll_memset
xor eax, eax
mov word [rsp + 0x60], r14w
mov r9, rdi
mov qword [rsp + 0x62], rax
lea r8, str.SoftwareMicrosoftSQMClient_sAdaptiveSqmThrottling
mov qword [rsp + 0x6a], rax
mov edx, 0x104
mov qword [rsp + 0x72], rax
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
call fcn.140069190
mov edi, eax
test eax, eax
jns 0x1400d57f9
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
lea edx, [r14 + 0x22]
mov r9d, eax
jmp 0x1400d5909
mov r9d, esi
lea r8, [0x14011b7c0]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x60]
call fcn.140069190
mov edi, eax
test eax, eax
jns 0x1400d5840
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
mov edx, 0x23
jmp 0x1400d57f1
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400d58da
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d58da
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 8
mov r9d, reloc.WSOCK32.dll_inet_ntoa
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400d58d5
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
mov edx, 0x25
jmp 0x1400d58f8
mov edi, r14d
jmp 0x1400d5919
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d5919
test byte [rcx + 0x1c], 1
je 0x1400d5919
mov edx, 0x24
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128410]
call fcn.1400036d4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d5929
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret