joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fe490
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x40
mov eax, 0x18
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x30], xmm6
xorps xmm6, xmm6
mov rbx, rcx
cvtsi2ss xmm6, rax
test rax, rax
jns 0x1400fe4bd
addss xmm6, dword [0x1401d804c]
movss xmm7, dword [0x1401de8a8]
movaps xmm0, xmm7
call fcn.1401a0800
divss xmm6, xmm0
movaps xmm0, xmm6
call fcn.1401a08cc
movss xmm2, dword [0x1401d7ffc]
mov ecx, 1
movaps xmm6, xmmword [rsp + 0x30]
xorps xmm3, xmm3
cvttss2si eax, xmm0
xorps xmm0, xmm0
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x1400fe699
mov qword [rsp + 0x50], rdi
xor edi, edi
mov r11d, eax
nop dword [rax]
mov eax, dword [rbx]
cmp eax, 0x270
jne 0x1400fe55e
lea r8, [rbx + 8]
mov r9d, eax
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400fe520
jmp 0x1400fe63c
cmp eax, 0x4e0
jb 0x1400fe63c
lea r9, [rbx + 0x9c4]
mov r10d, 0xe3
nop word [rax + rax]
mov edx, dword [r9 + 4]
xor edx, dword [r9]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r10, 1
jne 0x1400fe580
lea r9, [rbx + 0xd50]
mov r10d, 0x18c
nop word [rax + rax]
mov edx, dword [r9 + 4]
xor edx, dword [r9]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r10, 1
jne 0x1400fe5d0
mov edx, dword [rbx + 0x1380]
xor edx, dword [rbx + 4]
btr edx, 0x1f
xor edx, dword [rbx + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbx + 0x634]
xor ecx, edx
mov dword [rbx + 0x9c0], ecx
mov dword [rbx], edi
mov eax, dword [rbx]
xorps xmm1, xmm1
mov ecx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [rbx + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2ss xmm1, rax
subss xmm1, xmm3
mulss xmm1, xmm2
mulss xmm2, xmm7
addss xmm0, xmm1
sub r11, 1
jne 0x1400fe510
mov rdi, qword [rsp + 0x50]
divss xmm0, xmm2
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret
Function at 0x1400fe6b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x40
mov eax, 0x35
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x30], xmm6
xorps xmm6, xmm6
mov rbx, rcx
cvtsi2sd xmm6, rax
test rax, rax
jns 0x1400fe6dd
addsd xmm6, qword [0x1401d8038]
movsd xmm7, qword [0x1401de8a0]
movaps xmm0, xmm7
call fcn.1401a0344
divsd xmm6, xmm0
movaps xmm0, xmm6
call fcn.1401a0808
movsd xmm2, qword [0x1401d8000]
mov ecx, 1
movaps xmm6, xmmword [rsp + 0x30]
xorps xmm3, xmm3
cvttsd2si eax, xmm0
xorps xmm0, xmm0
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x1400fe8b9
mov qword [rsp + 0x50], rdi
xor edi, edi
mov r11d, eax
nop dword [rax]
mov eax, dword [rbx]
cmp eax, 0x270
jne 0x1400fe77e
lea r8, [rbx + 8]
mov r9d, eax
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1400fe740
jmp 0x1400fe85c
cmp eax, 0x4e0
jb 0x1400fe85c
lea r9, [rbx + 0x9c4]
mov r10d, 0xe3
nop word [rax + rax]
mov edx, dword [r9 + 4]
xor edx, dword [r9]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r10, 1
jne 0x1400fe7a0
lea r9, [rbx + 0xd50]
mov r10d, 0x18c
nop word [rax + rax]
mov edx, dword [r9 + 4]
xor edx, dword [r9]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r10, 1
jne 0x1400fe7f0
mov edx, dword [rbx + 0x1380]
xor edx, dword [rbx + 4]
btr edx, 0x1f
xor edx, dword [rbx + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [rbx + 0x634]
xor ecx, edx
mov dword [rbx + 0x9c0], ecx
mov dword [rbx], edi
mov eax, dword [rbx]
xorps xmm1, xmm1
mov ecx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [rbx + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2sd xmm1, rax
subsd xmm1, xmm3
mulsd xmm1, xmm2
mulsd xmm2, xmm7
addsd xmm0, xmm1
sub r11, 1
jne 0x1400fe730
mov rdi, qword [rsp + 0x50]
divsd xmm0, xmm2
movaps xmm7, xmmword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret
Function at 0x140100c80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [rcx]
mov r10d, 0x270
mov r9, rcx
cmp eax, r10d
jne 0x140100cde
lea r8, [rcx + 8]
nop dword [rax]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140100ca0
jmp 0x140100dc2
cmp eax, 0x4e0
jb 0x140100dc2
lea r10, [rcx + 0x9c4]
mov r11d, 0xe3
nop word [rax + rax]
mov edx, dword [r10]
xor edx, dword [r10 + 4]
lea r10, [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x140100d00
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r10]
xor edx, dword [r10 + 4]
lea r10, [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub r11, 1
jne 0x140100d50
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
mov dword [r9], r11d
mov eax, dword [r9]
mov edx, dword [r9 + rax*4 + 4]
inc eax
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret
Function at 0x14010be34
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140292cc0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor r15d, r15d
cmp qword [rcx + 0x68], r15
je 0x14010bfe2
cmp byte [rcx + 0x71], r15b
je 0x14010bfe2
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.14015632c
or edx, 0xffffffff
mov rcx, r12
call rbx
cmp eax, 0xffffffff
jne 0x14010bea6
xor al, al
jmp 0x14010bfe7
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14009b010
nop
mov r13d, 1
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, rdx
lea r14, [rbp - 0x30]
cmovae r14, rdx
mov rsi, qword [r12 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, rcx
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call fcn.14015632c
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r12 + 0x74]
mov rcx, rsi
call rdi
mov ecx, eax
test eax, eax
je 0x14010bf17
sub ecx, r13d
jne 0x14010bf85
jmp 0x14010bf1c
mov byte [r12 + 0x71], r15b
lea rax, [rbp - 0x30]
mov rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x18]
cmp r8, 0x10
cmovae rax, rdx
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14010bf61
lea rcx, [rbp - 0x30]
cmp r8, 0x10
cmovae rcx, rdx
mov r9, qword [r12 + 0x80]
mov r8, rbx
mov rdx, r13
call fcn.1401a437c
mov rdx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14010bf93
cmp byte [r12 + 0x71], r15b
je 0x14010bf90
test rbx, rbx
jne 0x14010bec1
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14009b570
jmp 0x14010bebd
mov rdx, qword [rbp - 0x30]
cmp ecx, 2
jne 0x14010bf99
jmp 0x14010bf96
mov r15b, r13b
mov r13b, r15b
mov r15b, r13b
mov r8, qword [rbp - 0x18]
cmp r8, 0x10
jb 0x14010bfdd
lea rax, [r8 + 1]
cmp rax, 0x1000
jb 0x14010bfd5
test dl, 0x1f
jne 0x14010bfcf
mov rax, qword [rdx - 8]
cmp rax, rdx
jae 0x14010bfcf
sub rdx, rax
sub rdx, 8
cmp rdx, 0x1f
ja 0x14010bfcf
mov rdx, rax
jmp 0x14010bfd5
call fcn.140198e94
int3
mov rcx, rdx
call fcn.140155e30
mov al, r15b
jmp 0x14010bfe7
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401557c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x140145ff0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x14014600f
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, 0xc
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.140135ba0
int3
Function at 0x14014e960
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], rbp
mov rax, qword [0x140292cc0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14014e99e
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14014e9c2
test rbx, rbx
je 0x14014e9be
mov dword [rbx], 0
call fcn.14014dac0
mov qword [rbx + 8], rax
mov al, 1
jmp 0x14014ea17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [rsp + 0x20], 0
call fcn.14014dac0
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14014f170
cmp dword [rax], 3
jne 0x14014ea05
test rbx, rbx
je 0x14014ea15
mov dword [rbx], 0
call fcn.14014dac0
jmp 0x14014ea11
test rbx, rbx
je 0x14014ea3c
call fcn.14014dac0
mov dword [rbx], ebp
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401557c0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x48]
call fcn.14009b040
nop
call fcn.14014dac0
mov r8, rax
mov edx, ebp
lea rcx, [rsp + 0x38]
call fcn.1400a35c0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rdi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.14013ca50
lea rdx, [0x1402521f8]
lea rcx, [rsp + 0x70]
call fcn.14018a240
int3

Function at 0x14014eaa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rbp, rdx
mov r14, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov eax, 1
test esi, esi
cmove esi, eax
mov r8d, esi
mov eax, 2
mul r8
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140155e7c
mov rbx, rax
mov qword [rsp + 0x50], rax
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor esi, esi
test eax, eax
jne 0x14014eb1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14014eb1d
mov eax, esi
lea r8, str.boost::filesystem::current_path
mov rdx, rbp
mov ecx, eax
call fcn.14014ec50
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], 7
mov word [r14], si
nop
inc rdi
cmp word [rbx + rdi*2], si
jne 0x14014eb40
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.1400ade20
nop
mov rcx, rbx
call fcn.140155e38
mov rax, r14
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14014f170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x140292cc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14014f1b5
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14014f1d6
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14014f040
jmp 0x14014f2fd
xor ebp, ebp
bt r15d, 0xa
jae 0x14014f2ba
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14014f1f0
mov rdx, qword [rdi]
movdqa xmm0, xmmword [0x14020b4e0]
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x50], bp
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x14014f210
lea rcx, [rsp + 0x50]
call fcn.1400ade20
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.1400a53a0
nop
cmp rbx, 0xffffffffffffffff
jne 0x14014f284
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14014f040
nop
jmp 0x14014f2fd
mov rcx, rdi
call fcn.14014edd0
test al, al
jne 0x14014f2b0
mov edx, r15d
mov rcx, rdi
call fcn.14014eee0
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14014f2fd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x14014f2cb
mov dword [r14], ebp
call fcn.14014dac0
mov qword [r14 + 8], rax
mov ebx, r15d
mov edx, r15d
mov rcx, rdi
call fcn.14014eee0
and ebx, 0x10
je 0x14014f2e4
mov ecx, dword [rsp + 0x40]
jmp 0x14014f2ea
mov ecx, eax
mov eax, dword [rsp + 0x40]
test ebx, ebx
setne bpl
add ebp, 2
mov dword [rsi], ebp
test ebx, ebx
cmove eax, ecx
mov dword [rsi + 4], eax
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401557c0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140154170
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, r8
mov r14, rdx
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
je 0x1401541af
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x1401541cc
call fcn.140154c90
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
jne 0x1401541c3
xor esi, esi
jmp 0x1401541cc
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov rax, qword [r14]
mov qword [rsp + 0x38], rax
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x40], rcx
mov edx, 1
test rcx, rcx
je 0x1401541f8
mov eax, edx
lock xadd dword [rcx + 8], eax
test rcx, rcx
je 0x1401541f8
lock xadd dword [rcx + 8], edx
mov qword [rsp + 0x68], rbp
mov edi, 0xffffffff
test rcx, rcx
je 0x140154239
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140154239
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140154239
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x88], rbp
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x28]
call fcn.140151740
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.140151c30
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1401542e5
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1401542e5
mov rbx, qword [rsp + 0x80]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1401542e5
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rbx, qword [r14 + 8]
test rbx, rbx
je 0x140154317
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140154317
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140154317
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140154330
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
je 0x140154350
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14015436a
call fcn.140154c90
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
jne 0x140154364
xor eax, eax
jmp 0x14015436a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140152830
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140154c00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
je 0x140154c65
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140154c65
mov rcx, qword [rax + 0x28]
mov rax, rcx
mov rdx, qword [rcx + 8]
cmp byte [rdx + 0x19], 0
jne 0x140154c53
cmp qword [rdx + 0x20], rbx
jae 0x140154c3c
mov rdx, qword [rdx + 0x10]
jmp 0x140154c42
mov rax, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x19], 0
je 0x140154c30
cmp rax, rcx
je 0x140154c53
cmp rbx, qword [rax + 0x20]
jae 0x140154c56
mov rax, rcx
cmp rax, rcx
je 0x140154c65
add rax, 0x28
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140154c90
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
call fcn.1401527c0
mov rbx, rax
mov qword [rsp + 0x40], rax
lea rdx, [0x1401548c0]
lea rcx, [0x1402a7c90]
call fcn.140154390
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
je 0x140154cd4
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
add rsp, 0x30
pop rbx
ret
Function at 0x1401551c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140155320
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
jne 0x140155348
xor esi, esi
jmp 0x140155351
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x140155395
mov rax, qword [rsi + 0x30]
nop
mov rbx, qword [rsi + 0x18]
test rax, rax
jne 0x1401553d8
test rbx, rbx
jne 0x1401553e0
lea rdx, [0x1401548c0]
lea rcx, [0x1402a7c90]
call fcn.140154390
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
je 0x140155395
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1401553c8
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1401553c8
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x140155434
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140155417
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1401553e0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x140155360
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14015546f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14015546f
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.140154b00
mov rax, qword [rsi + 0x30]
test rax, rax
jne 0x140155450
jmp 0x140155360
Function at 0x140155320
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x140155320
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
jne 0x140155348
xor esi, esi
jmp 0x140155351
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov qword [rsp + 0x40], rsi
test rsi, rsi
je 0x140155395
mov rax, qword [rsi + 0x30]
nop
mov rbx, qword [rsi + 0x18]
test rax, rax
jne 0x1401553d8
test rbx, rbx
jne 0x1401553e0
lea rdx, [0x1401548c0]
lea rcx, [0x1402a7c90]
call fcn.140154390
mov ecx, dword [0x140292ca8]
cmp ecx, 0xffffffff
je 0x140155395
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
test rsi, rsi
je 0x1401553c8
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1401553c8
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
je 0x140155434
nop dword [rax]
mov rax, qword [rbx + 8]
mov qword [rsi + 0x18], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x140155417
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rbx]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
call qword [rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsi + 0x18]
test rbx, rbx
jne 0x1401553e0
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x140155360
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [rsi + 0x28]
mov rbx, qword [rbx]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x14015546f
mov rdx, qword [rbx + 0x38]
test rdx, rdx
je 0x14015546f
mov rax, qword [rcx]
call qword [rax + 8]
mov r8, rbx
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x28]
call fcn.140154b00
mov rax, qword [rsi + 0x30]
test rax, rax
jne 0x140155450
jmp 0x140155360