joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400180b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x1400181d8
cmp eax, 1
je 0x14001810b
call fcn.140017030
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016940
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018120
cmp r12d, 1
jne 0x1400181b0
mov rcx, rbp
call fcn.140016c30
test rdi, rdi
je 0x14001810b
mov rcx, rdi
call fcn.1400173d0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400174b0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017730
mov ecx, dword [0x1400b2158]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140018218
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017730
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x140018200
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017730
mov ecx, dword [0x1400b2158]
call r12
test rax, rax
je 0x1400181f0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400180f6
mov ecx, 2
call qword [fcn.140014d80]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400180f6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400177e0
test rax, rax
jne 0x140018199
jmp 0x1400b15a5
call fcn.1400177e0
test rax, rax
jne 0x140018175
jmp 0x1400b15be
call fcn.1400177e0
test rax, rax
jne 0x14001814f
jmp 0x1400b15b4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x1400184a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018518
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140016f40
cmp esi, dword [rbx + 0x48]
jae 0x1400184f3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400184f3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140016f80
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400177e0
mov rbx, rax
jmp 0x1400184cd
Function at 0x140018530
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018640
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.140016f40
cmp esi, dword [rbx + 0x48]
jae 0x1400185c0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.140016f80
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.msvcrt.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001864d
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.msvcrt.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001864d
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x140018584
call fcn.1400177e0
mov rbx, rax
jmp 0x14001856f
mov rcx, r14
call fcn.140016f80
mov eax, 0xc
jmp 0x1400185a2

Function at 0x1400186d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400186f8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1400177e0
test rax, rax
jne 0x1400186ea
add rsp, 0x28
ret

Function at 0x140018760
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018788
add rax, 0x18
add rsp, 0x28
ret
call fcn.1400177e0
test rax, rax
jne 0x14001877a
jmp 0x14001877e

Function at 0x1400188a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e0d28]
test eax, eax
jne 0x1400188b8
xor eax, eax
add rsp, 0x28
ret
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400188e8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400188ae
test byte [rax + 0x40], 3
je 0x1400188ae
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400188b0
call fcn.1400177e0
test rax, rax
jne 0x1400188ce
jmp 0x1400188ae
Function at 0x140018900
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018940
test ebx, ebx
jle 0x140018930
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.1400177e0
test rax, rax
jne 0x14001891d
add rsp, 0x20
pop rbx
ret

Function at 0x140018a30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018aa8
test byte [rbx + 0x40], 0xc
jne 0x140018a5f
mov eax, dword [0x1400e0d28]
test eax, eax
jne 0x140018a70
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016940
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018a93
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018a93
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018abc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016c30
call fcn.1400177e0
test rax, rax
mov rbx, rax
jne 0x140018a4f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018ada
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016c30
call fcn.140018950
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018b60
call fcn.140016700
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018b98
call fcn.140017730
mov ecx, dword [0x1400b2158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018bf0
test esi, esi
je 0x140018b76
call fcn.140018a30
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018bd0
mov edx, edi
call fcn.1400167b0
call fcn.140018a30
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018be0
call fcn.140018a30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018a30
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017730
mov ecx, dword [0x1400b2158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018b35
call fcn.1400177e0
mov rbx, rax
jmp 0x140018b35
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018b4e
call fcn.1400177e0
jmp 0x140018b76
call fcn.1400177e0
mov rbx, rax
jmp 0x140018b31
Function at 0x140018af0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018aa8
test byte [rbx + 0x40], 0xc
jne 0x140018a5f
mov eax, dword [0x1400e0d28]
test eax, eax
jne 0x140018a70
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016940
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018a93
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018a93
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018abc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016c30
call fcn.1400177e0
test rax, rax
mov rbx, rax
jne 0x140018a4f
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140018ada
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016c30
call fcn.140018950
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018b60
call fcn.140016700
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018b98
call fcn.140017730
mov ecx, dword [0x1400b2158]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018bf0
test esi, esi
je 0x140018b76
call fcn.140018a30
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018bd0
mov edx, edi
call fcn.1400167b0
call fcn.140018a30
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018be0
call fcn.140018a30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018a30
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017730
mov ecx, dword [0x1400b2158]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x140018b35
call fcn.1400177e0
mov rbx, rax
jmp 0x140018b35
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018b4e
call fcn.1400177e0
jmp 0x140018b76
call fcn.1400177e0
mov rbx, rax
jmp 0x140018b31

Function at 0x140018c00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017730
mov ecx, dword [0x1400b2158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140018c70
test esi, esi
je 0x140018c50
call fcn.140018a30
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018c80
mov edx, esi
call fcn.1400167b0
call fcn.140018a30
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018a30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018a30
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400177e0
mov rbx, rax
jmp 0x140018c21
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c3a
Function at 0x1400772c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x1400772e7
call rbp
cmp dword [rax], 4
jne 0x140077304
mov rcx, rdi
call fcn.1400770f0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
movsxd r12, eax
je 0x1400772e0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b09b0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x2c8
call fcn.14000ac90
lea r14, [rsp + 0x20]
mov ecx, 0x202
lea rdx, [rsp + 0x120]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov edx, 0x100
mov rcx, r14
call qword [sym.imp.WSOCK32.dll_gethostname]
mov r15, qword [0x1400b9ec0]
mov rdx, r14
mov rcx, r15
call fcn.1400adc80
mov r12, rax
mov rax, qword [rax]
mov rax, qword [rax - 0x18]
mov r13, qword [r12 + rax + 0xf0]
test r13, r13
je 0x1400b0a8b
cmp byte [r13 + 0x38], 0
je 0x1400b0a5b
movsx edx, byte [r13 + 0x43]
mov rcx, r12
call fcn.14006ef00
mov rcx, rax
call fcn.14006f0f0
mov rcx, r14
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov rcx, r15
mov rdx, qword [rax]
call fcn.1400adc80
call qword [sym.imp.WSOCK32.dll_WSACleanup]
xor eax, eax
add rsp, 0x2c8
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
call fcn.1400264f0
mov rax, qword [r13]
mov edx, 0xa
lea rcx, [0x1400267f0]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x1400b0a1f
mov edx, 0xa
mov rcx, r13
call rax
movsx edx, al
jmp 0x1400b0a1f
call fcn.1400b0ca0
nop
nop word cs:[rax + rax]
nop dword [rax]
sub rsp, 0x28
lea rcx, [0x1400e0030]
call fcn.1400a65e0
lea rcx, [0x140001450]
add rsp, 0x28
jmp fcn.140001410
Function at 0x140001090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rdx]
mov r11, rcx
mov r10, qword [rsp + 0x88]
shl eax, 0x18
mov dword [rsp + 0x38], eax
movzx eax, word [rdx + 1]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdx + 3]
add rdx, 0xb
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov qword [r10], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x28], r10
movzx ecx, word [rax]
mov dword [r10 + 8], ecx
lea rcx, str.ETW0
mov qword [r10 + 0x10], rdx
mov dword [r10 + 0xc], 2
movzx eax, word [rdx]
lea rdx, [rsp + 0x38]
mov dword [r10 + 0x18], eax
lea rax, [0x1400f767e]
sub eax, ecx
mov dword [r10 + 0x1c], 1
mov rcx, qword [r11 + 0x20]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400be5a0
add rsp, 0x58
ret
Function at 0x14001b41c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov ebx, edx
mov rdi, rcx
and qword [rbp + 0x47], 0
lea rax, [rbp + 0x47]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftUEVAgentConfiguration
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b4de
mov dword [rbp + 0x37], 4
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x14001b51a
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3b]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b4ed
mov edx, dword [rbp + 0x3b]
cmp edx, 4
jne 0x14001b4d0
mov ebx, dword [rbp + 0x3f]
jmp 0x14001b4ed
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Unexpected_value_type__type__0x_X
call fcn.1400045c0
jmp 0x14001b4ed
mov edx, eax
lea rcx, str.AgentService.Util::GetDwordConfigValue:_Failed_to_open_configuration_key__status__0x_X
call fcn.1400045c0
nop
lea rcx, [rbp + 0x47]
call fcn.140006284
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400be5a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x31]
call fcn.1400062e8
nop
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.140005b04
lea rdx, [0x140117d70]
lea rcx, [rbp - 9]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400284c8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140028509
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r15d, eax
xor esi, esi
test eax, eax
je 0x1400285c6
lea eax, [rsi + 2]
mul r15
lea r14, [rsi - 1]
cmovo rax, r14
mov rcx, rax
call fcn.1400a1bc0
mov rbx, rax
mov qword [rsp + 0x28], rax
cmp qword [rdi + 0x18], 8
jb 0x14002854f
mov rdi, qword [rdi]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x14002860e
cmp word [rbx], si
je 0x14002857e
inc r14
cmp word [rbx + r14*2], si
jne 0x140028571
mov rsi, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.1400064dc
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400be5a0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x38]
call fcn.1400062e8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x110]
call fcn.140005990
lea rdx, [0x140117c90]
lea rcx, [rsp + 0x110]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Cannot_expand_environment_strings
lea rcx, [rsp + 0x38]
call fcn.1400062e8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa0]
call fcn.140005990
lea rdx, [0x140117c90]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14004d3fc
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, r8
mov rsi, rdx
mov qword [rbp + 0x17], rdx
mov ecx, 0x18
call fcn.1400a0a40
mov rdi, rax
mov qword [rbp + 7], rax
xor r13d, r13d
test rax, rax
je 0x14004d45f
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
jmp 0x14004d462
mov rdi, r13
mov qword [rbp - 0x51], rdi
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14004d5b7
mov r12d, dword [rbp + 0x17]
inc r12d
mov ecx, r12d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400a1bc0
mov rbx, rax
mov qword [rbp - 0x49], rax
mov r14d, r13d
cmp dword [rbp + 0xf], r13d
jbe 0x14004d57a
mov dword [rbp + 7], r12d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 7]
mov r8, rbx
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14004d5fe
mov r8d, dword [rbp + 7]
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], r13
mov word [rbp - 0x79], r13w
mov rdx, rbx
lea rcx, [rbp - 0x79]
call fcn.1400064dc
nop
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.140043dfc
nop
cmp qword [rbp - 0x61], 8
jb 0x14004d56d
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
inc r14d
cmp r14d, dword [rbp + 0xf]
jb 0x14004d4ee
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsi], rdi
mov rax, rsi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400be5a0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test byte [0x140122dc0], 2
je 0x14004d5cf
mov r8d, eax
lea rdx, [0x1400d7630]
call fcn.140007d14
lea rdx, str.Unable_to_query_template_index.
lea rcx, [rbp - 0x79]
call fcn.1400062e8
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.14004d028
lea rdx, [0x140118ca0]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
nop
test byte [0x140122dc0], 2
je 0x14004d616
mov r8d, eax
lea rdx, [0x1400d73d0]
call fcn.140007d14
lea rdx, str.Unable_to_enumerate_template_index_subkeys.
lea rcx, [rbp - 0x79]
call fcn.1400062e8
nop
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.14004d028
lea rdx, [0x140118ca0]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14004e664
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14004e6b1
mov rdx, qword [r8]
jmp 0x14004e6b4
mov rdx, r15
movabs r11, 0xcbf29ce484222325
lea r8, [rax + rax]
xor r13d, r13d
mov ecx, r13d
test r8, r8
je 0x14004e6ea
movzx eax, byte [rdx + rcx]
xor r11, rax
movabs r9, 0x100000001b3
imul r11, r9
inc rcx
cmp rcx, r8
jb 0x14004e6cd
mov rax, r11
shr rax, 0x20
xor r11, rax
mov rcx, qword [rsi + 0x28]
and r11, rcx
cmp qword [rsi + 0x30], r11
ja 0x14004e70e
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add r11, rax
mov rdi, qword [rsi]
add r11, r11
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + r11*8]
cmp rdi, rcx
je 0x14004e7cf
mov rdi, qword [rax + r11*8 + 8]
mov rdi, qword [rdi]
cmp rdi, rcx
je 0x14004e7cf
mov rdi, qword [rdi + 8]
lea rdx, [rdi + 0x10]
mov rcx, r15
call fcn.14003b45c
test al, al
jne 0x14004e756
mov rax, qword [rsi + 0x10]
cmp rdi, qword [rax + r11*8]
jne 0x14004e736
jmp 0x14004e7cf
mov rdx, r15
lea rcx, [rdi + 0x10]
call fcn.14003b45c
test al, al
jne 0x14004e76b
mov rdi, qword [rdi]
jmp 0x14004e7cf
cmp rbx, qword [rsi]
je 0x14004e7c0
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x28], 8
jb 0x14004e79c
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbx + 0x28], 7
mov qword [rbx + 0x20], r13
mov word [rbx + 0x10], r13w
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
dec qword [rsi + 8]
mov qword [r14], rdi
mov byte [r14 + 8], r13b
mov rax, r14
jmp 0x14004e863
mov rax, qword [rbx]
cmp rdi, rax
je 0x14004e804
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx + r11*8]
cmp rax, qword [rsi]
jne 0x14004e820
mov qword [rcx + r11*8], rbx
mov rax, qword [rsi + 0x10]
mov qword [rax + r11*8 + 8], rbx
jmp 0x14004e84f
cmp rax, rdi
jne 0x14004e82b
mov qword [rcx + r11*8], rbx
jmp 0x14004e84f
mov rax, qword [rcx + r11*8 + 8]
mov rdx, qword [rax]
mov qword [rcx + r11*8 + 8], rdx
cmp rdx, rbx
je 0x14004e84f
mov r8, qword [rsi + 0x10]
mov rax, qword [r8 + r11*8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + r11*8 + 8], rdx
mov rcx, rsi
call fcn.14004e284
nop
mov qword [r14], rbx
mov byte [r14 + 8], 1
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400be5a0
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret