joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006baf0
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rsi, r9
mov r14, r8
mov r15d, edx
mov r12, rcx
mov rdi, qword [rbp + 0xb0]
mov dword [rdi], 2
lea eax, [rdx - 2]
xor ebx, ebx
cmp eax, 1
ja 0x14006bd00
mov qword [rsp + 0x30], rbx
mov r8d, edx
lea rdx, [rbp + 0x20]
call fcn.140066adc
nop
lea r8, [0x1400d995c]
mov rdx, rax
lea rcx, [rbp]
call fcn.140026fe4
nop
lea r8, [0x1401231b0]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400271dc
nop
lea r8, [0x1400d995c]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140026fe4
nop
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400271dc
mov r14, rax
cmp qword [rsp + 0x30], rbx
je 0x14006bbdf
lea rdx, str.Attempting_to_assign_an_already_valid_handle.
lea rcx, [rsp + 0x40]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
nop
cmp qword [rax + 0x18], 8
jb 0x14006bbe9
mov r14, qword [rax]
mov edx, r15d
mov rcx, r12
call fcn.140066aac
mov rcx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x102
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rdi], eax
cmp qword [rbp - 0x48], 8
jb 0x14006bc26
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov r14d, 7
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rbx
mov word [rbp - 0x60], bx
cmp qword [rbp - 0x28], 8
jb 0x14006bc49
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x30], rbx
mov word [rbp - 0x40], bx
cmp qword [rbp - 8], 8
jb 0x14006bc66
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 8], r14
mov qword [rbp - 0x10], rbx
mov word [rbp - 0x20], bx
cmp qword [rbp + 0x18], 8
jb 0x14006bc83
mov rcx, qword [rbp]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x18], r14
mov qword [rbp + 0x10], rbx
mov word [rbp], bx
cmp qword [rbp + 0x38], 8
jb 0x14006bca0
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
cmp dword [rdi], ebx
jne 0x14006bcf6
cmp qword [rsi + 0x18], 8
jb 0x14006bcae
mov rsi, qword [rsi]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x14006bceb
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rsp + 0x40]
call fcn.140005a2c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140005278
lea rdx, [0x140118428]
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll__CxxThrowException
nop
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rdi], eax
lea rcx, [rsp + 0x30]
call fcn.140005984
cmp dword [rdi], ebx
sete al
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400b3bf0
add rsp, 0x150
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14006d3d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, r8
mov r15, rdx
mov r14, rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14006d406
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x14006d435
movzx eax, byte [rdx + r8]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x14006d417
mov rax, rcx
shr rax, 0x20
xor rcx, rax
mov rdx, qword [r14 + 0x28]
mov rsi, rdx
and rsi, rcx
cmp qword [r14 + 0x30], rsi
ja 0x14006d45c
shr rdx, 1
or rax, 0xffffffffffffffff
sub rax, rdx
add rsi, rax
mov rbx, qword [r14]
add rsi, rsi
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
je 0x14006d4bf
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, qword [rax + rsi*8]
je 0x14006d4bf
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, rdi
call fcn.140034d48
test al, al
jne 0x14006d49a
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
jne 0x14006d47a
jmp 0x14006d4bf
lea rcx, [rbx + 0x10]
mov rdx, rdi
call fcn.140034d48
test al, al
jne 0x14006d4af
mov rbx, qword [rbx]
jmp 0x14006d4bf
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x14006d5ac
mov rax, qword [r14]
mov r13, qword [rax]
mov r9, rdi
mov r8, qword [r13 + 8]
mov rdx, r13
call fcn.14003ebc4
mov rdx, rax
mov rax, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rax
cmp rcx, 1
jae 0x14006d4fb
lea rcx, str.list_T__too_long
call fcn.140096d3c
int3
inc rax
mov qword [r14 + 8], rax
mov qword [r13 + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
mov rdi, qword [r14]
mov rdi, qword [rdi]
mov qword [rsp + 0x70], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14006d54d
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r14 + 0x10]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r14]
jne 0x14006d569
mov qword [rdx + rsi*8], rdi
mov rax, qword [r14 + 0x10]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x14006d598
cmp rax, rbx
jne 0x14006d574
mov qword [rdx + rsi*8], rdi
jmp 0x14006d598
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rdi
je 0x14006d598
mov rdx, qword [r14 + 0x10]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.14006d600
nop
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14006d6b8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov rdi, r8
lea rcx, [r8 + 0x10]
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov r9, qword [rcx + 0x10]
jb 0x14006d6ea
mov rcx, qword [rcx]
xor ebp, ebp
movabs r8, 0xcbf29ce484222325
mov edx, ebp
add r9, r9
je 0x14006d71a
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14006d6fd
mov rcx, qword [rsi + 0x28]
mov rdx, r8
shr rdx, 0x20
xor rdx, r8
and rdx, rcx
cmp qword [rsi + 0x30], rdx
ja 0x14006d73e
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rdx, rax
mov rcx, qword [rsi + 0x10]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x14006d76d
cmp qword [rcx + rdx*8], rdi
jne 0x14006d767
mov rax, qword [rsi]
mov qword [rcx + rdx*8], rax
mov rcx, qword [rsi + 0x10]
mov rax, qword [rsi]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14006d77a
mov rax, qword [rdi + 8]
jmp 0x14006d760
cmp qword [rcx + rdx*8], rdi
jne 0x14006d77f
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rdi]
cmp rdi, qword [rsi]
je 0x14006d7c7
mov rax, qword [rdi + 8]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
cmp qword [rdi + 0x28], 8
jb 0x14006d7aa
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi + 0x28], 7
mov rcx, rdi
mov qword [rdi + 0x20], rbp
mov word [rdi + 0x10], bp
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
dec qword [rsi + 8]
mov rbp, qword [rsp + 0x48]
mov rax, r14
mov qword [r14], rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14006d99c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, r9
mov r12, r8
mov r15, rdx
mov r14, rcx
mov r8, qword [r8 + 0x10]
cmp qword [r12 + 0x18], 8
jb 0x14006d9dc
mov rdx, qword [r12]
jmp 0x14006d9df
mov rdx, r12
movabs rsi, 0xcbf29ce484222325
xor r13d, r13d
mov ecx, r13d
add r8, r8
je 0x14006da11
movzx eax, byte [rcx + rdx]
xor rsi, rax
movabs r9, 0x100000001b3
imul rsi, r9
inc rcx
cmp rcx, r8
jb 0x14006d9f4
mov rax, rsi
shr rax, 0x20
xor rsi, rax
mov rcx, qword [r14 + 0x28]
and rsi, rcx
cmp qword [r14 + 0x30], rsi
ja 0x14006da35
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add rsi, rax
mov rbx, qword [r14]
add rsi, rsi
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
je 0x14006daf8
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, qword [rax + rsi*8]
je 0x14006daf8
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rcx, r12
call fcn.140034d48
test al, al
jne 0x14006da83
mov rax, qword [r14 + 0x10]
cmp rbx, qword [rax + rsi*8]
jne 0x14006da5b
mov rdi, qword [rsp + 0x88]
jmp 0x14006daf8
lea rcx, [rbx + 0x10]
mov rdx, r12
call fcn.140034d48
mov rdi, qword [rsp + 0x88]
test al, al
jne 0x14006daa0
mov rbx, qword [rbx]
jmp 0x14006daf8
cmp rdi, qword [r14]
je 0x14006dae9
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
cmp qword [rdi + 0x28], 8
jb 0x14006dacb
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rdi + 0x28], 7
mov qword [rdi + 0x20], r13
mov word [rdi + 0x10], r13w
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
dec qword [r14 + 8]
mov qword [r15], rbx
mov byte [r15 + 8], r13b
mov rax, r15
jmp 0x14006db94
mov qword [rsp + 0x80], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14006db35
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r14 + 0x10]
mov rax, qword [rdx + rsi*8]
cmp rax, qword [r14]
jne 0x14006db51
mov qword [rdx + rsi*8], rdi
mov rax, qword [r14 + 0x10]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x14006db80
cmp rax, rbx
jne 0x14006db5c
mov qword [rdx + rsi*8], rdi
jmp 0x14006db80
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rdi
je 0x14006db80
mov rdx, qword [r14 + 0x10]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.14006d600
nop
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14007e024
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rdx + 0x18], 0x10
mov rbx, rcx
mov r9, qword [rdx + 0x10]
jb 0x14007e03b
mov rdx, qword [rdx]
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
test r9, r9
je 0x14007e069
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rcx
imul r8, r10
cmp rcx, r9
jb 0x14007e04c
mov rcx, r8
mov edx, 0x1f31d
shr rcx, 0x20
xor ecx, r8d
btr ecx, 0x1f
call qword [sym.imp.msvcrt.dll_ldiv]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x14007e0a3
add ecx, 0x7fffffff
mov rdx, qword [rbx + 0x28]
movsxd rax, ecx
and rax, rdx
cmp qword [rbx + 0x30], rax
ja 0x14007e0c0
shr rdx, 1
or rcx, 0xffffffffffffffff
sub rcx, rdx
add rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x14008abd8
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14008ac16
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14008ac3a
test rbx, rbx
je 0x14008ac33
and dword [rbx], 0
call fcn.14008bb2c
mov qword [rbx + 8], rax
mov al, 1
jmp 0x14008ace9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and dword [rsp + 0x20], 0
call fcn.14008bb2c
mov qword [rsp + 0x28], rax
cmp esi, 0xb7
jne 0x14008ac7f
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14008ae44
cmp dword [rax], 3
jne 0x14008ac7f
test rbx, rbx
je 0x14008ace7
and dword [rbx], 0
call fcn.14008bb2c
jmp 0x14008ace3
test rbx, rbx
jne 0x14008acdc
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x48]
call fcn.140003408
nop
call fcn.14008bb2c
mov r8, rax
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140025344
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140089f8c
lea rdx, [0x140119110]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
nop
call fcn.14008bb2c
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400b3bf0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14008ad14
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
lea eax, [rsi + 1]
test edi, edi
cmove edi, eax
mov ecx, edi
lea eax, [rsi + 2]
mul rcx
lea rbp, [rsi - 1]
cmovo rax, rbp
mov rcx, rax
call fcn.140097b58
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x38], sil
lea r8d, [rsi + 0x1f]
lea rdx, str.boost::filesystem::current_path
lea rcx, [rsp + 0x38]
call fcn.14000364c
nop
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14008adbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14008adbd
mov eax, esi
lea r8, [rsp + 0x38]
mov ecx, eax
call fcn.14008a0a8
nop
cmp qword [rsp + 0x50], 0x10
jb 0x14008addd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
mov word [r14], si
cmp word [rbx], si
je 0x14008adfe
inc rbp
cmp word [rbx + rbp*2], si
jne 0x14008adf2
mov rsi, rbp
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.140005c18
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400b3bf0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14008ae44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x14008ae84
mov rcx, qword [rdx]
jmp 0x14008ae87
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x14008aea8
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14008a540
jmp 0x14008afb8
xor r12d, r12d
bt eax, 0xa
jae 0x14008af7e
cmp qword [rdi + 0x18], 8
jb 0x14008aec1
mov rdx, qword [rdi]
jmp 0x14008aec4
mov rdx, rdi
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp word [rdx], r12w
jne 0x14008aee0
mov r8, r12
jmp 0x14008aeee
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14008aee4
lea rcx, [rbp - 0x30]
call fcn.140005c18
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.14008a440
mov rbx, rax
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x18], 8
jb 0x14008af22
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp rbx, 0xffffffffffffffff
jne 0x14008af4a
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14008a540
nop
jmp 0x14008afb8
mov rcx, rdi
call fcn.14008a47c
test al, al
jne 0x14008af75
mov edx, r14d
mov rcx, rdi
call fcn.14008a13c
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14008afb8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x14008af8f
mov dword [r15], r12d
call fcn.14008bb2c
mov qword [r15 + 8], rax
mov edx, r14d
mov rcx, rdi
test r14b, 0x10
mov dword [rbp - 0x40], 3
jne 0x14008afa9
mov dword [rbp - 0x40], 2
call fcn.14008a13c
mov dword [rbp - 0x3c], eax
mov rax, qword [rbp - 0x40]
mov qword [rsi], rax
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b3bf0
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008be5c
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140122f00]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x30], 0xc15730e2
mov dword [rsp + 0x34], 0x7f0725e3
mov byte [rsp + 0x38], 0
and qword [rsp + 0x40], 0
mov byte [rsp + 0x48], 0
mov eax, dword [0x1401247e0]
cmp eax, dword [rsp + 0x30]
je 0x14008c03b
mov ecx, dword [rsp + 0x34]
xor eax, eax
lock cmpxchg dword [0x1401247e0], ecx
jne 0x14008bfb6
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x14008bf12
cmp byte [rsp + 0x48], bl
jne 0x14008bede
lea rcx, [rsp + 0x48]
call fcn.14008bd48
lea r8, [rsp + 0x48]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14008bf08
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14008bf1c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140123080], eax
cmp byte [rsp + 0x38], 0
jne 0x14008bf3b
lock inc dword [0x1401247e4]
mov byte [rsp + 0x38], 1
mov eax, dword [rsp + 0x30]
xchg dword [0x1401247e0], eax
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x14008bfa8
mov eax, dword [0x1401247e4]
cmp eax, 1
jle 0x14008c03b
cmp byte [rsp + 0x48], bl
jne 0x14008bf6e
lea rcx, [rsp + 0x48]
call fcn.14008bd48
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14008bf9a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14008c040
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x14008c03b
cmp byte [rsp + 0x38], 0
jne 0x14008c025
lock inc dword [0x1401247e4]
mov byte [rsp + 0x38], 1
mov eax, dword [0x1401247e0]
cmp eax, dword [rsp + 0x30]
je 0x14008c03b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14008c02a
cmp byte [rsp + 0x48], cl
jne 0x14008bfef
lea rcx, [rsp + 0x48]
call fcn.14008bd48
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14008c01b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], rbx
jmp 0x14008bea0
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x14008bea0
mov rbx, qword [rsp + 0x40]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14008c053
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b3bf0
add rsp, 0xb0
pop rbx
ret
Function at 0x140092960
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, r9
mov rcx, rdi
mov rdx, r8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
xor ebx, ebx
test eax, eax
jne 0x140092997
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x14009299c
mov ebx, 1
mov rsi, qword [rsp + 0x38]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b0578
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov dword [rsp + 0x30], edi
lea ecx, [rdi + 5]
call fcn.140097d14
lea ebx, [rdi + 2]
mov rcx, rax
mov r9d, ebx
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x22]
call sub.KERNEL32.dll_GetLocaleInfoW
movzx eax, word [rsp + 0x30]
cmp ax, 0x30
je 0x1400b05ca
cmp ax, 0x31
jne 0x1400b05bc
lea ebx, [rdi + 1]
jmp 0x1400b05ca
cmp ax, 0x32
mov ebx, edi
mov ecx, 3
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b1bd4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1400b1c34
test byte [rbx + 6], 0xf
jne 0x1400b1c25
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400b1c25
cmp word [rbx + 2], di
jne 0x1400b1c25
cmp word [rbx], di
jne 0x1400b1c25
lea r10d, [rdi + 1]
jmp 0x1400b1c2b
mov r10d, 2
movzx eax, r10w
jmp 0x1400b1e3f
xor edi, edi
test cx, cx
jne 0x1400b1c4f
mov rcx, rbx
call fcn.1400b34c8
movzx ecx, ax
cmp di, ax
jl 0x1400b1e3c
test esi, esi
jle 0x1400b1c84
movsx eax, cx
sub ebp, eax
cmp ebp, esi
jg 0x1400b1c84
movsd xmm0, qword [0x140122ec0]
mov ebp, 0x8000
test word [rbx + 6], bp
je 0x1400b1c76
xorps xmm0, xmmword [0x1400e2590]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400b1e3f
movsx edx, cx
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400b1cab
add si, cx
mov eax, 0x800f
and word [rbx + 6], ax
shl si, 4
or word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400b1e3f
movzx ecx, word [rbx + 6]
lea r11d, [rsi - 1]
movzx r14d, cx
add r11d, edx
and cx, 0xf
mov ebp, 0x8000
mov r15d, 0x10
and r14w, bp
or cx, r15w
lea eax, [r11 + 0x35]
mov word [rbx + 6], cx
cmp eax, 0x34
ja 0x1400b1e31
lea r10d, [r15 - 0xf]
movzx esi, di
cmp r11w, 0xfff0
jg 0x1400b1d49
movzx edx, word [rbx + 2]
mov eax, 0xfff0
sub ax, r11w
movzx r9d, cx
movzx ecx, word [rbx + 4]
shr ax, 4
add ax, r10w
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add r11w, ax
test si, si
mov eax, edi
setne al
movzx esi, ax
or si, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, r10
jne 0x1400b1d1d
mov word [rbx + 6], di
mov word [rbx + 4], cx
mov word [rbx + 2], dx
neg r11w
je 0x1400b1dd3
movzx r8d, word [rbx]
mov eax, edi
movzx edx, r8w
movsx r9d, r11w
sub r15d, r9d
mov ecx, r15d
shl dx, cl
test si, si
movzx esi, dx
movzx edx, word [rbx + 2]
setne al
or si, ax
movzx eax, dx
shl ax, cl
movzx ecx, r11w
shr r8w, cl
mov ecx, r15d
or ax, r8w
movzx r8d, word [rbx + 4]
mov word [rbx], ax
movzx eax, r8w
shl ax, cl
movzx ecx, r11w
shr dx, cl
mov ecx, r15d
or ax, dx
movzx edx, word [rbx + 6]
mov word [rbx + 2], ax
movzx eax, dx
shl ax, cl
movzx ecx, r11w
shr r8w, cl
mov ecx, r9d
or ax, r8w
shr dx, cl
mov word [rbx + 6], dx
mov word [rbx + 4], ax
or word [rbx + 6], r14w
movzx eax, word [rbx + 6]
cmp bp, si
jb 0x1400b1de8
jne 0x1400b1e09
test byte [rbx], r10b
je 0x1400b1e09
add word [rbx], r10w
jne 0x1400b1e09
add word [rbx + 2], r10w
jne 0x1400b1e09
add word [rbx + 4], r10w
jne 0x1400b1e09
add ax, r10w
mov word [rbx + 6], ax
jmp 0x1400b1ca3
cmp ax, r14w
jne 0x1400b1ca3
cmp word [rbx + 4], di
jne 0x1400b1ca3
cmp word [rbx + 2], di
jne 0x1400b1ca3
cmp word [rbx], di
je 0x1400b1e3c
jmp 0x1400b1ca3
mov word [rbx + 6], r14w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret