joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003eb30
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call fcn.140057c04
cmp eax, 0xc0000000
jb 0x14003eb81
mov ebx, eax
lea rcx, [rsp + 0x20]
mov edx, 0x20
call fcn.140057aec
test al, al
je 0x14003ebd1
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm1
movaps xmmword [rsp + 0x40], xmm0
mov rax, qword [0x141d2e100]
test rax, rax
je 0x14003ec06
lea rbx, [rsp + 0x70]
test eax, 0x4000
jne 0x14003ec17
movaps xmm0, xmmword [rsp + 0x40]
movaps xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
jmp 0x14003ec2b
and ebx, 0x7fffffff
je 0x14003eb81
movzx eax, byte [0x141d2e108]
mov edx, 4
xor ecx, ecx
call fcn.140031680
test rax, rax
je 0x14003ec6d
mov dword [rax], ebx
mov rcx, qword [0x141d2e0f8]
xor edx, edx
mov r8, rax
call fcn.1400508f4
jmp 0x14003ec41
call fcn.140036c80
lea rbx, [rsp + 0x70]
test eax, 0x4000
je 0x14003ebad
lea r8, [0x141d289c8]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001f5c0
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.14001d320
ud2
Function at 0x140002810
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea r13, [0x1400a40e0]
xor ebx, ebx
mov rdi, rdx
mov r12, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [fcn.14002d730]
test rdi, rdi
jle 0x140002862
mov rsi, qword [r12 + rbx*8]
mov ecx, 1
add rbx, 1
call rbp
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
call fcn.1400025e0
cmp rbx, rdi
jne 0x140002840
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14003117c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sub.msvcrt.dll_fflush
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002cd0
Capabilities:
Write file on windows

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

Function at 0x140002de0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.14002d730]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__dfwpkxqacjwklosfmyyooerjetavafclldlgrmfghxptgftspddeatjwrqsotrurksbakr
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x140002e20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140005890
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ebx, dword [0x1400b8628]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsi - 0x10]
lea r11, [rbx + 0xa0]
mov r10, rdx
and r10, 0xfffffffffffff000
mov rax, qword [r10 + 8]
sub qword [rbx + 0x2138], rax
cmp rax, 0xfc0
jle 0x1400059c8
cmp qword [rbx + 0x2978], 0
lea rax, [rbx + 0x2978]
je 0x140005a98
mov qword [rbx + 0x2950], rax
lea r8, [r10 + 0x20]
lea rdx, [rbx + 0x2948]
mov rcx, r11
call fcn.140004f10
mov r8, qword [r10 + 8]
cmp r8, 0x3f000000
jle 0x140005a7f
mov rdx, r10
sar rdx, 0x15
movzx eax, dl
mov rax, qword [rbx + rax*8 + 0x2148]
test rax, rax
jne 0x140005948
jmp 0x140005972
mov rax, qword [rax]
test rax, rax
je 0x140005972
cmp rdx, qword [rax + 8]
jne 0x140005940
mov rcx, r10
mov edx, 1
sar rcx, 0xc
and ecx, 0x1ff
mov r9, rcx
shl rdx, cl
sar r9, 6
not rdx
and qword [rax + r9*8 + 0x10], rdx
mov rax, qword [rbx + 0x2120]
mov rdx, qword [rbx + 0x2128]
mov rcx, r10
cmp rdx, rax
cmovl rdx, rax
sub rax, r8
mov r8d, 0x8000
mov qword [rbx + 0x2120], rax
mov qword [rbx + 0x2128], rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x140005a19
lea rcx, str.mayqioqqwymxdbfofaph
call fcn.140002d60
mov ecx, 1
call sub.msvcrt.dll_exit
nop dword [rax + rax]
mov qword [rdx + 8], 0
mov rcx, qword [r10 + 0x20]
mov qword [rsi - 0x10], rcx
mov qword [r10 + 0x20], rdx
mov rdx, qword [r10 + 0x28]
cmp rax, rdx
jle 0x140005a28
test rax, rax
lea rdx, [rax + 0xf]
cmovns rdx, rax
sar rdx, 4
add rdx, 2
mov rcx, qword [rbx + rdx*8 + 0xa0]
mov qword [r10 + 0x10], rcx
test rcx, rcx
je 0x140005a0d
mov qword [rcx + 0x18], r10
mov qword [rbx + rdx*8 + 0xa0], r10
add qword [r10 + 0x28], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
add rdx, rax
mov qword [r10 + 0x28], rdx
cmp rdx, 0xfc0
jne 0x140005a19
lea rdx, [rax + 0xf]
test rax, rax
cmovs rax, rdx
mov rdx, qword [r10 + 0x10]
sar rax, 4
lea rcx, [rax + 2]
cmp r10, qword [rbx + rax*8 + 0xb0]
je 0x140005ab0
mov rax, qword [r10 + 0x18]
mov qword [rax + 0x10], rdx
test rdx, rdx
je 0x140005a6e
mov rax, qword [r10 + 0x18]
mov qword [rdx + 0x18], rax
mov qword [r10 + 8], 0x1000
pxor xmm0, xmm0
movups xmmword [r10 + 0x10], xmm0
mov rdx, r10
mov rcx, r11
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp 0x140004ca0
movq xmm0, rax
punpcklqdq xmm0, xmm0
movups xmmword [rbx + 0x2978], xmm0
jmp 0x1400058fc
mov qword [rbx + rcx*8 + 0xa0], rdx
test rdx, rdx
je 0x140005a6e
mov qword [rdx + 0x18], 0
jmp 0x140005a6e
Function at 0x140005ad0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rdx]
mov rbx, rcx
mov rsi, rdx
test al, 4
je 0x140005b00
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
or rax, 4
mov qword [rdx], rax
mov rdx, qword [rcx + 8]
mov rax, qword [rcx]
cmp rdx, rax
jle 0x140005b28
mov rdi, qword [rcx + 0x10]
mov qword [rdi + rax*8], rsi
add qword [rbx], 1
jmp 0x140005aed
lea rax, [rdx + rdx*2]
mov ebp, dword [0x1400b8628]
mov r14, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, rax
shr rdi, 0x3f
add rdi, rax
sar rdi, 1
mov qword [rcx + 8], rdi
call r14
mov ecx, ebp
mov r15, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12d, eax
call r15
mov ecx, r12d
mov r13, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, rax
call r13
lea rdx, [rdi*8 + 0x10]
lea rcx, [rbp + 0xa0]
call fcn.140003e30
mov qword [rax + 8], 1
lea rdi, [rax + 0x10]
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
lea r8, [rax*8]
call sub.msvcrt.dll_memcpy
mov ebp, dword [0x1400b8628]
mov r12, qword [rbx + 0x10]
call r14
mov r14d, eax
mov ecx, ebp
call r15
mov ecx, r14d
mov rbp, rax
call r13
lea rdx, [r12 - 0x10]
lea rcx, [rbp + 0xa0]
call fcn.140005230
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
jmp 0x140005b17

Function at 0x140005be0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ebx, dword [0x1400b8628]
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbx + 0x50]
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.140005ad0
Function at 0x140005c50
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebx, dword [0x1400b8628]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [rcx + 8]
lea rax, [r12 + r12 + 1]
lea r14, [r12 + 1]
shl r14, 4
mov rbp, rcx
mov qword [rcx + 8], rax
call r13
mov ecx, ebx
mov rsi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
call rsi
mov ecx, edi
mov rdi, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rax
call rdi
lea rdx, [r14 + 0x10]
lea rcx, [rbx + 0xa0]
call fcn.140003e30
mov r8, r14
xor edx, edx
mov qword [rax + 8], 1
lea rbx, [rax + 0x10]
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r14, qword [rbp + 0x18]
xor r8d, r8d
test r12, r12
jns 0x140005cec
jmp 0x140005d32
lea rax, [r8 + 1]
cmp r12, r8
je 0x140005d32
mov r8, rax
mov r9, qword [r14 + r8*8]
test r9, r9
je 0x140005ce0
mov rcx, qword [rbp + 8]
mov rax, qword [r9 + 8]
and rax, rcx
lea rdx, [rbx + rax*8]
cmp qword [rdx], 0
je 0x140005d22
nop word [rax + rax]
lea rax, [rax + rax*4 + 1]
and rax, rcx
lea rdx, [rbx + rax*8]
cmp qword [rdx], 0
jne 0x140005d10
mov qword [rdx], r9
lea rax, [r8 + 1]
mov r14, qword [rbp + 0x18]
cmp r12, r8
jne 0x140005ce9
mov r15d, dword [0x1400b8628]
call r13
mov r12d, eax
mov ecx, r15d
call rsi
mov ecx, r12d
mov rsi, rax
call rdi
lea rdx, [r14 - 0x10]
lea rcx, [rsi + 0xa0]
call fcn.140005230
mov qword [rbp + 0x18], rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140005d80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rbx, rdx
mov rdx, r8
mov rsi, rcx
and rdx, rbx
lea rdi, [rdx*8]
lea r10, [r9 + rdi]
mov rcx, qword [r10]
test rcx, rcx
je 0x140005de8
mov rax, rdx
jmp 0x140005dd1
lea rax, [rax + rax*4 + 1]
and rax, r8
mov rcx, qword [r9 + rax*8]
test rcx, rcx
je 0x140005de8
cmp qword [rcx + 8], rbx
jne 0x140005dc0
mov rax, rcx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r8 + 1]
lea rbp, [rcx + rcx]
lea r11, [rax + rax*2]
cmp rbp, r11
jl 0x140005eb0
sub rcx, rax
cmp rcx, 3
jle 0x140005eb0
add rax, 1
mov qword [rsi], rax
cmp qword [r10], 0
je 0x140005e37
nop word [rax + rax]
lea rdx, [rdx + rdx*4 + 1]
and rdx, r8
cmp qword [r9 + rdx*8], 0
lea rdi, [rdx*8]
jne 0x140005e20
mov ebp, dword [0x1400b8628]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r12d
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbp + 0xa0]
mov edx, 0x40
call fcn.140003e30
pxor xmm0, xmm0
lea rcx, [rax + 0x10]
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 8], 1
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
mov rdx, qword [rsi + 0x10]
mov qword [rax + 0x10], rdx
mov qword [rcx + 8], rbx
mov rax, qword [rsi + 0x18]
mov qword [rsi + 0x10], rcx
mov qword [rax + rdi], rcx
mov rax, rcx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rsi
call fcn.140005c50
mov r8, qword [rsi + 8]
mov rdx, rbx
mov r9, qword [rsi + 0x18]
mov rax, qword [rsi]
and rdx, r8
lea rdi, [rdx*8]
lea r10, [r9 + rdi]
jmp 0x140005e0d

Function at 0x140006040
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x18
lea rax, [rsp + 8]
mov qword [rsp + 8], rax
mov rdx, qword [rsp + 8]
xor eax, eax
test rdx, rdx
je 0x140006035
mov rdx, qword [rsp + 8]
mov rax, qword [rcx]
sub rax, rdx
add rsp, 0x18
ret
push rsi
push rbx
sub rsp, 0x28
mov ebx, dword [0x1400b8628]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rbx + 0x38]
add rsp, 0x28
pop rbx
pop rsi
jmp 0x140006010
Function at 0x1400079c0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov edi, dword [0x1400b8628]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
xor eax, eax
cmp rbx, rdx
jb 0x140007a08
cmp qword [rdi + 0x38], rbx
setae al
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x140007a10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
call fcn.1400079c0
test al, al
jne 0x140007a54
test rsi, rsi
je 0x140007a33
add qword [rsi - 0x10], 8
mov rax, qword [rbx]
cmp rax, 0xfff
jbe 0x140007a54
mov rdi, qword [rax - 0x10]
lea r12, [rax - 0x10]
lea rdx, [rdi - 8]
mov qword [rax - 0x10], rdx
cmp rdx, 7
jbe 0x140007a68
mov qword [rbx], rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edi, dword [0x1400b8628]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rdi + 0x50]
mov rdx, r12
call fcn.140005ad0
mov qword [rbx], rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140007bb0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebx, dword [0x1400b8628]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, rcx
mov esi, edx
call r13
mov ecx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
call r12
mov ecx, edi
mov rdi, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, rax
call rdi
test rbp, rbp
je 0x140007c31
lea r14, [rbp - 0x10]
cmp sil, 2
je 0x140007d28
ja 0x140007c48
test sil, sil
je 0x140007c50
mov rdx, qword [rbx + 0x88]
mov rax, qword [rbx + 0x80]
cmp rdx, rax
jle 0x140007c70
mov rsi, qword [rbx + 0x90]
mov qword [rsi + rax*8], r14
add qword [rbx + 0x80], 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp sil, 3
je 0x140007c0b
jmp 0x140007c31
lea rcx, [rbx + 0x38]
mov rdx, r14
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400084a0
lea rax, [rdx + rdx*2]
mov ebp, dword [0x1400b8628]
mov rsi, rax
shr rsi, 0x3f
add rsi, rax
sar rsi, 1
mov qword [rbx + 0x88], rsi
call r13
mov ecx, ebp
mov r15d, eax
call r12
mov ecx, r15d
mov rbp, rax
call rdi
lea rdx, [rsi*8 + 0x10]
lea rcx, [rbp + 0xa0]
call fcn.140003e30
mov qword [rax + 8], 1
lea rsi, [rax + 0x10]
mov rax, qword [rbx + 0x80]
mov rdx, qword [rbx + 0x90]
mov rcx, rsi
lea r8, [rax*8]
call sub.msvcrt.dll_memcpy
mov ebp, dword [0x1400b8628]
mov r15, qword [rbx + 0x90]
call r13
mov r13d, eax
mov ecx, ebp
call r12
mov ecx, r13d
mov rbp, rax
call rdi
lea rdx, [r15 - 0x10]
lea rcx, [rbp + 0xa0]
call fcn.140005230
mov qword [rbx + 0x90], rsi
mov rax, qword [rbx + 0x80]
jmp 0x140007c25
mov rax, qword [rbp - 0x10]
sub rax, 8
mov qword [rbp - 0x10], rax
cmp rax, 7
ja 0x140007c31
mov ebx, dword [0x1400b8628]
call r13
mov esi, eax
mov ecx, ebx
call r12
mov ecx, esi
mov rbx, rax
call rdi
lea rcx, [rbx + 0x50]
mov rdx, r14
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140005ad0
Function at 0x140008100
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x140008147
test byte [rdx + 0x11], 1
jne 0x140008147
movzx ecx, byte [rdx + 0x10]
cmp cl, 0x1c
ja 0x140008147
mov eax, 1
shl rax, cl
test eax, 0x8010010
jne 0x1400081a0
test eax, 0x11400000
jne 0x140008180
test eax, 0x60000
jne 0x140008160
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rdx + 0x20]
movzx r8d, r8b
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140008390
mov rcx, qword [rbx]
movzx edx, r8b
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140007bb0
mov r10, qword [rdx + 0x18]
mov rax, qword [rdx]
movzx r15d, r8b
mov r12, qword [r10]
cqo
idiv r12
mov r13, rax
test rax, rax
jle 0x140008147
mov rax, r12
xor ebp, ebp
mov dword [rsp + 0x2c], r15d
mov r14, r10
mov rdi, rax
mov r12, rsi
imul rdi, rbp
add rdi, rbx
je 0x140008210
test byte [r14 + 0x11], 1
jne 0x140008210
movzx ecx, byte [r14 + 0x10]
cmp cl, 0x1c
ja 0x140008210
mov edx, 1
shl rdx, cl
test edx, 0x8010010
jne 0x140008238
test edx, 0x11400000
jne 0x1400082e0
test edx, 0x60000
jne 0x1400082c8
add rbp, 1
cmp r13, rbp
je 0x140008147
mov r14, qword [r12 + 0x18]
mov rax, qword [r14]
mov rdi, rax
imul rdi, rbp
add rdi, rbx
jne 0x1400081d7
jmp 0x140008210
mov rsi, qword [r14 + 0x18]
cqo
mov r8, qword [rsi]
idiv r8
test rax, rax
jle 0x140008210
mov qword [rsp + 0x38], rbx
xor r15d, r15d
mov rbx, r14
mov r14, rdi
mov rdi, rsi
mov rsi, r8
mov qword [rsp + 0x30], rbp
mov rbp, rax
imul rsi, r15
mov qword [rsp + 0x40], r12
add rsi, r14
je 0x1400082a7
test byte [rdi + 0x11], 1
jne 0x1400082a7
movzx ecx, byte [rdi + 0x10]
cmp cl, 0x1c
ja 0x1400082a7
mov eax, 1
shl rax, cl
test eax, 0x8010010
jne 0x140008330
test eax, 0x11400000
jne 0x14000831f
test eax, 0x60000
jne 0x14000830c
add r15, 1
cmp rbp, r15
je 0x1400082f8
mov rdi, qword [rbx + 0x18]
mov r8, qword [rdi]
mov rsi, r8
imul rsi, r15
add rsi, r14
jne 0x140008273
jmp 0x1400082a7
mov rdx, qword [r14 + 0x20]
mov r8d, dword [rsp + 0x2c]
mov rcx, rdi
call fcn.140008390
jmp 0x140008210
mov rcx, qword [rdi]
mov edx, dword [rsp + 0x2c]
call fcn.140007bb0
jmp 0x140008210
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
jmp 0x140008210
mov rdx, qword [rdi + 0x20]
mov r8d, dword [rsp + 0x2c]
mov rcx, rsi
call fcn.140008390
jmp 0x1400082a7
mov rcx, qword [rsi]
mov edx, dword [rsp + 0x2c]
call fcn.140007bb0
jmp 0x1400082a7
mov r11, qword [rdi + 0x18]
mov rax, r8
cqo
mov rcx, qword [r11]
idiv rcx
test rax, rax
jle 0x1400082a7
xor r12d, r12d
mov qword [rsp + 0x48], rbx
mov rdx, r11
mov rbx, r12
mov r12, rdi
mov rdi, rax
imul rcx, rbx
mov r8d, dword [rsp + 0x2c]
add rbx, 1
add rcx, rsi
call fcn.140008100
cmp rdi, rbx
je 0x140008380
mov rdx, qword [r12 + 0x18]
mov rcx, qword [rdx]
jmp 0x14000835c
mov rbx, qword [rsp + 0x48]
jmp 0x1400082a7
Function at 0x140008a10
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r14, rcx
call fcn.140006040
mov rdx, rax
mov rax, qword [r14 + 0x2b70]
cmp rax, rdx
cmovl rax, rdx
mov qword [r14 + 0x2b70], rax
mov rax, qword [r14 + 0x2910]
mov rdx, qword [rax]
mov r8, rax
cmp rax, rdx
jne 0x140008a63
jmp 0x140008bc0
mov r8, rcx
mov rcx, rdx
mov rdx, qword [rdx]
cmp rdx, rcx
jne 0x140008a60
mov rdx, qword [r8 + 0x10]
mov qword [r14 + 0x68], rdx
cmp rax, qword [rax]
je 0x140008bd0
nop
mov rdx, rax
mov rax, qword [rax + 8]
cmp qword [rax], rax
jne 0x140008a80
mov rax, qword [rdx + 0x18]
mov qword [r14 + 0x70], rax
mov rcx, r14
call fcn.140006260
mov rax, qword [r14 + 0x2b78]
mov rdx, qword [r14 + 0x30]
mov rcx, r14
cmp rax, rdx
cmovl rax, rdx
add qword [r14 + 0x2b58], 1
mov qword [r14 + 0x2b78], rax
call fcn.14000b070
test al, al
je 0x140008ada
mov rax, qword [r14 + 0x2100]
cmp qword [r14 + 8], rax
jle 0x140008b58
mov r12, qword [r14 + 0x30]
mov rbp, qword [r14 + 0x40]
xor ebx, ebx
test r12, r12
jle 0x140008b3a
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rbp + rbx*8]
mov rax, qword [rsi]
sub rax, 8
mov qword [rsi], rax
cmp rax, 7
ja 0x140008b31
mov edi, dword [0x1400b8628]
call r13
mov r15d, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r15d
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rdi + 0x50]
mov rdx, rsi
call fcn.140005ad0
add rbx, 1
cmp r12, rbx
jne 0x140008af0
mov qword [r14 + 0x30], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call fcn.140008740
mov ebx, dword [0x1400b8628]
add qword [r14 + 0x2b60], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx + 0x2138]
mov edx, 0x400000
add rax, rax
cmp rax, rdx
cmovl rax, rdx
mov rdx, qword [r14 + 0x2b68]
cmp rdx, rax
mov qword [r14 + 8], rax
cmovl rdx, rax
mov qword [r14 + 0x2b68], rdx
jmp 0x140008ada
xor edx, edx
mov qword [r14 + 0x68], rdx
cmp rax, qword [rax]
jne 0x140008a80
nop
mov rax, 0xffffffffffffffff
jmp 0x140008a90
Function at 0x140008c40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebx, dword [0x1400b8628]
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rbx + 0x50]
cmp qword [rbx + 0x48], rax
jle 0x140008cc0
mov rax, qword [rbx + 0x40]
cmp qword [rbx + 0x2138], rax
jge 0x140008cc0
lea rdx, [rsi + 0x10]
lea rcx, [rbx + 0xa0]
call fcn.140003e30
mov r8, rsi
xor edx, edx
mov qword [rax + 8], rdi
lea rcx, [rax + 0x10]
mov qword [rax], 8
call sub.msvcrt.dll_memset
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp qword [rbx + 0x98], 0
jne 0x140008c86
lea rcx, [rbx + 0x38]
call fcn.140008a10
mov rax, qword [rbx + 0x50]
mov edx, 0x1f4
add rax, rax
cmp rax, rdx
cmovl rax, rdx
mov qword [rbx + 0x48], rax
jmp 0x140008c86
Function at 0x1400092a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov edi, dword [0x1400b8628]
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rdi + 0x38]
mov rdx, rbx
mov rcx, rsi
call fcn.140008d80
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140009400
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
test rcx, rcx
je 0x140009479
call sub.msvcrt.dll_strlen
mov ebp, 7
mov ebx, dword [0x1400b8628]
cmp rax, rbp
mov rdi, rax
cmovge rbp, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r12d
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rbx + 0x38]
lea rdx, [rbp + 0x11]
lea rcx, [0x14002e020]
call fcn.140008d80
lea r8, [rdi + 1]
mov rdx, rsi
mov qword [rax + 8], rbp
lea rcx, [rax + 0x10]
mov rbx, rax
mov qword [rax], rdi
call sub.msvcrt.dll_memcpy
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140009490
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
test rcx, rcx
je 0x140009513
cmp qword [rcx + 8], 0
js 0x140009513
mov rdi, qword [rcx]
mov eax, 7
mov esi, dword [0x1400b8628]
cmp rdi, rax
cmovl rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebp
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsi + 0x38]
lea rdx, [rdi + 0x11]
lea rcx, [0x14002e020]
call fcn.140008d80
lea rdx, [rbx + 0x10]
mov rsi, rax
mov qword [rax + 8], rdi
mov qword [rax], 0
mov rax, qword [rbx]
lea rcx, [rsi + 0x10]
mov rbx, rsi
mov qword [rsi], rax
lea r8, [rax + 1]
call sub.msvcrt.dll_memcpy
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret