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

Disassembly:
push r13
mov eax, 0x13c8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000efc0
sub rsp, rax
lea rbx, [rsp + 0x9f0]
lea rsi, [rsp + 0x20]
mov rdi, rcx
mov rbp, rdx
lea r12, [rsp + 0xa00]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0xa00], 0x61666564
mov qword [rsp + 0x9f0], r12
mov dword [rsp + 0xa03], 0x746c7561
mov qword [rsp + 0x9f8], 7
mov byte [rsp + 0xa07], 0
call fcn.1400a4280
mov rcx, qword [rsp + 0x9f0]
cmp rcx, r12
je 0x14000168b
mov rax, qword [rsp + 0xa00]
lea rdx, [rax + 1]
call fcn.1400cad70
mov rcx, rsi
call fcn.1400a44d0
mov dword [rsp + 0x9f0], eax
mov ecx, eax
mov edx, 1
nop word cs:[rax + rax]
nop word cs:[rax + rax]
nop word [rax + rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
lea ecx, [rax + rdx]
mov dword [rbx + rdx*4], ecx
add rdx, 1
cmp rdx, 0x270
jne 0x1400016c0
mov r12d, dword [rbp]
mov edi, dword [rdi]
mov qword [rsp + 0x13b0], 0x270
mov r13d, r12d
sub r13d, edi
cmp r13d, 0xffffffff
je 0x1400017f6
mov rcx, rbx
lea ebp, [r13 + 1]
call fcn.1400b0ec0
mov rax, qword [rsp + 0x13b0]
mov ecx, dword [rsp + rax*4 + 0x9f0]
lea r8, [rax + 1]
mov qword [rsp + 0x13b0], r8
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor ecx, eax
mov eax, ecx
shl eax, 0xf
and eax, 0xefc60000
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor ecx, eax
imul rcx, rbp
cmp ecx, ebp
jae 0x1400017d5
lea eax, [rdi - 1]
xor edx, edx
sub eax, r12d
div ebp
mov r12d, edx
cmp ecx, edx
jb 0x1400017b7
jmp 0x1400017d5
lea r8, [rax + 1]
mov eax, dword [rsp + rax*4 + 0x9f0]
mov qword [rsp + 0x13b0], r8
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
imul rax, rbp
mov rcx, rax
cmp eax, r12d
jae 0x1400017d5
mov rax, r8
cmp r8, 0x26f
jbe 0x140001770
mov rcx, rbx
call fcn.1400b0ec0
mov rax, qword [rsp + 0x13b0]
jmp 0x140001770
shr rcx, 0x20
mov ebx, ecx
mov rcx, rsi
call fcn.1400a41c0
lea eax, [rdi + rbx]
add rsp, 0x13c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rcx, rbx
call fcn.1400b0ec0
mov rax, qword [rsp + 0x13b0]
mov ecx, dword [rsp + rax*4 + 0x9f0]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor ecx, eax
mov eax, ecx
shl eax, 0xf
and eax, 0xefc60000
xor ecx, eax
mov eax, ecx
mov ebx, ecx
shr eax, 0x12
xor ebx, eax
jmp 0x1400017db
Function at 0x140004410
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140004480
jg 0x140004440
sub edx, 0x49
cmp dl, 1
ja 0x140004490
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.1400044b0
cmp dl, 0x58
jne 0x140004490
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.140004780
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x1400044a0
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.140004220
add rsp, 0x30
pop rsi
jmp fcn.140002b50
xor eax, eax
jmp 0x14000447a
Function at 0x14000e1c0
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.140019ad0
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.140019ad0
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 0x14000e230
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ff0b4]
mov rbx, rcx
test esi, esi
jle 0x14000e360
mov rax, qword [0x1400ff0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e27b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e305
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e260
mov rcx, rbx
call fcn.14000ece0
mov rdi, rax
test rax, rax
je 0x14000e382
mov rax, qword [0x1400ff0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000ee20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ff0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e367
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000e2fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000e310
add dword [0x1400ff0b4], 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 [0x1400ff0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e2fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e1c0
nop dword [rax]
xor esi, esi
jmp 0x14000e288
mov rax, qword [0x1400ff0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e1c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e1c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e920
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ff120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ff100]
test rbx, rbx
je 0x14000e984
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 0x14000e97b
test eax, eax
jne 0x14000e97b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e960
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 0x14000ece0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000ed60
Capabilities:
Parse pe header

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

Function at 0x14000ee20
Capabilities:
Parse pe header

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

Function at 0x14000fc00
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 0x14000fc30
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 0x14000fc50
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 0x14000fc80
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 0x14001c1f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400ffc70], 1
je 0x14001c290
lea rdi, [0x1400ffc70]
mov rcx, rdi
call fcn.14001bb60
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001b450
mov esi, dword [0x1400ffc70]
test esi, esi
jne 0x14001c268
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400cd318], eax
cmp eax, 0xffffffff
je 0x1400cc9e6
mov dword [0x1400ffc70], 1
mov rcx, rbp
call fcn.14001b720
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001be50
cmp esi, 1
je 0x14001c24c
mov ecx, 2
call qword [fcn.140019ad0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001c24c
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 0x14001c2a0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001bf80
mov rbx, rax
test rax, rax
je 0x14001c39c
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.14001ba30
cmp eax, 1
je 0x14001c3a8
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 0x1400cc9ec
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400cd318]
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 0x1400cc9ec
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001bdc0
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c3d0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001c2a0
Function at 0x14001ca50
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400d78e0]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, 1
test eax, eax
je 0x14001cab6
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14001cab6
xor edx, edx
nop word cs:[rax + rax]
nop
mov ecx, eax
and ecx, 1
add edx, ecx
shr rax, 1
jne 0x14001caa0
test edx, edx
mov eax, 1
cmove edx, eax
mov rax, qword [rsp + 0x38]
sub rax, qword [rbx]
jne 0x14001cac8
mov eax, edx
add rsp, 0x40
pop rbx
ret
call fcn.14000fc50
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, qword [0x1400d78e0]
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, ecx
test ecx, ecx
mov eax, 1
cmove edi, eax
call r12
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ebx, eax
test eax, eax
je 0x14001cb5f
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14001cb80
xor ebx, ebx
xor esi, esi
nop dword [rax]
add rsi, rsi
cmp edi, ebx
jle 0x14001cb42
test al, 1
je 0x14001cb42
or rsi, 1
add ebx, 1
shr rax, 1
jne 0x14001cb30
mov qword [rsp + 0x28], 0
call r12
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rax, qword [rsp + 0x38]
sub rax, qword [rbp]
jne 0x14001cb86
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
xor ebx, ebx
jmp 0x14001cb50
call fcn.14000fc50
nop
nop dword [rax]
Function at 0x14001cad0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400d78e0]
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov edx, 1
test eax, eax
je 0x14001cab6
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14001cab6
xor edx, edx
nop word cs:[rax + rax]
nop
mov ecx, eax
and ecx, 1
add edx, ecx
shr rax, 1
jne 0x14001caa0
test edx, edx
mov eax, 1
cmove edx, eax
mov rax, qword [rsp + 0x38]
sub rax, qword [rbx]
jne 0x14001cac8
mov eax, edx
add rsp, 0x40
pop rbx
ret
call fcn.14000fc50
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, qword [0x1400d78e0]
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
xor eax, eax
mov edi, ecx
test ecx, ecx
mov eax, 1
cmove edi, eax
call r12
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov ebx, eax
test eax, eax
je 0x14001cb5f
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x14001cb80
xor ebx, ebx
xor esi, esi
nop dword [rax]
add rsi, rsi
cmp edi, ebx
jle 0x14001cb42
test al, 1
je 0x14001cb42
or rsi, 1
add ebx, 1
shr rax, 1
jne 0x14001cb30
mov qword [rsp + 0x28], 0
call r12
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rax, qword [rsp + 0x38]
sub rax, qword [rbp]
jne 0x14001cb86
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor esi, esi
xor ebx, ebx
jmp 0x14001cb50
call fcn.14000fc50
nop
nop dword [rax]
Function at 0x14001cb90
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 [0x1400d78e0]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001ccf0
cmp eax, 1
je 0x14001cbf5
call fcn.14001bb60
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.14001b450
mov ebp, dword [rbx]
test ebp, ebp
je 0x14001cc18
cmp ebp, 1
jne 0x14001ccb8
mov rcx, r13
call fcn.14001b720
mov rcx, rdi
call fcn.14001be50
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14001cd3b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001bf50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14001cd28
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call rbp
test rax, rax
je 0x14001cd10
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call rbp
test rax, rax
je 0x14001cd00
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14001b720
mov rcx, rdi
call fcn.14001be50
jmp 0x14001cbf5
mov ecx, 2
call qword [fcn.140019ad0]
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.14001b720
mov rcx, rdi
call fcn.14001be50
jmp 0x14001cbf5
mov eax, 0x16
jmp 0x14001cbf7
call fcn.14001c2a0
test rax, rax
jne 0x14001cc8e
jmp 0x1400cca1e
call fcn.14001c2a0
test rax, rax
jne 0x14001cc6b
jmp 0x1400cca0f
call fcn.14001c2a0
test rax, rax
jne 0x14001cc46
jmp 0x1400cca05
call fcn.14000fc50
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 0x14001cfd0
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.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d048
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001ba40
cmp esi, dword [rbx + 0x48]
jae 0x14001d023
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001d023
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001baa0
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.14001c2a0
mov rbx, rax
jmp 0x14001cffd
Function at 0x14001d060
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.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d158
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001ba40
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14001d123
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 0x14001d165
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001d165
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.14001baa0
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.14001c2a0
mov rbx, rax
jmp 0x14001d09a
mov rcx, r13
call fcn.14001baa0
mov eax, 0xc
jmp 0x14001d141

Function at 0x14001d200
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d228
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001c2a0
test rax, rax
jne 0x14001d21a
add rsp, 0x28
ret

Function at 0x14001d290
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d2b8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001c2a0
test rax, rax
jne 0x14001d2aa
jmp 0x14001d2ae

Function at 0x14001d3d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400ffc78]
test eax, eax
jne 0x14001d3e8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d418
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001d3de
test byte [rax + 0x40], 3
je 0x14001d3de
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001d3e0
call fcn.14001c2a0
test rax, rax
je 0x14001d3de
jmp 0x14001d3fe

Function at 0x14001d430
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d470
test ebx, ebx
jle 0x14001d460
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.14001c2a0
test rax, rax
jne 0x14001d44d
add rsp, 0x20
pop rbx
ret
Function at 0x14001d570
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d5e8
test byte [rbx + 0x40], 0xc
jne 0x14001d59f
mov eax, dword [0x1400ffc78]
test eax, eax
jne 0x14001d5b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001b450
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001d5d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001d5d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001d5fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001b720
call fcn.14001c2a0
mov rbx, rax
test rax, rax
jne 0x14001d58f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001d61a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001b720
call fcn.14001d480
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001d698
call fcn.14001b110
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001d6e0
test rsi, rsi
je 0x14001d6ae
call fcn.14001d570
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001d6d0
mov edx, edi
call fcn.14001b1e0
call fcn.14001d570
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001c1f0
mov ecx, dword [0x1400cd318]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d6f0
call fcn.14001d570
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001d570
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001d686
call fcn.14001c2a0
mov rbx, rax
jmp 0x14001d66c
call fcn.14001c2a0
jmp 0x14001d6ae