joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011300
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x14006f7d0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
sar eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
sar eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov eax, r9d
xor rdx, rcx
sar eax, 0x18
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
mov rcx, qword [0x14007e450]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x140011398
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140024b40
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400113a0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x108]
lea r10, [0x14006f7d0]
mov rax, qword [rcx + 0xf0]
movss xmm1, dword [rcx + 0x10c]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0xe8]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret
Function at 0x14001de40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14007e450]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x14001dea1
cmp byte [rbx + 0x4a2e], 0
jne 0x14001dea1
movsx r9d, word [rbx + 0x5b2a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000d950
test dil, 1
je 0x14001dfc8
jmp 0x14001df2c
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b2a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x140075644]
mov edx, 0x10
mulss xmm1, dword [0x140075634]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x1400754d8]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.14000d950
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001df80
lea r11, [0x14006f7d0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001df63
cmp byte [r8], r9b
jne 0x14001df63
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14001df50
not ecx
call fcn.1400151b0
test rax, rax
je 0x14001dfc8
cmp byte [rax + 0xae], 0
je 0x14001dfc8
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b2a]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b2a]
call fcn.14000d950
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140017850
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004dac0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400233b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c10], 0
lea rbx, [rcx + 0x5c18]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140023457
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002340a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140025a80
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000e400
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c10]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c20]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14007e444]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002345f
mov rcx, rbx
call fcn.14000e400
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400239d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14007e450]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140023a33
mov qword [rsp], rbx
lea rbx, [0x14006f7d0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140023a13
cmp byte [r8], r9b
jne 0x140023a13
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140023a00
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b88]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140023a67
mov r10, qword [r10 + 0x5b90]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140023a6e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140023a54
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14004e74c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004e796
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004e796
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004e796
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004e796
cmp dword [rcx + 0x84], 0xe
jbe 0x14004e796
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004e798
xor al, al
add rsp, 0x28
ret
Function at 0x1400018f8
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
call fcn.14000e550
lea rax, [rbp + 0x50]
lea rdx, [0x140139040]
mov rcx, rax
call fcn.140001574
lea rax, [rbp + 0x30]
lea rdx, [0x140139060]
mov rcx, rax
call fcn.140001574
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.140031770
mov qword [rbp + 0xa8], rax
lea rax, [rbp + 0x30]
mov rcx, rax
call fcn.140031770
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0x98], 0x10
mov rdx, qword [rbp + 0xa8]
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.1400014af
mov qword [rbp + 0x90], rax
mov rdx, qword [rbp + 0xa0]
lea rax, [rbp + 0x30]
mov rcx, rax
call fcn.1400014af
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x98]
mov rdx, rax
lea rax, [0x1401390c0]
mov rcx, rax
call fcn.1400014af
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x98]
mov r8d, eax
mov rax, qword [rbp + 0xa8]
mov r10d, eax
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x90]
mov dword [rsp + 0x20], r8d
mov r9, rcx
mov r8d, r10d
mov rcx, rax
call fcn.140001430
mov rax, qword [rbp + 0x98]
mov r8d, eax
mov rax, qword [rbp + 0xa0]
mov r10d, eax
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0x88]
mov dword [rsp + 0x20], r8d
mov r9, rcx
mov r8d, r10d
mov rcx, rax
call fcn.140001430
lea rax, [rbp + 0x77]
mov qword [rbp + 0x78], rax
nop
nop
lea rdx, [rbp + 0x77]
lea rax, [rbp - 0x10]
mov r8, rdx
lea rdx, str.C:WindowsTemp_
mov rcx, rax
call fcn.1400b8950
lea rax, [rbp + 0x77]
mov rcx, rax
call fcn.1400a9f50
nop
lea rax, [0x140139080]
mov rdx, rax
lea rax, [0x140139080]
mov rcx, rax
call fcn.1400b9010
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov rdx, rax
lea rax, [0x140139080]
mov rcx, rax
call fcn.1400017e4
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov r8, rdx
mov rdx, rax
lea rax, [0x1401390a0]
mov rcx, rax
call fcn.1400017e4
lea rax, [rbp - 0x30]
lea r8, [0x140139080]
lea rdx, str.cmd__k_start
mov rcx, rax
call fcn.1400c96b0
lea rax, [rbp - 0x50]
lea r8, [0x1401390a0]
lea rdx, str.cmd__k_start
mov rcx, rax
call fcn.1400c96b0
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400315d0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400315d0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WinExec]
call rax
mov ebx, 0
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400b8eb0
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400b8eb0
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.1400b8eb0
lea rax, [rbp + 0x30]
mov rcx, rax
call fcn.1400b8eb0
lea rax, [rbp + 0x50]
mov rcx, rax
call fcn.1400b8eb0
mov eax, ebx
jmp 0x140001bd2
add rsp, 0x138
pop rbx
pop rbp
ret
Function at 0x14000e740
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001a050
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001a050
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000e7b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401391b4]
mov rbx, rcx
test esi, esi
jle 0x14000e8e0
mov rax, qword [0x1401391b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e7fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e7e0
mov rcx, rbx
call fcn.14000f260
mov rdi, rax
test rax, rax
je 0x14000e902
mov rax, qword [0x1401391b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000f3a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401391b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e8e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e87e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e890
add dword [0x1401391b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401391b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e87e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e740
nop dword [rax]
xor esi, esi
jmp 0x14000e808
mov rax, qword [0x1401391b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e740
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e740
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000eea0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140139220]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140139200]
test rbx, rbx
je 0x14000ef04
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000eefb
test eax, eax
jne 0x14000eefb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000eee0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000f260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140111a90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000f280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000f288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000f280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000f2dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000f2d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000f280
add rax, 0x28
cmp rax, r9
jne 0x14000f2c0
xor eax, eax
ret

Function at 0x14000f2e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140111a90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000f2ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000f308
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000f2ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000f3a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140111a90]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000f3bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000f3c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140010180
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400101b0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400101d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140010200
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001c770
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140139d70], 1
je 0x14001c810
lea rdi, [0x140139d70]
mov rcx, rdi
call fcn.14001c0e0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001b9c0
mov esi, dword [0x140139d70]
test esi, esi
jne 0x14001c7e8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400ce2f8], eax
cmp eax, 0xffffffff
je 0x1400cd4b6
mov dword [0x140139d70], 1
mov rcx, rbp
call fcn.14001bc90
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001c3d0
cmp esi, 1
je 0x14001c7cc
mov ecx, 2
call qword [fcn.14001a050]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001c7cc
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14001c820
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001c500
mov rbx, rax
test rax, rax
je 0x14001c91c
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.14001bfb0
cmp eax, 1
je 0x14001c928
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 0x1400cd4bc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400ce2f8]
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 0x1400cd4bc
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001c340
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001c820
Function at 0x14001d110
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x140111b90]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001d270
cmp eax, 1
je 0x14001d175
call fcn.14001c0e0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.14001b9c0
mov ebp, dword [rbx]
test ebp, ebp
je 0x14001d198
cmp ebp, 1
jne 0x14001d238
mov rcx, r13
call fcn.14001bc90
mov rcx, rdi
call fcn.14001c3d0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14001d2bb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001c4d0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14001d2a8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call rbp
test rax, rax
je 0x14001d290
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call rbp
test rax, rax
je 0x14001d280
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14001bc90
mov rcx, rdi
call fcn.14001c3d0
jmp 0x14001d175
mov ecx, 2
call qword [fcn.14001a050]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.14001bc90
mov rcx, rdi
call fcn.14001c3d0
jmp 0x14001d175
mov eax, 0x16
jmp 0x14001d177
call fcn.14001c820
test rax, rax
jne 0x14001d20e
jmp 0x1400cd4ee
call fcn.14001c820
test rax, rax
jne 0x14001d1eb
jmp 0x1400cd4df
call fcn.14001c820
test rax, rax
jne 0x14001d1c6
jmp 0x1400cd4d5
call fcn.1400101d0
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14001d550
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.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d5c8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001bfc0
cmp esi, dword [rbx + 0x48]
jae 0x14001d5a3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001d5a3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001c020
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.14001c820
mov rbx, rax
jmp 0x14001d57d
Function at 0x14001d5e0
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 esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d6d8
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001bfc0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14001d6a3
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001d6e5
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001d6e5
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001c020
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14001c820
mov rbx, rax
jmp 0x14001d61a
mov rcx, r13
call fcn.14001c020
mov eax, 0xc
jmp 0x14001d6c1

Function at 0x14001d780
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d7a8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001c820
test rax, rax
jne 0x14001d79a
add rsp, 0x28
ret

Function at 0x14001d810
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d838
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001c820
test rax, rax
jne 0x14001d82a
jmp 0x14001d82e

Function at 0x14001d950
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140139d78]
test eax, eax
jne 0x14001d968
xor eax, eax
add rsp, 0x28
ret
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d998
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001d95e
test byte [rax + 0x40], 3
je 0x14001d95e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001d960
call fcn.14001c820
test rax, rax
je 0x14001d95e
jmp 0x14001d97e

Function at 0x14001d9b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d9f0
test ebx, ebx
jle 0x14001d9e0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001c820
test rax, rax
jne 0x14001d9cd
add rsp, 0x20
pop rbx
ret