joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180062214
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180062244
xor eax, eax
jmp 0x180062307
mov rbp, rbx
cmp word [rax], si
je 0x180062269
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180062250
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18006224c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180062134
movsxd r14, eax
test eax, eax
jne 0x1800622a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18006223d
mov rcx, r14
call fcn.180058398
mov rdi, rax
test rax, rax
jne 0x1800622c0
xor ecx, ecx
call fcn.1800575a0
jmp 0x18006229c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180062134
test eax, eax
jne 0x1800622f1
mov rcx, rdi
call fcn.1800575a0
jmp 0x1800622fb
xor ecx, ecx
call fcn.1800575a0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800660cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180059c34
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18006616d
cmp ebx, dword [rsp + 0x30]
je 0x180066166
test esi, esi
je 0x180066166
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180066141
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18006614e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18006612b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180066152
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18006616f
mov eax, 1
jmp 0x18006616f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18006c7e8
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x18006c7fb
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.18006ce60
lea rdx, [0x1800ce598]
lea rcx, [rsp + 0x20]
call fcn.180048ac4
int3

Function at 0x1800773b0
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1800e38b0]
xor edx, edx
jmp fcn.18006c7e8
Function at 0x180077dac
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1800e38b0]
jmp fcn.18006c7e8
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, [0x1400f765e]
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, [0x140117d50]
lea rcx, [rbp - 9]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14001fbe4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r12d, r12d
lea rax, [rsp + 0x30]
mov qword [rdx], r12
lea r8, [rsp + 0x30]
mov r14d, r12d
sub rcx, rax
mov r15, rdx
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14001fc59
movzx eax, word [rcx + r8]
test ax, ax
je 0x14001fc59
mov word [r8], ax
add r8, 2
sub r9, 1
jne 0x14001fc35
lea rax, [r8 - 2]
test r9, r9
lea rcx, [rsp + 0x30]
cmovne rax, r8
lea r8, [0x1400de578]
mov word [rax], r12w
call fcn.14001cf74
mov edi, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001fcc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14001fdbd
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.14001e768
mov esi, eax
jmp 0x14001fda1
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r12d
mov rcx, rbx
mov dword [rsp + 0x20], r12d
call fcn.14001ecd8
mov esi, eax
test eax, eax
jns 0x14001fd06
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14001e72c
mov rcx, rbx
call fcn.14001e820
jmp 0x14001fda1
lea r8, [0x1400de580]
lea rcx, [rsp + 0x30]
call fcn.14001cf74
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001fd49
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14001e768
mov esi, eax
jmp 0x14001fcf9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001ecd8
mov esi, eax
test eax, eax
jns 0x14001fd7d
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14001e72c
mov rcx, rdi
call fcn.14001e820
jmp 0x14001fcf9
mov rcx, rdi
call fcn.14001e820
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.14001e820
mov esi, r12d
test esi, esi
jns 0x14001fdbd
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.14001e72c
mov eax, esi
jmp 0x14001fdc2
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400be5a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140021d20
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x140021d62
xor eax, eax
jmp 0x140021f46
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140021d9c
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x140021d9c
lea ecx, [r8 - 1]
mov dword [rdx], ecx
mov rdx, qword [rdi + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x140021f46
cmp qword [rdi + 0x90], 0
je 0x140021f44
mov rdx, qword [rdi + 0x18]
lea rax, [rdi + 0x80]
cmp qword [rdx], rax
jne 0x140021dd3
mov rcx, qword [rdi + 0x70]
mov rax, qword [rdi + 0x68]
mov qword [rdx], rax
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
and dword [rax], 0
cmp qword [rdi + 0x78], 0
jne 0x140021dfb
movsx ecx, sil
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
nop dword [rax + rax]
cmp eax, ebx
cmovne ebx, esi
jmp 0x140021f44
mov byte [rbp - 0x19], sil
mov qword [rbp + 0x1f], 0xf
and qword [rbp + 0x17], 0
mov byte [rbp + 7], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 7]
call fcn.140011088
nop
lea r8, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae r8, qword [rbp + 7]
lea r9, [rbp + 7]
cmovae r9, qword [rbp + 7]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r8, qword [rbp + 0x17]
mov rax, qword [rdx + 0x38]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r9
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x18]
lea r8, [rbp - 0x19]
lea rdx, [rdi + 0x84]
call qword [0x1400d22d8]
test eax, eax
js 0x140021f2d
cmp eax, 1
jg 0x140021f0c
lea rax, [rbp + 7]
mov rdx, qword [rbp + 7]
mov r10, qword [rbp + 0x1f]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x11]
sub r14, rax
je 0x140021ed2
lea rcx, [rbp + 7]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov edx, 1
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r14, rax
jne 0x140021f2d
mov byte [rdi + 0x81], 1
lea rax, [rbp - 0x19]
cmp qword [rbp - 9], rax
jne 0x140021f08
test r14, r14
jne 0x140021e21
cmp qword [rbp + 0x17], 0x20
jae 0x140021f2d
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp + 7]
call fcn.1400070e8
jmp 0x140021e21
mov ebx, esi
jmp 0x140021f2d
cmp eax, 3
jne 0x140021f2d
movsx ecx, byte [rbp - 0x19]
mov rdx, qword [rdi + 0x90]
call qword [sym.imp.msvcrt.dll_fputc]
nop dword [rax + rax]
cmp eax, ebx
cmovne ebx, esi
cmp qword [rbp + 0x1f], 0x10
jb 0x140021f44
mov rcx, qword [rbp + 7]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400be5a0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400224cc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x78], rbx
je 0x140022635
cmp byte [rcx + 0x81], bl
je 0x140022635
or edx, 0xffffffff
call fcn.140021d20
cmp eax, 0xffffffff
jne 0x14002252c
xor al, al
jmp 0x14002263a
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140011088
nop
mov esi, 1
lea r9, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r9, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x78]
mov rdx, qword [rcx]
add r9, qword [rbp - 0x20]
mov rax, qword [rdx + 0x40]
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [rdi + 0x84]
call qword [0x1400d22d8]
mov ecx, eax
test eax, eax
je 0x14002259e
sub ecx, esi
je 0x1400225a4
cmp ecx, 2
jne 0x14002261a
jmp 0x140022617
mov byte [rdi + 0x81], bl
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, rdx
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x1400225eb
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, rdx
mov r9, qword [rdi + 0x90]
mov r8, r14
mov rdx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
nop dword [rax + rax]
cmp r14, rax
jne 0x140022614
cmp byte [rdi + 0x81], bl
je 0x140022611
test r14, r14
jne 0x140022551
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.1400070e8
jmp 0x140022551
mov bl, sil
mov sil, bl
mov bl, sil
cmp qword [rbp - 0x18], 0x10
jb 0x140022631
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov al, bl
jmp 0x14002263a
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400be5a0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
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, [0x140117c70]
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, [0x140117c70]
lea rcx, [rsp + 0xa0]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x14003ee20
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x14011b3b0], rbx
jne 0x14003eeb7
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400e6160]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14003eea6
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x14003ee7e
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x14003ee72
mov rbx, rax
mov r8, rbx
lea rcx, [0x14011b3a0]
call fcn.1400064dc
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x14011b3a0]
call fcn.1400065c4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rax, [0x14011b3a0]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400be5a0
add rsp, 0x30
pop rbx
ret

Function at 0x14003ef4c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140121c90]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftHvsiOffice
and qword [rsp + 0x40], 0
mov eax, 4
mov dword [rsp + 0x38], eax
mov r9d, 0x20019
mov dword [rsp + 0x34], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14003f00a
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.OfficeWDAGEnabledOnHost
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14003f00a
cmp dword [rsp + 0x30], 1
sete bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003f020
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400be5a0
add rsp, 0x50
pop rbx
ret
Function at 0x140044e3c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
mov r9, qword [rdx + 0x10]
jb 0x140044e53
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x140044e83
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x140044e65
mov rax, rcx
mov edx, 0x1f31d
shr rax, 0x20
xor ecx, eax
btr ecx, 0x1f
call qword [sym.imp.msvcrt.dll_ldiv]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x140044ec2
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret

Function at 0x140049dd8
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x140049f70
cmp ecx, 0x7c
je 0x140049f70
cmp ecx, 0x29
jne 0x140049e1b
cmp dword [rbx + 0x1c], 0
jne 0x140049f70
test dword [rbx + 0x80], 0x10000000
je 0x140049f92
cmp ecx, 0x2e
jne 0x140049e3b
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14004a0b8
mov rcx, rbx
call fcn.140049d70
jmp 0x140049f5e
cmp ecx, 0x5c
jne 0x140049e9f
mov rcx, rbx
call fcn.140049d70
test byte [rbx + 0x80], 0x80
je 0x140049e92
cmp word [rbx + 0x78], 0x62
jne 0x140049e73
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14004a0b8
mov rcx, rbx
call fcn.140049d70
jmp 0x140049f66
cmp word [rbx + 0x78], 0x42
jne 0x140049e92
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14004a0b8
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x140049e66
mov rcx, rbx
call fcn.14004a73c
jmp 0x140049f5e
cmp ecx, 0x5b
jne 0x140049ec3
mov rcx, rbx
call fcn.140049d70
mov rcx, rbx
call fcn.14004a5e4
cmp dword [rbx + 0x7c], 0x5d
jne 0x140049f7c
jmp 0x140049e2e
cmp ecx, 0x28
jne 0x140049ee7
mov rcx, rbx
call fcn.140049d70
mov rcx, rbx
call fcn.14004a8c0
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x140049f87
jmp 0x140049f51
cmp ecx, 0x5e
jne 0x140049ef4
lea edx, [rcx - 0x5c]
jmp 0x140049e5d
cmp ecx, 0x24
jne 0x140049f01
lea edx, [rcx - 0x21]
jmp 0x140049e5d
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x140049fb3
cmp ecx, 0x3f
je 0x140049fb3
cmp ecx, 0x7b
je 0x140049fb3
cmp ecx, 0x7d
jne 0x140049f30
test dword [rbx + 0x80], 0x10000000
je 0x140049f9d
cmp ecx, 0x5d
jne 0x140049f41
test dword [rbx + 0x80], 0x10000000
je 0x140049fa8
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14004ab98
mov dil, 1
mov rcx, rbx
call fcn.140049d70
test dil, dil
je 0x140049f66
mov rcx, rbx
call fcn.14004aa90
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x140049dea
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 4
call fcn.14004951c
int3
mov edx, 5
call fcn.14004951c
int3
mov edx, 5
call fcn.14004951c
int3
mov edx, 6
call fcn.14004951c
int3
mov edx, 4
call fcn.14004951c
int3
mov edx, 0xa
call fcn.14004951c
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, [0x140118c80]
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, [0x140118c80]
lea rcx, [rbp - 0x39]
call sub.msvcrt.dll__CxxThrowException
int3