joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004e230
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140120c90]
xor rax, rsp
mov qword [rsp + 0x20], rax
lea rsi, [r8 + 0x10]
mov rbx, r8
cmp qword [rsi + 0x18], 8
mov r15, rdx
mov r9, qword [rsi + 0x10]
mov r14, rcx
jb 0x14004e26c
mov r8, qword [rsi]
jmp 0x14004e26f
mov r8, rsi
xor ebp, ebp
movabs rcx, 0xcbf29ce484222325
mov edx, ebp
add r9, r9
je 0x14004e2a0
movzx eax, byte [r8 + rdx]
movabs r10, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r10
cmp rdx, r9
jb 0x14004e282
mov r8, qword [r14 + 0x28]
mov rdx, rcx
shr rdx, 0x20
xor rdx, rcx
and rdx, r8
cmp qword [r14 + 0x30], rdx
ja 0x14004e2c4
shr r8, 1
or rax, 0xffffffffffffffff
sub rax, r8
add rdx, rax
mov rcx, qword [r14 + 0x10]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x14004e2f3
cmp qword [rcx + rdx*8], rbx
jne 0x14004e2e8
mov rax, qword [r14]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r14 + 0x10]
mov rax, qword [r14]
jmp 0x14004e2ec
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14004e300
cmp qword [rcx + rdx*8], rbx
jne 0x14004e300
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rdi, qword [rbx]
cmp rbx, qword [r14]
je 0x14004e352
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rsi + 0x18], 8
jb 0x14004e330
mov rcx, qword [rsi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsi + 0x18], 7
mov rcx, rbx
mov qword [rsi + 0x10], rbp
mov word [rsi], bp
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
dec qword [r14 + 8]
mov qword [r15], rdi
mov rax, r15
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400be470
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004e534
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140120c90]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14004e581
mov rdx, qword [r8]
jmp 0x14004e584
mov rdx, r15
movabs r11, 0xcbf29ce484222325
lea r8, [rax + rax]
xor r13d, r13d
mov ecx, r13d
test r8, r8
je 0x14004e5ba
movzx eax, byte [rdx + rcx]
xor r11, rax
movabs r9, 0x100000001b3
imul r11, r9
inc rcx
cmp rcx, r8
jb 0x14004e59d
mov rax, r11
shr rax, 0x20
xor r11, rax
mov rcx, qword [rsi + 0x28]
and r11, rcx
cmp qword [rsi + 0x30], r11
ja 0x14004e5de
shr rcx, 1
or rax, 0xffffffffffffffff
sub rax, rcx
add r11, rax
mov rdi, qword [rsi]
add r11, r11
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + r11*8]
cmp rdi, rcx
je 0x14004e69f
mov rdi, qword [rax + r11*8 + 8]
mov rdi, qword [rdi]
cmp rdi, rcx
je 0x14004e69f
mov rdi, qword [rdi + 8]
lea rdx, [rdi + 0x10]
mov rcx, r15
call fcn.14003b32c
test al, al
jne 0x14004e626
mov rax, qword [rsi + 0x10]
cmp rdi, qword [rax + r11*8]
jne 0x14004e606
jmp 0x14004e69f
mov rdx, r15
lea rcx, [rdi + 0x10]
call fcn.14003b32c
test al, al
jne 0x14004e63b
mov rdi, qword [rdi]
jmp 0x14004e69f
cmp rbx, qword [rsi]
je 0x14004e690
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
cmp qword [rbx + 0x28], 8
jb 0x14004e66c
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbx + 0x28], 7
mov qword [rbx + 0x20], r13
mov word [rbx + 0x10], r13w
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
dec qword [rsi + 8]
mov qword [r14], rdi
mov byte [r14 + 8], r13b
mov rax, r14
jmp 0x14004e733
mov rax, qword [rbx]
cmp rdi, rax
je 0x14004e6d4
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rbx
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rbx + 8]
mov qword [rax + 8], rcx
mov qword [rbx + 8], rdx
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx + r11*8]
cmp rax, qword [rsi]
jne 0x14004e6f0
mov qword [rcx + r11*8], rbx
mov rax, qword [rsi + 0x10]
mov qword [rax + r11*8 + 8], rbx
jmp 0x14004e71f
cmp rax, rdi
jne 0x14004e6fb
mov qword [rcx + r11*8], rbx
jmp 0x14004e71f
mov rax, qword [rcx + r11*8 + 8]
mov rdx, qword [rax]
mov qword [rcx + r11*8 + 8], rdx
cmp rdx, rbx
je 0x14004e71f
mov r8, qword [rsi + 0x10]
mov rax, qword [r8 + r11*8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + r11*8 + 8], rdx
mov rcx, rsi
call fcn.14004e154
nop
mov qword [r14], rbx
mov byte [r14 + 8], 1
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400be470
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14006fd10
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140120c90]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r14, rdx
lea r8, str.BackupProfile::GetDeviceFolderName__
lea rdx, str.UevCommon
lea rcx, [rsp + 0x40]
call fcn.14004ef18
nop
xor esi, esi
mov edi, esi
xor r8d, r8d
lea rdx, [0x1400d7060]
mov rcx, r14
call fcn.1400064bc
mov dword [rsp + 0x30], 0x104
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x40]
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006fe5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
cmp edi, 0x800700ea
jne 0x14006fe9a
mov ecx, dword [rsp + 0x30]
lea eax, [rsi + 2]
mul rcx
lea rcx, [rsi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.1400a1a90
mov rbx, rax
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
mov rdx, rax
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006fe20
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14006fe49
mov edi, esi
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, r14
call fcn.1400064bc
mov r8d, 7
lea rdx, str.Success
lea rcx, [rbp - 0x80]
call fcn.1400064bc
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x14006fe9a
cmp word [rbp - 0x40], si
je 0x14006fe74
lea rax, [rbp - 0x40]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x14006fe68
mov rsi, rcx
mov r8, rsi
lea rdx, [rbp - 0x40]
mov rcx, r14
call fcn.1400064bc
mov r8d, 7
lea rdx, str.Success
lea rcx, [rbp - 0x80]
call fcn.1400064bc
nop
lea rcx, [rsp + 0x40]
call fcn.14004f034
mov eax, edi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400be470
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140070768
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov rax, qword [0x140120c90]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r9
mov rdi, r8
mov r15d, edx
mov rsi, rcx
xor r12d, r12d
mov qword [rbp - 0x69], r12
mov rcx, r9
call fcn.140050824
mov ecx, 0x200
call fcn.1400a1a90
mov rbx, rax
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x140070803
lea edi, [rax + 0xe]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x69]
call fcn.140006264
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400be470
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp qword [rbp - 0x69], r12
jne 0x14007099f
cmp qword [rdi + 0x18], 8
jb 0x140070817
mov rdi, qword [rdi]
mov edx, r15d
mov rcx, rsi
call fcn.1400706dc
mov rcx, rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x1400707c9
mov esi, r12d
mov dword [rbp - 0x61], 0x100
mov rcx, qword [rbp - 0x69]
test rcx, rcx
setne al
test al, al
je 0x140070970
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x61]
mov r8, rbx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x14007093d
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r12
mov word [rbp - 9], r12w
cmp word [rbx], r12w
jne 0x1400708bb
mov r8, r12
jmp 0x1400708c9
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], r12w
jne 0x1400708bf
mov rdx, rbx
lea rcx, [rbp - 9]
call fcn.1400064bc
nop
mov r15, qword [r14]
lea r9, [rbp - 9]
mov r8, qword [r15 + 8]
mov rdx, r15
call fcn.140077258
mov rdx, qword [r14 + 8]
movabs rcx, 0x555555555555554
sub rcx, rdx
cmp rcx, 1
jb 0x140070963
lea rcx, [rdx + 1]
mov qword [r14 + 8], rcx
mov qword [r15 + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
cmp qword [rbp + 0xf], 8
jb 0x14007092a
mov rcx, qword [rbp - 9]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
inc esi
cmp esi, 0x1000
jb 0x140070853
jmp 0x1400707c9
cmp eax, 0x103
jne 0x140070956
mov edi, 2
cmp qword [r14 + 8], r12
cmova edi, r12d
jmp 0x1400707c9
mov rcx, r14
call fcn.140050824
jmp 0x1400707c9
lea rcx, str.list_T__too_long
call fcn.1400a0c2c
nop
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 9]
call fcn.1400062c8
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.140005ae4
lea rdx, [0x140116d50]
lea rcx, [rbp - 0x49]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, str.Attempting_to_assign_an_already_valid_handle.
lea rcx, [rbp - 9]
call fcn.1400062c8
nop
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x49]
call fcn.140005ae4
lea rdx, [0x140116d50]
lea rcx, [rbp - 0x49]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140087e98
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 0x140087eaf
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x140087edf
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x140087ec1
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 0x140087f1e
add ecx, 0x7fffffff
mov rdx, qword [rbx + 0x28]
movsxd rax, ecx
and rax, rdx
cmp qword [rbx + 0x30], rax
ja 0x140087f3b
shr rdx, 1
or rcx, 0xffffffffffffffff
sub rcx, rdx
add rax, rcx
add rsp, 0x20
pop rbx
ret

Function at 0x140094ecc
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 [0x140120c90]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x140094f0a
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140094f31
test rbx, rbx
je 0x140094f2d
and dword [rbx], 0
call fcn.140095f14
mov qword [rbx + 8], rax
mov al, 1
jmp 0x140094f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
and dword [rsp + 0x20], 0
call fcn.140095f14
mov qword [rsp + 0x28], rax
cmp esi, 0xb7
jne 0x140094f7c
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.140095164
cmp dword [rax], 3
jne 0x140094f7c
test rbx, rbx
je 0x140094f8c
and dword [rbx], 0
call fcn.140095f14
jmp 0x140094f88
test rbx, rbx
je 0x140094fb4
call fcn.140095f14
mov dword [rbx], esi
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1400be470
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x48]
call fcn.140003be4
nop
call fcn.140095f14
mov r8, rax
mov edx, esi
lea rcx, [rsp + 0x38]
call fcn.140027bdc
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.140094254
lea rdx, [0x140117620]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140095014
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 [0x140120c90]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, rcx
mov qword [rsp + 0x20], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
mov edi, eax
mov eax, 1
xor esi, esi
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.1400a1a90
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x30], sil
lea r8d, [rsi + 0x1f]
lea rdx, str.boost::filesystem::current_path
lea rcx, [rsp + 0x30]
call fcn.140003dfc
nop
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400950d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400950d2
mov eax, esi
lea r8, [rsp + 0x30]
mov ecx, eax
call fcn.14009434c
nop
cmp qword [rsp + 0x48], 0x10
jb 0x1400950f8
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
mov word [r14], si
cmp word [rbx], si
je 0x140095119
inc rbp
cmp word [rbx + rbp*2], si
jne 0x14009510d
mov rsi, rbp
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.1400064bc
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400be470
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 0x140095164
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 [0x140120c90]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x1400951a4
mov rcx, qword [rdx]
jmp 0x1400951a7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x1400951ce
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14009484c
jmp 0x1400952f1
xor r12d, r12d
bt r14d, 0xa
jae 0x1400952b7
cmp qword [rdi + 0x18], 8
jb 0x1400951e8
mov rdx, qword [rdi]
jmp 0x1400951eb
mov rdx, rdi
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp word [rdx], r12w
jne 0x140095207
mov r8, r12
jmp 0x140095215
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14009520b
lea rcx, [rbp - 0x30]
call fcn.1400064bc
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140094730
mov rbx, rax
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x18], 8
jb 0x14009524f
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp rbx, 0xffffffffffffffff
jne 0x140095277
mov r8, r15
mov rdx, rdi
mov rcx, rsi
call fcn.14009484c
nop
jmp 0x1400952f1
mov rcx, rdi
call fcn.140094774
test al, al
jne 0x1400952a8
mov edx, r14d
mov rcx, rdi
call fcn.1400943e0
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400952f1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test r15, r15
je 0x1400952c8
mov dword [r15], r12d
call fcn.140095f14
mov qword [r15 + 8], rax
mov edx, r14d
mov rcx, rdi
test r14b, 0x10
mov dword [rbp - 0x40], 3
jne 0x1400952e2
mov dword [rbp - 0x40], 2
call fcn.1400943e0
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.1400be470
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400962b0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140120c90]
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 [0x140122030]
cmp eax, dword [rsp + 0x30]
je 0x140096427
mov ecx, dword [rsp + 0x34]
xor eax, eax
lock cmpxchg dword [0x140122030], ecx
jne 0x14009645f
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140096372
cmp byte [rsp + 0x48], bl
jne 0x140096332
lea rcx, [rsp + 0x48]
call fcn.140096180
lea r8, [rsp + 0x48]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140096368
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x140096382
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
nop dword [rax + rax]
nop
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x140120e10], eax
cmp byte [rsp + 0x38], 0
jne 0x1400963a7
lock inc dword [0x140122034]
mov byte [rsp + 0x38], 1
mov eax, dword [rsp + 0x30]
xchg dword [0x140122030], eax
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jne 0x140096418
mov eax, dword [0x140122034]
cmp eax, 1
jle 0x140096427
cmp byte [rsp + 0x48], bl
jne 0x1400963d6
lea rcx, [rsp + 0x48]
call fcn.140096180
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14009640e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rbx
test rbx, rbx
je 0x14009642c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140096445
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400be470
add rsp, 0xb0
pop rbx
ret
cmp byte [rsp + 0x38], 0
jne 0x1400964da
lock inc dword [0x140122034]
mov byte [rsp + 0x38], 1
mov eax, dword [0x140122030]
cmp eax, dword [rsp + 0x30]
je 0x140096427
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1400964df
cmp byte [rsp + 0x48], cl
jne 0x140096498
lea rcx, [rsp + 0x48]
call fcn.140096180
lea r9, [rsp + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
nop dword [rax + rax]
mov rbx, rax
mov rcx, qword [rsp + 0x40]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400964d0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rbx
jmp 0x1400962f4
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
nop dword [rax + rax]
jmp 0x1400962f4
Function at 0x1400bc478
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 r12
push r13
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 0x1400bc4d9
test byte [rbx + 6], 0xf
jne 0x1400bc4cc
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400bc4cc
cmp word [rbx + 2], di
jne 0x1400bc4cc
cmp word [rbx], di
jne 0x1400bc4cc
lea esi, [rdi + 1]
jmp 0x1400bc4d1
mov esi, 2
movzx eax, si
jmp 0x1400bc6d6
xor edi, edi
test cx, cx
jne 0x1400bc4f4
mov rcx, rbx
call fcn.1400bdd58
movzx ecx, ax
cmp di, ax
jl 0x1400bc6d3
movsx edx, cx
test esi, esi
jle 0x1400bc524
sub ebp, edx
cmp ebp, esi
jg 0x1400bc524
movsd xmm0, qword [0x140120c50]
cmp word [rbx + 6], di
jge 0x1400bc516
xorps xmm0, xmmword [0x1400e6ff0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400bc6d6
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400bc551
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400bc6d6
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1400bc6c8
test ebp, ebp
jns 0x1400bc6c8
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1400bc5ec
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x1400bc5bd
mov word [rbx + 4], cx
movzx r11d, di
mov word [rbx + 2], dx
neg bp
je 0x1400bc66b
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1400bc681
jne 0x1400bc6a0
test byte [rbx], sil
je 0x1400bc6a0
add word [rbx], si
jne 0x1400bc6a0
add word [rbx + 2], si
jne 0x1400bc6a0
add word [rbx + 4], si
jne 0x1400bc6a0
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1400bc549
cmp r11w, r15w
jne 0x1400bc549
cmp word [rbx + 4], di
jne 0x1400bc549
cmp word [rbx + 2], di
jne 0x1400bc549
cmp word [rbx], di
je 0x1400bc6d3
jmp 0x1400bc549
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret