joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f3540
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1400d42b0
test rax, rax
je 0x1400f3690
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14015fad4
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x1400f35f6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400f35e8
test rbx, rbx
je 0x14015fad4
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x1400f35a8
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x140189a60]
mov rsi, rax
mov rax, qword [0x140172f80]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x1400f3705
mov rdx, rbx
call fcn.1400c4a80
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.1400e75d0
mov rdx, qword [rbx]
test edx, edx
js 0x1400f3672
sub rdx, 1
mov qword [rbx], rdx
je 0x1400f36ed
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x140189320]
lea rsi, [0x140189320]
test bl, bl
je 0x1400f36b0
mov rax, qword [0x140189328]
lea rsi, [0x140189328]
test rax, rax
jne 0x1400f3672
cmp byte [0x140189542], 0
jne 0x1400f36c6
movzx ecx, bl
call fcn.1400c62c0
mov rdx, 0xffffffffffffffff
lea rcx, [0x140189340]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x1400f372f
mov edx, dword [rax]
add edx, 1
je 0x1400f3672
mov dword [rax], edx
jmp 0x1400f3672
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400f3672
mov rcx, qword [0x1401899d8]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x1400f373a
mov rdx, rdi
call fcn.1400c4a80
mov qword [0x140189a60], rax
mov rcx, rax
jmp 0x1400f3649
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x14016a8fb]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1401899d8], rax
mov rcx, rax
test rax, rax
je 0x14015fad4
jmp 0x1400f3718
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14014b2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140189301], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14014b328
lea rdx, [0x14016eec2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14014b390
mov rbx, qword [0x1401891a0]
jmp 0x14014b2e5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14014b2e0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14013b2e0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1401891a0], rax
mov ebx, dword [rax]
mov qword [0x1401891a0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401891a0], rdx
call fcn.14014a3d0
cmp eax, ebx
jne 0x14014b3f8
mov byte [0x140189301], 1
jmp 0x14014b2bc
cmp byte [0x140189300], 0
jne 0x14014b2d3
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x140189c68], rax
call rbx
mov qword [0x140189c60], rax
call rbx
mov qword [0x140189c58], rax
call rbx
mov qword [0x140189c50], rax
call rbx
mov qword [0x140189c48], rax
call rbx
mov qword [0x140189c40], rax
call rbx
mov qword [0x140189c38], rax
call rbx
mov byte [0x140189300], 1
mov qword [0x140189c30], rax
jmp 0x14014b2d3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14014d800
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.14015ef80
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14015ef80
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 0x14014e4d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14018a128]
test eax, eax
je 0x14014e56a
lea rax, [0x14018a100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14018a130]
mov qword [rbp - 8], rax
jmp 0x14014e54e
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 0x14014e542
cmp qword [rbp - 0x10], 0
je 0x14014e542
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 0x14014e508
lea rax, [0x14018a100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14014e56b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14014e670
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 0x14014e698
mov eax, 0
jmp 0x14014e6e6
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 0x14014e6c1
mov eax, 0
jmp 0x14014e6e6
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 0x14014e6e1
mov eax, 0
jmp 0x14014e6e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14014e6ec
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 0x14014e76a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14014e761
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 0x14014e761
mov rax, qword [rbp - 8]
jmp 0x14014e77f
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 0x14014e734
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1401fdb40
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x1401fdbb0
jg 0x1401fdb70
sub edx, 0x49
cmp dl, 1
ja 0x1401fdbc0
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.1401fdbe0
cmp dl, 0x58
jne 0x1401fdbc0
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.1401fdeb0
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x1401fdbd0
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.1401fd960
add rsp, 0x30
pop rsi
jmp fcn.1401fc2b0
xor eax, eax
jmp 0x1401fdbaa
Function at 0x140207020
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.140211dc0
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.140211dc0
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 0x140207090
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14041f0d4]
mov rbx, rcx
test esi, esi
jle 0x1402071c0
mov rax, qword [0x14041f0d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1402070db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140207165
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1402070c0
mov rcx, rbx
call fcn.140207b10
mov rdi, rax
test rax, rax
je 0x1402071e2
mov rax, qword [0x14041f0d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140207c50
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14041f0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1402071c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14020715e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140207170
add dword [0x14041f0d4], 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 [0x14041f0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14020715e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140207020
nop dword [rax]
xor esi, esi
jmp 0x1402070e8
mov rax, qword [0x14041f0d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140207020
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140207020
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140207780
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14041f140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14041f120]
test rbx, rbx
je 0x1402077dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1402077d3
test eax, eax
jne 0x1402077d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1402077b8
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 0x140207b10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403f71e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140207b30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140207b38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140207b30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140207b8d
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 0x140207b84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140207b30
add rax, 0x28
cmp rax, r9
jne 0x140207b70
xor eax, eax
ret

Function at 0x140207b90
Capabilities:
Parse pe header

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

Function at 0x140207c50
Capabilities:
Parse pe header

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

Function at 0x140208b90
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 0x140208bc0
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 0x140208be0
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 0x140208c10
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 0x140214830
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14041fc80], 1
je 0x1402148d0
lea rdi, [0x14041fc80]
mov rcx, rdi
call fcn.1402141d0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140213ae0
mov esi, dword [0x14041fc80]
test esi, esi
jne 0x1402148a8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140328f38], eax
cmp eax, 0xffffffff
je 0x1402c8776
mov dword [0x14041fc80], 1
mov rcx, rbp
call fcn.140213db0
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1402144b0
cmp esi, 1
je 0x14021488c
mov ecx, 2
call qword [fcn.140211dc0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14021488c
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 0x1402148e0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1402145c0
mov rbx, rax
test rax, rax
je 0x1402149dc
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.1402140c0
cmp eax, 1
je 0x1402149e8
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 0x1402c877c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140328f38]
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 0x1402c877c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140214420
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.140214830
mov ecx, dword [0x140328f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140214a10
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1402148e0
Function at 0x1402151d0
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 [0x1403f72f0]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140215330
cmp eax, 1
je 0x140215235
call fcn.1402141d0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.140213ae0
mov ebp, dword [rbx]
test ebp, ebp
je 0x140215258
cmp ebp, 1
jne 0x1402152f8
mov rcx, r13
call fcn.140213db0
mov rcx, rdi
call fcn.1402144b0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14021537b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140214590]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140214830
mov ecx, dword [0x140328f38]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x140215368
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140214830
mov ecx, dword [0x140328f38]
call rbp
test rax, rax
je 0x140215350
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140214830
mov ecx, dword [0x140328f38]
call rbp
test rax, rax
je 0x140215340
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.140213db0
mov rcx, rdi
call fcn.1402144b0
jmp 0x140215235
mov ecx, 2
call qword [fcn.140211dc0]
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.140213db0
mov rcx, rdi
call fcn.1402144b0
jmp 0x140215235
mov eax, 0x16
jmp 0x140215237
call fcn.1402148e0
test rax, rax
jne 0x1402152ce
jmp 0x1402c87ae
call fcn.1402148e0
test rax, rax
jne 0x1402152ab
jmp 0x1402c879f
call fcn.1402148e0
test rax, rax
jne 0x140215286
jmp 0x1402c8795
call fcn.140208be0
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 0x140215600
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.140214830
mov ecx, dword [0x140328f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140215678
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1402140d0
cmp esi, dword [rbx + 0x48]
jae 0x140215653
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140215653
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140214120
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.1402148e0
mov rbx, rax
jmp 0x14021562d
Function at 0x140215690
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.140214830
mov ecx, dword [0x140328f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140215788
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1402140d0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x140215753
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 0x140215795
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140215795
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.140214120
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.1402148e0
mov rbx, rax
jmp 0x1402156ca
mov rcx, r13
call fcn.140214120
mov eax, 0xc
jmp 0x140215771

Function at 0x140215830
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140214830
mov ecx, dword [0x140328f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140215858
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.1402148e0
test rax, rax
jne 0x14021584a
add rsp, 0x28
ret

Function at 0x1402158c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140214830
mov ecx, dword [0x140328f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1402158e8
add rax, 0x18
add rsp, 0x28
ret
call fcn.1402148e0
test rax, rax
jne 0x1402158da
jmp 0x1402158de

Function at 0x140215a00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14041fc88]
test eax, eax
jne 0x140215a18
xor eax, eax
add rsp, 0x28
ret
call fcn.140214830
mov ecx, dword [0x140328f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140215a48
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140215a0e
test byte [rax + 0x40], 3
je 0x140215a0e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140215a10
call fcn.1402148e0
test rax, rax
je 0x140215a0e
jmp 0x140215a2e

Function at 0x140215a60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140214830
mov ecx, dword [0x140328f38]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140215aa0
test ebx, ebx
jle 0x140215a90
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.1402148e0
test rax, rax
jne 0x140215a7d
add rsp, 0x20
pop rbx
ret