joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400a9eb0]
mov dword [rax], 1
mov rax, qword [0x1400a9ec0]
mov dword [rax], 1
mov rax, qword [0x1400a9ed0]
mov dword [rax], 1
mov rax, qword [0x1400a9ea0]
mov dword [rax], 1
mov rax, qword [0x1400a9d00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002750
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [fcn.14002b110]
xor ebx, ebx
mov rbp, rcx
mov rsi, rdx
test rdx, rdx
jle 0x140002793
nop
mov r12, qword [rbp + rbx*8]
mov ecx, 1
add rbx, 1
call rdi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.140002640
cmp rsi, rbx
jne 0x140002770
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x14002d19c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rdi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fflush

Function at 0x1400028d0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400028f1
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sub.msvcrt.dll_fflush

Function at 0x140002970
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [fcn.14002b110]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]
ret
Function at 0x14000f4b0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r12
push rbx
sub rsp, 0x150
movaps xmmword [rbp - 0x20], xmm6
cmp qword [0x1400c0858], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x14000f5a2
mov rax, qword [0x1400c0848]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x1400c0848], rax
call sub.msvcrt.dll__setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x14000f5c8
xor r12d, r12d
cmp qword [rbp + 0x10], 0
je 0x14000f573
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_strlen
mov edx, 7
lea rcx, [0x14002c020]
cmp rax, rdx
movq xmm6, rax
mov rbx, rax
cmovge rdx, rax
movq xmm0, rdx
add rdx, 0x11
punpcklqdq xmm6, xmm0
call fcn.14000ad50
mov rdx, qword [rbp + 0x10]
lea r8, [rbx + 1]
movups xmmword [rax], xmm6
lea rcx, [rax + 0x10]
mov r12, rax
call sub.msvcrt.dll_memcpy
mov rcx, r12
call qword [0x1400c0858]
mov rax, qword [0x1400c0848]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x1400c0848], rax
jne 0x14000f63f
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x14000f658
movaps xmm6, xmmword [rbp - 0x20]
add rsp, 0x150
pop rbx
pop r12
pop rbp
ret
mov rax, qword [0x1400c0848]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x1400c0848], rax
mov rax, qword [0x1400c0840]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x14000f605
add qword [rbx - 0x10], 8
mov rax, qword [0x1400c0840]
test rax, rax
je 0x14000f62a
mov rdx, qword [rax - 0x10]
lea r8, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x14000f62a
mov rdx, r8
lea rcx, [0x1400bdc78]
call fcn.140005ed0
cmp qword [rbp - 0x128], 0
mov qword [0x1400c0840], rbx
je 0x14000f5a2
mov rcx, qword [0x1400c0840]
test rcx, rcx
je 0x14000f688
call fcn.14000fa30
jmp 0x14000f5a2
mov ecx, 2
call qword [fcn.14002b110]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
call sub.msvcrt.dll_fflush
jmp 0x14000f5b1
call fcn.14000fe70
nop
nop
Function at 0x14001d3f0
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
test rcx, rcx
je 0x14001d459
mov r8, qword [0x1400c4da0]
mov r9, qword [0x1400c4da8]
cmp rcx, 0xffffffffffffffff
je 0x14001d460
mov rax, 0xffffffffffffffff
xor edx, edx
div rcx
lea rax, [r8 + r9]
xor r9, r8
ror r8, 9
mov r11, rdx
mov r10, r9
xor r8, r9
ror r9, 0x1c
shl r10, 0xe
xor r8, r10
add r11, rax
jb 0x14001d417
add rcx, 1
movq xmm0, r8
movq xmm1, r9
xor edx, edx
div rcx
punpcklqdq xmm0, xmm1
movaps xmmword [0x1400c4da0], xmm0
mov rax, rdx
ret
mov rdx, r8
mov rax, r8
xor rdx, r9
ror rax, 9
mov rcx, rdx
xor rax, rdx
ror rdx, 0x1c
shl rcx, 0xe
movq xmm2, rdx
lea rdx, [r8 + r9]
xor rax, rcx
movq xmm0, rax
mov rax, rdx
punpcklqdq xmm0, xmm2
movaps xmmword [0x1400c4da0], xmm0
ret
Function at 0x14001e8b0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x140031100]
mov r12, rcx
mov ebp, edx
lea rcx, [0x140031140]
mov edx, 0x7ef0cca
call fcn.14001d4b0
mov edx, 0x4aa9a40a
mov rcx, rax
call fcn.14001dd30
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rdi, [rax + 0x20]
nop dword [rax]
movzx eax, word [r12]
mov rdx, r12
test ax, ax
je 0x14001e930
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x14001ea98
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x14001e910
mov r10, qword [r13 + 0x50]
movzx ebx, word [r10]
test bx, bx
je 0x14001eaba
mov rax, r10
nop dword [rax]
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x14001eac8
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x14001e948
movzx r14d, word [r12]
movzx ebx, word [r10]
test r14w, r14w
je 0x14001e9c3
mov eax, r14d
xor ecx, ecx
nop dword [rax]
movzx edx, word [r10 + rcx]
test dx, dx
je 0x14001e9c3
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
lea r9d, [rdx - 0x41]
cmovb eax, r8d
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x14001eae0
add rcx, 2
movzx eax, word [r12 + rcx]
test ax, ax
jne 0x14001e980
mov edx, 0x47e4024a
mov rcx, rsi
call fcn.14001d4b0
mov edx, 0x2f52418a
mov rcx, rax
call fcn.14001dd30
cmp r14w, bx
je 0x14001eaff
mov r13, qword [r13]
cmp rdi, r13
jne 0x14001e900
test ebp, ebp
je 0x14001eb12
mov edx, 0x16301b2a
lea rcx, [0x140030fe0]
lea rbx, [rsp + 0x30]
call fcn.14001d4b0
mov edx, 0xb0c8c6a
mov rcx, rax
call fcn.14001dd30
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x1400c4f58]
mov r8, rbx
lea r9, [rsp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [0x1400c4f30]
mov edx, 0x17bac30e
lea rcx, [0x140030fa0]
mov ebx, eax
call fcn.14001d4b0
mov edx, 0x4ec10ace
mov rcx, rax
call fcn.14001dd30
xor eax, eax
test ebx, ebx
cmove rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
movzx eax, word [rdx + 2]
add rdx, 2
test ax, ax
jne 0x14001e910
mov r10, qword [r13 + 0x50]
movzx ebx, word [r10]
test bx, bx
jne 0x14001e941
movzx r14d, word [r12]
jmp 0x14001e9c3
movzx ebx, word [rax + 2]
add rax, 2
test bx, bx
jne 0x14001e948
jmp 0x14001e968
mov rcx, rsi
mov edx, 0x47e4024a
call fcn.14001d4b0
mov edx, 0x2f52418a
mov rcx, rax
call fcn.14001dd30
jmp 0x14001e9e7
mov rax, qword [r13 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edx, 0x75ef9a6e
lea rcx, [0x1400310c0]
call fcn.14001d4b0
mov edx, 0x87d2c2e
mov rcx, rax
call fcn.14001dd30
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140023fa0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14002b110
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14002b110
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140024bd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c5588]
test eax, eax
je 0x140024c6a
lea rax, [0x1400c5560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c5590]
mov qword [rbp - 8], rax
jmp 0x140024c4e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140024c42
cmp qword [rbp - 0x10], 0
je 0x140024c42
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140024c08
lea rax, [0x1400c5560]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140024c6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140024d70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140024d98
mov eax, 0
jmp 0x140024de6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140024dc1
mov eax, 0
jmp 0x140024de6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140024de1
mov eax, 0
jmp 0x140024de6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140024dec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140024e6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140024e61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140024e61
mov rax, qword [rbp - 8]
jmp 0x140024e7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140024e34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x10007510
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.1013a000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x100411cb0
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x85ee1fd8
cmp r9b, byte [rdi + 0x20b11bf2]
Function at 0x1400927e7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400f58f0]
jne 0x1400921aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400921a6
repz ret
ror rcx, 0x10
jmp 0x140092740
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400f5a80]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400f5b78]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400927c5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400f5a80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400927e7
mov rax, qword [rsp + 0x88]
mov qword [0x1400f5b78], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400f5b18], rax
mov rax, qword [0x1400f5b78]
mov qword [0x1400f59f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400f5b00], rax
mov dword [0x1400f59e0], 0xc0000409
mov dword [0x1400f59e4], 1
mov rax, qword [0x1400f58f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400f58f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400f5a78], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400ce4f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400f5a78], 0
jne 0x14009286e
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400946e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rdx + 0x1000]
mov rbx, rdx
cmp rax, 0x2000
jb 0x140094823
movabs rax, 0xffff800000000000
test rax, rdx
jne 0x140094823
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rdx], rdi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x14009481e
lea rax, [rsp + 0x38]
lea r9d, [rdi + 1]
lea rdx, str.Interface
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140094813
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140094808
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400947fd
cmp dword [rsp + 0x60], 1
jne 0x1400947fd
mov edx, dword [rsp + 0x58]
xor ecx, ecx
inc edx
shr edx, 1
inc edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea rcx, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov qword [rbx], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400947fd
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x14003b390
Capabilities:
Set registry value

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, 0x40
mov r13, r8
mov rsi, rdx
mov r12, rcx
mov r14b, 1
mov ecx, 0x18
call fcn.1400507d0
mov rbx, rax
mov qword [rsp + 0x38], rax
xor edi, edi
test rax, rax
je 0x14003b3ed
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
lea rcx, [0x140086c70]
call fcn.14004fe90
mov qword [rbx], rax
jmp 0x14003b3f0
mov rbx, rdi
test rbx, rbx
je 0x14003b561
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
mov r15d, 0xffffffff
mov ecx, r15d
lock xadd dword [rbx + 0x10], ecx
cmp ecx, 1
jne 0x14003b45e
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003b43f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003b451
call fcn.1400507b0
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.1400507b0
test ebp, ebp
je 0x14003b48b
mov ecx, ebp
call fcn.14003b570
xor al, al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp qword [rsi + 0x18], 0x10
jb 0x14003b495
mov rsi, qword [rsi]
mov ecx, 0x18
call fcn.1400507d0
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003b4c4
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov rcx, rsi
call fcn.14004fe90
mov qword [rbx], rax
jmp 0x14003b4c7
mov rbx, rdi
test rbx, rbx
je 0x14003b561
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r13
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
setne bpl
lock xadd dword [rbx + 0x10], r15d
cmp r15d, 1
jne 0x14003b538
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003b519
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003b52b
call fcn.1400507b0
mov qword [rbx + 8], rdi
mov edx, 0x18
mov rcx, rbx
call fcn.1400507b0
test bpl, bpl
je 0x14003b547
mov ecx, esi
call fcn.14003b570
xor r14b, r14b
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [r12]
je 0x14003b558
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, r14b
jmp 0x14003b46b
mov ecx, 0x8007000e
call fcn.14004fe80
int3

Function at 0x1400406e0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400a6ef5], 0
je 0x1400406f8
mov eax, dword [0x1400a6ef8]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x140040761
sub edx, 2
je 0x14004075a
sub edx, 1
je 0x140040736
sub edx, 0xb
je 0x14004072c
cmp edx, 1
jne 0x14004075a
lea eax, [rdx + 1]
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x140043750
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14009a038]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r10, rdx
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rdi, [rbp + 0x30]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
xor esi, esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400438c5
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
mov rdx, qword [rsp + 0x20]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x1400437e0
lea rcx, [rsp + 0x50]
call fcn.140024f50
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], 7
lea rax, [rbp + 0x30]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140043832
mov r8, rdi
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140024f50
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14001ea60
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400438a0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004389b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004389b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400507b0
mov rax, rbx
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140050790
mov rbx, qword [rsp + 0x380]
add rsp, 0x350
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rbp - 0x30]
call fcn.14001e800
nop
mov rcx, rax
call fcn.140043e40
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14001e900
lea rdx, [0x1400967b0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3