joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a920
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov dword [r11 + 0x20], r9d
push rdi
sub rsp, 0x30
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov rdi, rdx
mov qword [r11 - 0x18], rax
mov rdx, qword [rcx]
mov rbx, r8
mov rcx, 0xffffffff80000002
mov r9d, 0x20119
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14002a96d
mov edx, 0x2c
jmp 0x14002a99f
mov rdx, qword [rdi]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14002a9b7
mov edx, 0x2d
mov rcx, qword [rsp + 0x38]
lea r8, str.onecore_amcoreoctagon_broker_sourcelib_reghelpers.cpp
mov r9d, eax
call fcn.140018bac
mov ebx, eax
jmp 0x14002a9b9
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002a9cf
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14002b324
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14004ba88]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov qword [rbp - 0x30], rcx
xor r14d, r14d
mov dword [rbp - 0x50], r14d
mov qword [rcx + 0x18], r14
mov qword [rcx + 0x20], 7
mov word [rcx + 8], r14w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r14
lea ecx, [r14 + 0xc]
call fcn.140034440
mov rdx, rax
mov qword [rbp - 0x48], rax
add rax, 0xc
mov qword [rbp - 0x38], rax
xor ecx, ecx
mov qword [rdx], rcx
mov dword [rdx + 8], ecx
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x50], 1
lea r9d, [r14 + 2]
lea r8d, [r14 + 0xc]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
nop dword [rax + rax]
mov rcx, qword [rbp + 8]
test eax, eax
js 0x14002b44e
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.14002be2c
mov rdx, rax
lea rcx, [rbx + 8]
call fcn.140020d48
lea rcx, [rbp - 0x28]
call fcn.140006450
mov dword [rbx], r14d
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14002b428
mov rdx, qword [rbp - 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b422
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002b422
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.140034740
nop
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140034260
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov r9d, eax
call fcn.140033954
int3
Function at 0x14002be2c
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r9d, r9d
mov dword [rax - 0x48], r9d
mov qword [rcx + 0x10], r9
mov qword [rcx + 0x18], 7
mov word [rcx], r9w
mov dword [rax - 0x48], 1
mov rbx, qword [rdx]
mov rsi, qword [rdx + 8]
sub rsi, rbx
cmp rsi, 0x7fffffff
ja 0x14002c090
test esi, esi
jle 0x14002c06a
movabs r10, 0x7ffffffffffffffe
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r8b, r9b
mov dl, r9b
movzx ecx, byte [rbx]
inc rbx
cmp esi, 1
jle 0x14002bebc
mov r8b, byte [rbx]
inc rbx
cmp esi, 2
jle 0x14002bebc
mov dl, byte [rbx]
inc rbx
mov rax, rcx
shr rax, 2
mov al, byte [rax + r11]
mov byte [rsp + 0x80], al
movzx eax, r8b
shr rax, 4
shl rcx, 4
or rax, rcx
and eax, 0x3f
mov al, byte [rax + r11]
mov byte [rsp + 0x81], al
movzx edx, dl
cmp esi, 1
jle 0x14002bf0d
mov ecx, edx
shr rcx, 6
movzx eax, r8b
shl rax, 2
or rcx, rax
and ecx, 0x3f
mov al, byte [rcx + r11]
jmp 0x14002bf0f
mov al, 0x3d
mov byte [rsp + 0x82], al
cmp esi, 2
jle 0x14002bf24
and edx, 0x3f
mov al, byte [rdx + r11]
jmp 0x14002bf26
mov al, 0x3d
mov byte [rsp + 0x83], al
mov r13, r9
movsx ecx, byte [rsp + r13 + 0x80]
mov r14, qword [rdi + 0x10]
mov r15, qword [rdi + 0x18]
cmp r14, r15
jae 0x14002bf6a
lea rax, [r14 + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r15, 8
jb 0x14002bf5a
mov rax, qword [rdi]
mov word [rax + r14*2], cx
mov word [rax + r14*2 + 2], r9w
jmp 0x14002c052
mov rax, r10
sub rax, r14
cmp rax, 1
jb 0x14002c096
lea rbp, [r14 + 1]
or rbp, 7
cmp rbp, r10
jbe 0x14002bf8c
mov rbp, r10
jmp 0x14002bfa8
mov rcx, r15
shr rcx, 1
mov rax, r10
sub rax, rcx
cmp r15, rax
ja 0x14002bf87
lea rax, [rcx + r15]
cmp rbp, rax
cmovb rbp, rax
lea rdx, [rbp + 1]
call fcn.140006a98
mov r12, rax
lea rax, [r14 + 1]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbp
add r14, r14
mov r8, r14
mov rcx, r12
cmp r15, 8
jb 0x14002c026
mov rbp, qword [rdi]
mov rdx, rbp
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
movsx eax, byte [rsp + r13 + 0x80]
mov word [r12 + r14], ax
xor eax, eax
mov word [r12 + r14 + 2], ax
lea rdx, [r15*2 + 2]
cmp rdx, 0x1000
jb 0x14002c019
add rdx, 0x27
mov rcx, qword [rbp - 8]
sub rbp, rcx
lea rax, [rbp - 8]
cmp rax, 0x1f
ja 0x14002c083
mov rbp, rcx
mov rcx, rbp
call fcn.140034740
xor r9d, r9d
jmp 0x14002c045
mov rdx, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
movsx eax, byte [rsp + r13 + 0x80]
mov word [r12 + r14], ax
xor r9d, r9d
mov word [r12 + r14 + 2], r9w
movabs r10, 0x7ffffffffffffffe
mov qword [rdi], r12
inc r13
cmp r13, 4
jb 0x14002bf30
sub esi, 3
test esi, esi
jg 0x14002be94
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.14002b2fc
int3
call fcn.140006c98
int3
Function at 0x140031718
Capabilities:
Encode data using xor
Hash data using fnv

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, 0x30
mov r14, rdx
mov rbp, rcx
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx eax, byte [r9 + rdx]
xor r8, rax
movabs rcx, 0x100000001b3
imul r8, rcx
inc r9
cmp r9, 4
jb 0x140031744
mov rdx, qword [rbp + 0x30]
and rdx, r8
add rdx, rdx
mov r8, qword [rbp + 0x18]
mov rax, qword [r8 + rdx*8]
lea rsi, [rbp + 8]
mov rbx, qword [rsi]
cmp qword [r8 + rdx*8], rbx
jne 0x140031787
mov rcx, rbx
jmp 0x14003178f
mov rcx, qword [r8 + rdx*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x1400317a6
mov ecx, dword [r14]
cmp dword [rax + 0x10], ecx
je 0x1400317a1
mov rax, qword [rax]
jmp 0x14003177c
mov rcx, rax
jmp 0x1400317ac
mov rax, rbx
mov rcx, rbx
cmp rcx, rbx
jne 0x14003182a
mov rbx, qword [rbx]
movabs rax, 0x7ffffffffffffff
cmp qword [rsi + 8], rax
jne 0x1400317d8
lea rcx, str.list_T__too_long
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
nop dword [rax + rax]
int3
mov rdi, qword [rbx + 8]
mov qword [rsp + 0x20], rsi
and qword [rsp + 0x28], 0
mov ecx, 0x20
call fcn.140034440
mov ecx, dword [r14]
mov dword [rax + 0x10], ecx
and qword [rax + 0x18], 0
mov qword [rax], rbx
mov qword [rax + 8], rdi
inc qword [rsi + 8]
mov qword [rbx + 8], rax
mov qword [rdi], rax
mov rax, qword [rsi]
mov r9, qword [rax]
lea r8, [r9 + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140031910
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140031910
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov rbx, r9
mov r11, r8
mov rsi, rdx
mov r9, rcx
movabs rcx, 0xcbf29ce484222325
xor edx, edx
movzx eax, byte [rdx + r11]
xor rcx, rax
movabs r8, 0x100000001b3
imul rcx, r8
inc rdx
cmp rdx, 4
jb 0x140031940
mov r8, qword [r9 + 0x30]
and r8, rcx
mov r10, r8
add r10, r10
mov rcx, qword [r9 + 0x18]
mov rdi, qword [r9 + 8]
cmp rdi, qword [rcx + r10*8]
je 0x1400319c9
mov rdi, qword [rcx + r10*8 + 8]
mov rdi, qword [rdi]
cmp rdi, qword [rcx + r10*8]
je 0x1400319c9
mov rdi, qword [rdi + 8]
mov eax, dword [rdi + 0x10]
cmp dword [r11], eax
jne 0x140031982
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
dec qword [r9 + 0x10]
mov edx, 0x20
mov rcx, rbx
call fcn.140034740
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x140031a60
mov rax, qword [rbx]
cmp rdi, rax
je 0x1400319fe
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 rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8]
add r8, r8
cmp rax, qword [r9 + 8]
jne 0x140031a1e
mov qword [rdx + r8*8], rbx
mov rax, qword [r9 + 0x18]
mov qword [rax + r8*8 + 8], rbx
jmp 0x140031a4d
cmp rax, rdi
jne 0x140031a29
mov qword [rdx + r8*8], rbx
jmp 0x140031a4d
mov rax, qword [rdx + r8*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r8*8 + 8], rcx
cmp rcx, rbx
je 0x140031a4d
mov rdx, qword [r9 + 0x18]
mov rax, qword [rdx + r10*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r10*8 + 8], rcx
mov rcx, r9
call fcn.140031a78
nop
mov qword [rsi], rbx
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140031c90
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r9, rcx
mov rdi, rdx
movabs rcx, 0xcbf29ce484222325
xor r10d, r10d
movzx eax, byte [r8 + r10 + 0x10]
movabs rdx, 0x100000001b3
xor rcx, rax
inc r10
imul rcx, rdx
cmp r10, 4
jb 0x140031cad
mov rdx, qword [r9 + 0x30]
and rdx, rcx
mov rcx, qword [r9 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], r8
jne 0x140031d05
cmp qword [rcx + rdx*8], r8
jne 0x140031cfa
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x140031cfe
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140031d12
cmp qword [rcx + rdx*8], r8
jne 0x140031d12
mov rax, qword [r8]
mov qword [rcx + rdx*8], rax
mov rax, qword [r8 + 8]
mov edx, 0x20
mov rbx, qword [r8]
mov qword [rax], rbx
mov rcx, qword [r8]
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
mov rcx, r8
dec qword [r9 + 0x10]
call fcn.140034740
mov qword [rdi], rbx
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140034288
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14004c350], eax
call fcn.140034d30
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14004c350], 0
jne case.default.0x1400342de
mov ecx, 1
call fcn.140034d30
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
int1
add al, 0xe
insd dword [rdi], dx
mov edi, 0x6bfa7df8
sbb esi, ebx
sar dl, cl
invalid
dec dword [rdi + riz + 0x79]
pop rsi
fucompp
jmp 0x140083c74
Function at 0x14007f69c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.1400f55c0
mov qword [rsp + 0x28], 0
jmp 0x14007f6bd
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x28]
jl 0x14007f7b9
push 0
pop rcx
call fcn.1400dc570
and rax, rax
je 0x14007f7ae
mov qword [rsp + 0x30], 0xffffffffffffffff
call fcn.1400892f6
mov qword [rsp + 0x30], rax
mov r15, qword [rsp + 0x30]
and r15, r15
jle 0x14007f777
call fcn.1400e100c
mov rax, rax
push rax
mov r15, qword [0x1410fc088]
cmp r15, qword [rsp]
jne 0x14007f734
sub rsp, 8
push qword [rsp + 0x40]
pop rcx
sub rsp, 0x20
call fcn.14007d633
add rsp, 0x28
mov r15, rax
and r15, r15
jne 0x14007f732
jmp 0x14007f774
xor r15, r15
cmp r15, qword [rsp]
jne 0x14007f75d
sub rsp, 8
push qword [rsp + 0x40]
pop rcx
sub rsp, 0x20
call fcn.140067a36
add rsp, 0x28
mov r15, rax
and r15, r15
jne 0x14007f75b
jmp 0x14007f774
sub rsp, 8
push 3
pop rcx
sub rsp, 0x20
call fcn.1400dc114
add rsp, 0x28
pop rax
jmp 0x14007f782
push 5
pop rcx
call fcn.1400dc114
push 0x1b
pop rcx
call sub.USER32.dll_GetKeyState
mov r15, rax
cmp r15, 1
jle 0x14007f7a3
mov qword [0x1410fbfe8], 1
jmp 0x14007f7ae
mov qword [0x1410fbfe8], 0
inc qword [rsp + 0x28]
jno 0x14007f6bd
xor rax, rax
add rsp, 0x40
pop r15
ret
Function at 0x140089424
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140089437
sub rsp, 0x28
call fcn.1400f55c0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400f5130
add rsp, 0x10
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.1400f5130
add rsp, 0x10
push qword [rsp + 0x28]
pop rcx
call fcn.140089670
push qword [rsp + 0x30]
movabs rcx, 0x1401ad70c
pop rdx
call fcn.1400f5340
or rax, rax
je 0x140089568
cmp dword [0x1410fc2b8], 0
je 0x140089546
movabs rax, 0x1401acd14
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.1400cf42c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140089544
movabs rax, 0x1401bcfb0
push rax
push qword [rsp + 0x40]
pop rcx
pop rdx
call fcn.1400cf4b4
mov qword [rsp + 0x40], rax
sub rsp, 8
push 0
movsxd r15, dword [0x1410fc2bc]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x1410fc230]
mov rax, rax
push rax
push qword [0x1410fc240]
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400cfe8c
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.1400cf318
jmp 0x140089563
mov rax, qword [0x1410fc230]
mov rax, rax
push rax
push qword [0x1410fc240]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
jmp 0x14008962d
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push qword [0x1410fc240]
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_RegConnectRegistryW
movsxd rax, eax
mov qword [rsp + 0x50], rax
cmp dword [0x1410fc2b8], 0
je 0x140089612
movabs rax, 0x1401acd14
push rax
push 0xffffffffffffffff
pop rcx
pop rdx
call fcn.1400cf42c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140089610
push 0
movsxd r15, dword [0x1410fc2bc]
or r15, 0xf003f
mov rax, r15
push rax
mov rax, qword [0x1410fc230]
mov rax, rax
push rax
push qword [rsp + 0x70]
movabs rax, 0x1401bcfb0
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400d0aa0
add rsp, 0x30
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.1400cf318
jmp 0x14008962d
mov rax, qword [0x1410fc230]
mov rax, rax
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0x48]
and r15, r15
jne 0x140089640
mov rax, 1
jmp 0x140089643
xor rax, rax
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400f5630
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400f5630
add rsp, 0x28
pop rax
add rsp, 0x60
pop r15
ret
Function at 0x1400899f5
Capabilities:
Get graphical window text

Disassembly:
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.1400f55c0
mov rcx, qword [rsp + 0x60]
call fcn.14008aea8
mov r15, qword [0x1410fc2c0]
and r15, r15
jne 0x140089a3f
push 0
push 0
pop rcx
pop rdx
call sub.USER32.dll_FindWindowW
mov qword [0x1410fc2c8], rax
mov qword [0x1410fc2c0], 1
jmp 0x140089a58
push 2
push qword [0x1410fc2c8]
pop rcx
pop rdx
call sub.USER32.dll_GetWindow
mov qword [0x1410fc2c8], rax
mov r15, qword [0x1410fc2c8]
and r15, r15
je 0x140089b2e
push 0xfffffffffffffff0
push qword [0x1410fc2c8]
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
and r15, 0x10000000
cmp r15, 0x10000000
jne 0x140089b2c
push 0xffffffffffffffec
push qword [0x1410fc2c8]
pop rcx
pop rdx
call sub.USER32.dll_GetWindowLongPtrW
mov r15, rax
and r15, 0x80
cmp r15, 0x80
je 0x140089b2c
push rcx
sub rsp, 0x28
call fcn.1400f51a0
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.1400f51a0
add rsp, 0x28
pop rcx
push rax
push 0x100
pop rcx
pop rdx
sub rsp, 0x20
call fcn.1400f21e0
add rsp, 0x28
lea rcx, [rsp + 0x30]
pop rdx
call fcn.1400f5260
push 0x100
push qword [rsp + 0x30]
push qword [0x1410fc2c8]
pop rcx
pop rdx
pop r8
call sub.USER32.dll_GetWindowTextW
push qword [rsp + 0x28]
movabs rcx, 0x1401ac0c4
pop rdx
call fcn.1400f5340
or rax, rax
jne 0x140089b2c
jmp 0x140089b49
jmp 0x140089b39
mov qword [0x1410fc2c0], 0
mov r15, qword [0x1410fc2c8]
and r15, r15
jne 0x140089a0e
mov rcx, qword [rsp + 0x28]
push rcx
sub rsp, 0x28
call fcn.1400f51a0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400f51f0
add rsp, 0x28
pop rax
push rax
call fcn.1400f5490
pop rdx
add rax, rdx
jmp 0x140089b82
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400f5630
add rsp, 0x28
pop rax
add rsp, 0x30
pop r15
ret
Function at 0x140089b9d
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
push r15
mov rax, 0x14
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140089bb1
sub rsp, 0x28
call fcn.1400f55c0
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400f5130
add rsp, 0x10
lea rax, [rsp + 0x30]
lea rax, [rsp + 0x98]
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x68
mov dword [rbp + 0x3c], 1
mov r15, qword [rsp + 0xe8]
and r15, 2
and r15, r15
je 0x140089c23
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 0
jmp 0x140089c2e
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 1
lea rax, [rsp + 0x98]
mov rax, rax
push rax
lea rax, [rsp + 0x38]
mov rax, rax
push rax
push 0
push 0
push 0
push 0
push 0
push 0
push qword [rsp + 0x68]
push 0
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_CreateProcessW
add rsp, 0x50
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x140089cfd
mov r15, qword [rsp + 0xe8]
and r15, 1
and r15, r15
je 0x140089cef
lea rbp, [rsp + 0x98]
push qword [rbp + 8]
pop rax
mov qword [rsp + 0xb8], rax
push 1
pop rcx
call fcn.1400dc114
lea rax, [rsp + 0xc0]
mov rax, rax
push rax
push qword [rsp + 0xc0]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeThread
movsxd r15, dword [rsp + 0xc0]
cmp r15, 0x103
je 0x140089ced
jmp 0x140089cef
jmp 0x140089cb5
lea rbp, [rsp + 0x98]
mov rax, qword [rbp]
jmp 0x140089d00
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400f5630
add rsp, 0x28
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret

Function at 0x140089d4b
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140089d55
sub rsp, 0x28
call fcn.1400f55c0
mov byte [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_OpenProcessToken
and rax, rax
je 0x140089e68
lea rax, [rsp + 0x38]
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, 0x1401b49fa
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and rax, rax
je 0x140089e5e
lea rax, [rsp + 0x40]
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
push rbp
pop rbp
mov dword [rbp + 0xc], 2
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x140089e77
add rsp, 0x68
pop r15
pop rbp
ret
Function at 0x14008aea8
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x1410f7028]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14008b890
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14008b956
lea rcx, [0x141176da0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1410fc480]
jmp 0x14008b91a
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14008b917
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1410fc480]
mov rdx, rsi
call fcn.1400f500c
jmp 0x14008b91a
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14008b8e7
mov rdx, qword [0x1410f6e20]
lea rcx, [0x1410fc480]
mov rdi, rdx
inc rdx
mov qword [0x1410f6e20], rdx
lea edx, [rbx + 0x20]
call fcn.1400f5054
lea rcx, [0x141176da0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x14008b970
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14008b770
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x141176da0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1410fc480]
jmp 0x14008b9ac
cmp qword [rbx + 0x18], rdi
je 0x14008b9b3
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14008b9a3
jmp 0x14008b9cd
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1410fc480]
call fcn.1400f500c
lea rcx, [0x141176da0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]