joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x467db7
movzx edx, byte [rax]
test edx, edx
jne 0x467c74
nop dword [rax]
test r8b, r8b
jne 0x467c74
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x467c87
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x467d77
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x467d65
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x467d57
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x467cdd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x467d20
mov eax, 1
cmp rax, rbx
ja 0x467d0b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046cd80
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x467d4f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x467d13
mov rcx, r11
mov eax, r12d
jmp 0x467ce2
mov rcx, rbx
call fcn.0046ccc0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046ccc0
mov eax, r8d
mov rcx, rbx
call fcn.0046cd80
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x467dad
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x467d70
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x467c8d
mov eax, edx
mov rcx, rbx
call fcn.0046ccc0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046ccc0
nop
int3

Function at 0x4692c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46936f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00455e00]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046a8c0
xorps xmm15, xmm15
mov r14, qword [0x005b2728]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046a9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.004692c0
Function at 0x46c7e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404363
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409e40
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404340
cmp byte [0x005b2508], 0
je 0x46c7f5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x469a20
jmp 0x404340

Function at 0x46c800
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005b27e8]
mov eax, dword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b27e0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005b2508], 0
je 0x46c835
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005b2b20]
aesenc xmm0, xmmword [0x005b2b30]
aesenc xmm0, xmmword [0x005b2b40]
movq rax, xmm0
ret
jmp 0x40a020

Function at 0x46c840
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [0x005b27e8]
mov rax, qword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005b27e0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005b2508], 0
je 0x46c876
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005b2b20]
aesenc xmm0, xmmword [0x005b2b30]
aesenc xmm0, xmmword [0x005b2b40]
movq rax, xmm0
ret
jmp 0x40a060

Function at 0x46e600
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46e634
mov rcx, 0x28
jmp 0x46e63f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005b2728], rcx
pop rbp
ret

Function at 0x478e60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x478f2a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00403880
xorps xmm15, xmm15
mov r14, qword [0x005b2728]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x478f0f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004a6360]
xor ebx, ebx
mov rcx, rdx
call fcn.004664c0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00479440
inc rbx
cmp rcx, rbx
jae 0x478efe
mov edi, 1
lea rsi, [0x004a6360]
call fcn.004665a0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004e6148]
lea rsi, [0x004e5a18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00478e60
Function at 0x48ab60
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48b29f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x48ab8d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x48ae11
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x48ae3d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004e7460]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004a6260]
lea rbx, [0x004e60a0]
call fcn.00465120
inc rax
cmp rax, r8
jge 0x48ae62
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x48ae97
lea rdi, [0x004a62e0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x48ab83
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x48ae7b
jmp 0x48ae50
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046a9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0048ab60

Function at 0x48b440
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x48b457
inc rax
cmp rax, 4
jge 0x48b46f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x48b454
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x48b480
inc rax
cmp rax, 4
jge 0x48b48e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x48b4b7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x48b49b
jmp 0x48b47d
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401c1a10]
mov dword [rax], 1
mov rax, qword [0x1401c1a20]
mov dword [rax], 1
mov rax, qword [0x1401c1a30]
mov dword [rax], 1
mov rax, qword [0x1401c19c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000594b
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, r8
mov edi, r9d
test r8, r8
je 0x140005967
xor eax, eax
mov qword [r8], rax
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x14000598d
mov rcx, rax
call fcn.140004436
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140005991
mov rcx, rbx
call fcn.140004423
xor esi, esi
jmp 0x1400059f3
movsxd r13, edi
lea rcx, [r13 + rax]
call fcn.14000579e
mov rsi, rax
test rax, rax
je 0x140005985
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rbp, rax
je 0x1400059d0
mov rcx, rbx
call fcn.140004423
mov rcx, rsi
call fcn.1400058be
jmp 0x14000598d
test edi, edi
jle 0x1400059e2
lea rdx, [rsi + rbp]
xor eax, eax
mov rcx, r13
mov rdi, rdx
rep stosb byte [rdi], al
mov rcx, rbx
call fcn.140004423
test r12, r12
je 0x1400059f3
mov qword [r12], rbp
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14000cc3b
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [rcx + 0x53e0], 0
mov rbx, rcx
mov rsi, rdx
lea rcx, [rcx + 0x53e8]
je 0x14000ccb7
xor edx, edx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rcx
call fcn.140097270
mov r8, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.14000bbfa
mov r8d, dword [rbx + 0x53e8]
mov rcx, qword [rbx + 0x53f0]
mov r9, qword [rbx + 0x53e0]
cmp r8d, 1
adc r8d, 0xffffffff
movsxd r8, r8d
test rcx, rcx
jne 0x14000cca7
lea rcx, [0x1401f8040]
mov edx, 1
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004496
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14000bbfa
Function at 0x14000dbd4
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x1401f8048]
mov dword [rax + 0x537c], 0
mov rbx, rcx
test rcx, rcx
je 0x14000dc41
xor eax, eax
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], rax
call fcn.14000dafd
mov rcx, rbx
lea rdx, [0x1401a3169]
mov rsi, rax
call sub.msvcrt.dll_fopen
mov rbx, rax
test rax, rax
je 0x14000dc41
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov r9, rax
mov edx, 1
call fcn.140004496
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140004423
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x1400626cf
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr ax, 0xf
add rsp, 0x28
ret

Function at 0x14006fb60
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.140081c20
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call fcn.140082428
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140081c20
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140070832
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401fefc8]
test eax, eax
je 0x1400708ca
lea rax, [0x1401fefa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call rax
mov rax, qword [0x1401fefd0]
mov qword [rbp - 8], rax
jmp 0x1400708ae
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 0x1400708a2
cmp qword [rbp - 0x10], 0
je 0x1400708a2
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 0x140070868
lea rax, [0x1401fefa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call rax
jmp 0x1400708cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400709d0
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 0x1400709f8
mov eax, 0
jmp 0x140070a46
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 0x140070a21
mov eax, 0
jmp 0x140070a46
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 0x140070a41
mov eax, 0
jmp 0x140070a46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140070a4c
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 0x140070aca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140070ac1
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 0x140070ac1
mov rax, qword [rbp - 8]
jmp 0x140070adf
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 0x140070a94
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140084340
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140084442
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14008441a
add rax, 1
cmp rax, 0x6b
je 0x140084437
cmp byte [rcx + rax], 0
jne 0x140084410
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140084437
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140084428

Function at 0x1400847e0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1401ffbc0], 1
je 0x140084858
lea rdi, [0x1401ffbc0]
mov rcx, rdi
call fcn.1400840d0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140083a00
mov esi, dword [0x1401ffbc0]
test esi, esi
jne 0x140084868
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
mov dword [0x14014ffa8], eax
cmp eax, 0xffffffff
je 0x14014a966
mov dword [0x1401ffbc0], 1
mov rcx, rbp
call fcn.140083cd0
test rbx, rbx
je 0x140084858
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140084460
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140084838
mov ecx, 2
call qword [fcn.140081c20]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140084838
call sub.msvcrt.dll_abort
nop
Function at 0x140084890
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140084570
cmp qword [0x140203048], 0
mov rbx, rax
je 0x1400849a8
test rax, rax
je 0x1400849a8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140083fd0
cmp eax, 1
je 0x1400849b6
mov rbp, qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je fcn.14014a96c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov ecx, dword [0x14014ffa8]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x1400849bc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140084340
nop
jmp fcn.14014a96c

Function at 0x1400849d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400847e0
mov ecx, dword [0x14014ffa8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1400849f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140084890
Function at 0x140085160
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140085288
cmp eax, 1
je 0x1400851bb
call fcn.1400840d0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140083a00
mov r12d, dword [rbx]
test r12d, r12d
je 0x1400851d0
cmp r12d, 1
jne 0x140085260
mov rcx, rbp
call fcn.140083cd0
test rdi, rdi
je 0x1400851bb
mov rcx, rdi
call fcn.140084460
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140084540]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1400847e0
mov ecx, dword [0x14014ffa8]
mov r12, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
call r12
test rax, rax
je 0x1400852c8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.1400847e0
mov ecx, dword [0x14014ffa8]
call r12
test rax, rax
je 0x1400852b0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.1400847e0
mov ecx, dword [0x14014ffa8]
call r12
test rax, rax
je 0x1400852a0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400851a6
mov ecx, 2
call qword [fcn.140081c20]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400851a6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140084890
test rax, rax
jne 0x140085249
jmp 0x14014a985
call fcn.140084890
test rax, rax
jne 0x140085225
jmp 0x14014a99e
call fcn.140084890
test rax, rax
jne 0x1400851ff
jmp 0x14014a994
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140085550
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call fcn.1400847e0
mov ecx, dword [0x14014ffa8]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400855c8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140083fe0
cmp esi, dword [rbx + 0x48]
jae 0x1400855a3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400855a3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140084020
mov ecx, edi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140084890
mov rbx, rax
jmp 0x14008557d