joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400500f4
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
jne 0x140050139
mov eax, 6
jmp 0x140050230
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r15d, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x3c], xmm0
and qword [rsp + 0x4c], 0
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14005021b
cmp dword [rsp + 0x44], r14d
jne 0x1400501ee
mov r8d, dword [rsp + 0x40]
cmp r8d, r15d
je 0x1400501ee
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400501ee
mov rcx, rax
call fcn.14005a0c8
nop
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x1400501ca
mov qword [rdx], rsi
add qword [rdi + 8], 8
jmp 0x1400501d7
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.1400220cc
jmp 0x1400501ee
mov dword [rsp + 0x38], 0x1c
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140050184
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140050230
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140052570
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140052eac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140052ef6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140052ef6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140052ef6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052ef6
cmp dword [rcx + 0x84], 0xe
jbe 0x140052ef6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140052ef8
xor al, al
add rsp, 0x28
ret
Function at 0x140053be0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
call fcn.140002dfc
mov rcx, rax
test rsi, rsi
jne 0x140053c4f
test rax, rax
je 0x140053de6
mov rdx, qword [rax]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x40], 1
jmp 0x140053dbd
test rcx, rcx
je 0x140053de6
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8, rsi
lea r14d, [r9 + 4]
mov edx, r14d
lea ecx, [r9 + 0x42]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
cmp eax, 1
jne 0x140053d25
mov edx, dword [rsp + 0x30]
add edx, eax
js 0x140053df1
mov ecx, eax
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140053cc4
lea rcx, [rsp + 0x38]
call fcn.1400028a0
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, rsi
mov edx, r14d
lea ecx, [r9 + 0x42]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov r14d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140053df1
cmp eax, dword [rbx - 0xc]
jg 0x140053df1
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
test r14d, r14d
je 0x140053d25
lea rcx, [rsp + 0x38]
call fcn.14000a484
mov rbx, qword [rsp + 0x38]
cmp dword [rbx - 0x10], r15d
jne 0x140053d8a
mov r14d, 0x2b8
mov r8d, r14d
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x200
mov r9d, r14d
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x140053d8a
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140053d69
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14000a350
mov rbx, qword [rsp + 0x38]
lea rcx, [rbx - 0x18]
call fcn.14000a2b4
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x40], 1
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140053dbd
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
nop
mov ecx, 0x80070057
call fcn.140002fa4
int3
Function at 0x140053dfc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rdi, rcx
mov rcx, rbp
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebx, ebx
mov esi, eax
test eax, eax
jne 0x140053e36
mov rcx, rdi
call fcn.14000a484
jmp 0x140053e9a
test esi, esi
js 0x140053eb1
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x140053e58
mov edx, esi
mov rcx, rdi
call fcn.1400028a0
mov rdx, qword [rdi]
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140053e73
mov eax, ebx
jmp 0x140053e81
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140053eb1
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140053eb1
mov dword [rcx - 0x10], eax
mov rcx, qword [rdi]
mov edx, eax
mov word [rcx + rdx*2], bx
mov ebx, 1
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140002fa4
int3
Function at 0x140053f34
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x30
mov rbx, rcx
lea rsi, [0x140090fe8]
mov qword [rsp + 0x20], rsi
mov byte [rsp + 0x28], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x28], 1
cmp qword [0x140090fb8], 0
jne 0x140053f7a
test rbx, rbx
je 0x14005409f
mov qword [0x140090fb8], rbx
cmp qword [0x140090fc8], 0
jne 0x140054098
cmp byte [0x140090fc0], 0
jne 0x140054098
lea rcx, [0x140090fd0]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov rax, qword [0x140090fb8]
cmp dword [rax + 8], 0
je 0x140053ff3
lea rdx, [0x1400665e8]
lea rcx, str.VSLogActivity
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 0x38
call fcn.1400520fc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140053fe7
mov rdx, qword [0x140090fb8]
mov rcx, rax
call fcn.140054ae8
nop
mov qword [0x140090fc8], rax
jmp 0x140054098
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x1400540bb
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.VSLogActivity
lea rcx, [rsp + 0x48]
call fcn.140053dfc
test eax, eax
je 0x14005404e
mov ecx, 0x38
call fcn.1400520fc
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14005404c
mov rdx, qword [0x140090fb8]
mov rcx, rax
call fcn.140054ae8
nop
jmp 0x140054072
mov ecx, 0xe0
call fcn.1400520fc
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140054072
mov rdx, qword [0x140090fb8]
mov rcx, rax
call fcn.140054fa4
nop
mov qword [0x140090fc8], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054098
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [0x140090fc8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x28], 0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3
Function at 0x140054300
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x40]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400543e3
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x140054427
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.1400548c8
lea r8, [rsp + 0x6c]
mov rdx, qword [rax]
lea rcx, [rsp + 0x20]
call fcn.140013dd4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140054378
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rax, [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400543e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rsp + 0x28], rbx
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054405
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3
Function at 0x14005474c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x20]
or rax, 0xffffffffffffffff
cmp rcx, rax
jne 0x140054763
xor al, al
jmp 0x140054790
xor ebx, ebx
test rdx, rdx
jne 0x14005476e
mov eax, ebx
jmp 0x140054777
inc rax
cmp word [rdx + rax*2], bx
jne 0x14005476e
lea r8d, [rax + rax]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x14005797c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x47], rax
movsxd rdi, ecx
cmp edi, 0x26
ja 0x140057a65
lea rax, [rbp - 0x61]
mov r9d, 0x20219
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Licenses1299B4B9_DFCC_476D_98F0_F65A2B46C96D
mov rcx, 0xffffffff80000000
or ebx, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140057a61
and dword [rbp - 0x69], eax
lea r9, [rbp - 0x69]
and dword [rbp - 0x65], eax
xor r8d, r8d
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057a57
cmp dword [rbp - 0x69], 3
jne 0x140057a57
cmp dword [rbp - 0x65], 0x9c
jne 0x140057a57
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x69]
lea rax, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057a57
cmp dword [rbp - 0x69], 3
jne 0x140057a57
mov ebx, dword [rbp + rdi*4 - 0x59]
lea ecx, [rdi*4 + 0xf5b7]
add ebx, edi
xor ebx, ecx
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140057a68
or eax, 0xffffffff
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140052570
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140057f38
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
and dword [rdx], 0
and qword [rdx + 8], 0
mov edx, ecx
lea rcx, [rsp + 0x48]
call fcn.140058208
nop
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140057fa2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140058024
and dword [rsp + 0x48], 0
mov qword [rsp + 0x28], rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058016
cmp dword [rsp + 0x48], 3
jne 0x140058016
mov ecx, dword [rbx]
call fcn.14005212c
mov qword [rbx + 8], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005800c
cmp dword [rsp + 0x48], 3
je 0x140058019
and dword [rbx], 0
and qword [rbx + 8], 0
jmp 0x140058019
and dword [rbx], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx + 8], 0
setne al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400582a4
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov edi, ecx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.1400520fc
mov qword [rbp + 0x38], rax
xor r15d, r15d
test rax, rax
je 0x1400582dc
mov rcx, rax
call fcn.140057a98
mov rbx, rax
jmp 0x1400582df
mov rbx, r15
mov byte [rbx], 1
mov rax, qword [rbx + 8]
mov dword [rax], edi
mov dword [rbp - 0x20], r15d
mov qword [rbp - 0x18], r15
lea rdx, [rbp - 0x20]
mov ecx, edi
call fcn.140057f38
test al, al
je 0x140058482
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140058377
mov edx, 0xe0
cmp dword [rbp - 0x10], edx
jne 0x140058474
mov rcx, qword [rbx + 8]
call fcn.140052590
mov byte [rbx + 1], 1
mov rax, qword [rbp - 8]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 8]
cmp dword [rax], edi
jne 0x140058474
mov word [rax + 0x32], r15w
mov rax, qword [rbx + 8]
mov word [rax + 0xbe], r15w
mov byte [rbx], r15b
jmp 0x140058474
call fcn.140058dbc
test al, al
je 0x140058474
mov rsi, qword [rbp - 0x18]
mov r14d, r15d
mov eax, dword [rbp - 0x20]
shr eax, 2
cmp eax, 1
je 0x1400583b6
mov edx, r14d
mov ecx, dword [rsi]
call fcn.140057a8c
mov dword [rsi], eax
lea rsi, [rsi + 4]
inc r14d
mov eax, dword [rbp - 0x20]
shr eax, 2
dec eax
cmp r14d, eax
jb 0x140058396
mov rsi, qword [rbp - 0x18]
cmp dword [rsi + 0xc0], edi
jne 0x140058474
mov byte [rbx], r15b
mov rax, qword [rbx + 8]
mov dword [rax], edi
mov dword [rbp + 0x30], r15d
lea rdx, [rsi + 2]
lea rcx, [rbp + 0x38]
call fcn.140009580
nop
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x38]
mov ecx, dword [rsi + 0xc0]
call fcn.1400580b8
mov rdi, rax
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140058415
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rdi, rdi
je 0x140058474
mov rcx, qword [rbx + 8]
mov al, byte [rsi]
mov byte [rcx + 0xdd], al
mov rcx, qword [rbx + 8]
mov eax, dword [rbp + 0x30]
mov dword [rcx + 0xc4], eax
lea r8, [rsi + 0x52]
lea rdx, [rsi + 0x82]
mov byte [rsp + 0x30], r15b
mov eax, dword [rdi + 0x14]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
mov dword [rsp + 0x20], eax
lea r9, [rsi + 2]
mov rcx, rbx
call fcn.140057c3c
mov edx, 0xffff
mov r9d, edx
mov r8d, edx
mov byte [rsp + 0x20], r15b
mov rcx, rbx
call fcn.14005849c
mov edx, 1
mov rcx, qword [rbp - 0x18]
call fcn.140052590
mov rax, rbx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140058880
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
and dword [rcx], 0
and qword [rcx + 8], 0
lea rcx, [rsp + 0x40]
call fcn.140058ac0
nop
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete dil
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400588e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x14005896a
and dword [rsp + 0x40], 0
mov qword [rsp + 0x28], rbx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005895c
cmp dword [rsp + 0x40], 3
jne 0x14005895c
mov ecx, dword [rbx]
call fcn.14005212c
mov qword [rbx + 8], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058952
cmp dword [rsp + 0x40], 3
je 0x14005895f
and dword [rbx], 0
and qword [rbx + 8], 0
jmp 0x14005895f
and dword [rbx], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx + 8], 0
setne al
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140058a20
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbx
sub rsp, 0x60
call fcn.1400587e4
lea rcx, [rsp + 0x40]
mov rbx, rax
mov byte [rax], 1
and dword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
call fcn.140058880
test al, al
je 0x140058ab6
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 1
xor r8d, r8d
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x140058aa7
mov edx, 0x144
cmp dword [rsp + 0x50], edx
jne 0x140058aa7
mov rcx, qword [rbx + 8]
call fcn.140052590
mov byte [rbx + 1], 1
mov rax, qword [rsp + 0x58]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x27
jne 0x140058aa7
mov byte [rbx], 0
mov rcx, qword [rsp + 0x48]
mov edx, 1
call fcn.140052590
mov rax, rbx
add rsp, 0x60
pop rbx
ret
Function at 0x140058b98
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
mov rsi, r9
mov rbx, r8
mov r15d, 0xfffffffe
mov dword [rbp - 0x20], r15d
mov r8d, edx
lea rdx, [rbp - 8]
call fcn.140058b28
nop
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rdx, qword [rbp - 8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058c10
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140058c5f
and dword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 4
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, qword [rsi]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rbp - 0x20]
test ebx, ebx
cmovne edi, r15d
mov dword [rbp - 0x20], edi
jmp 0x140058c62
mov edi, dword [rbp - 0x20]
mov rdx, qword [rsi]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140058c80
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret

Function at 0x140058ef4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x140058fc2
mov esi, 0x10000
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x140058f43
sub rbx, 0x8000000
jmp 0x140058fb9
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140058fc2
cmp dword [rsp + 0x40], esi
jne 0x140058f9d
cmp qword [rsp + 0x38], rsi
jb 0x140058f9d
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140058fc4
sub rbx, rsi
jmp 0x140058fb9
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x140058f2b
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140058fd4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
mov esi, 0x10000
test rax, rax
je 0x140058ffc
sub rbx, rax
add rbx, rsi
cmp rbx, rdi
jae 0x140059099
lea rax, [rbx - 0x50000000]
cmp rax, 0x30000000
ja 0x14005901d
add rbx, 0x8000000
jmp 0x140058ffc
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140059099
mov rcx, qword [rsp + 0x38]
cmp dword [rsp + 0x40], esi
jne 0x140059077
cmp rcx, rsi
jb 0x140059077
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x14005909b
jmp 0x140058ff9
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x140058ffc
mov rax, rsi
sub rax, rcx
add rbx, rax
jmp 0x140058ffc
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret