joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c8ac
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000c8dc
xor eax, eax
jmp 0x14000c99f
mov rbp, rbx
cmp word [rax], si
je 0x14000c901
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c8e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c8e4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000c7cc
movsxd r14, eax
test eax, eax
jne 0x14000c93f
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14000c8d5
mov rcx, r14
call fcn.14000d788
mov rdi, rax
test rax, rax
jne 0x14000c958
xor ecx, ecx
call fcn.14000ae2c
jmp 0x14000c934
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000c7cc
test eax, eax
jne 0x14000c989
mov rcx, rdi
call fcn.14000ae2c
jmp 0x14000c993
xor ecx, ecx
call fcn.14000ae2c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000fe90
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000b89c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000ff1a
cmp byte [rbp - 0x21], r15b
je 0x14000ff15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000ff50
call fcn.14000df98
test eax, eax
jne 0x14000ff3c
cmp byte [rbp - 0x21], r15b
je 0x14000ff34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000ff50
cmp byte [rbp - 0x21], r15b
je 0x14000ff4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000ae7c
test eax, eax
jne 0x14000fff0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b89c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000ff8f
cmp byte [rbp - 0x21], r15b
je 0x14000ffc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000ffc4
call fcn.14000df98
test eax, eax
jne 0x14000ffb0
cmp byte [rbp - 0x21], r15b
je 0x14000ffa9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000ffc4
cmp byte [rbp - 0x21], r15b
je 0x14000ffc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000ae7c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000fff0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000fff3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140010001
mov rcx, rdi
call fcn.14000ae2c
cmp byte [rbp + 0x3f], r15b
je 0x140010010
mov rcx, qword [rbp + 0x27]
call fcn.14000ae2c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011177
Capabilities:
Read file on windows

Disassembly:
jmp 0x1400118d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x1400220a7]
call fcn.14001137a
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x64
mov rdx, qword [rbp + 0x120]
mov rcx, qword [0x14001d180]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbp + 0x120]
call fcn.140011172
mov dword [rbp + 4], eax
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax - 2]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movsx eax, byte [rax]
cmp eax, 0xd
jne 0x14001194b
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
movsxd rax, dword [rbp + 4]
mov rcx, qword [rbp + 0x120]
mov byte [rcx + rax - 1], 0
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400111f9
Capabilities:
Terminate process

Disassembly:
jmp 0x140013180
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144f0
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014503
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001452d
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014541
xor al, al
jmp 0x140014571
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014553
xor al, al
jmp 0x140014571
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001456f
xor al, al
jmp 0x140014571
mov al, 1
add rsp, 0x38
ret
Function at 0x140005c01
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x140005c31
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.140005bc3
mov rcx, rax
jmp 0x140005c36
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000d242
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400163e0
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.14001c410
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.14001c410
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 0x140016450
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002c2a4]
mov rbx, rcx
test esi, esi
jle 0x140016580
mov rax, qword [0x14002c2a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001649b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140016525
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140016480
mov rcx, rbx
call fcn.140016ea0
mov rdi, rax
test rax, rax
je 0x1400165a2
mov rax, qword [0x14002c2a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140016fe0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002c2a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140016587
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001651e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140016530
add dword [0x14002c2a4], 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 [0x14002c2a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001651e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400163e0
nop dword [rax]
xor esi, esi
jmp 0x1400164a8
mov rax, qword [0x14002c2a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400163e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400163e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140016b10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002c300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002c2e0]
test rbx, rbx
je 0x140016b6c
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 eax, eax
jne 0x140016b63
test rsi, rsi
je 0x140016b63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140016b48
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 0x140016ea0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140016f20
Capabilities:
Parse pe header

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

Function at 0x140016fe0
Capabilities:
Parse pe header

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

Function at 0x14001d4b0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001d5b2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001d58a
add rax, 1
cmp rax, 0x6b
je 0x14001d5a7
cmp byte [rcx + rax], 0
jne 0x14001d580
movsxd rdx, eax
cmp eax, 0x6a
je 0x14001d5a7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001d59b
Function at 0x14001d950
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14002ce00], 1
je 0x14001d9c8
lea rdi, [0x14002ce00]
mov rcx, rdi
call fcn.14001d230
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001cbb0
mov esi, dword [0x14002ce00]
test esi, esi
jne 0x14001d9d8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400234e8], eax
cmp eax, 0xffffffff
je 0x1400222b6
mov dword [0x14002ce00], 1
mov rcx, rbp
call fcn.14001cea0
test rbx, rbx
je 0x14001d9c8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001d5d0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001d9a8
mov ecx, 2
call qword [fcn.14001c410]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001d9a8
call sub.msvcrt.dll_abort
nop

Function at 0x14001da00
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001d6e0
cmp qword [0x14002e048], 0
mov rbx, rax
je 0x14001db18
test rax, rax
je 0x14001db18
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.140020c80
cmp eax, 1
je 0x14001db26
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 fcn.1400222bc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400234e8]
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 0x14001db2c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001d4b0
nop
jmp fcn.1400222bc

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

Disassembly:
sub rsp, 0x28
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001db60
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001da00
Function at 0x14001e2d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001e3f8
cmp eax, 1
je 0x14001e32b
call fcn.14001d230
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14001cbb0
mov r12d, dword [rbx]
test r12d, r12d
je 0x14001e340
cmp r12d, 1
jne 0x14001e3d0
mov rcx, rbp
call fcn.14001cea0
test rdi, rdi
je 0x14001e32b
mov rcx, rdi
call fcn.14001d5d0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14001d6b0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001d950
mov ecx, dword [0x1400234e8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14001e438
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call r12
test rax, rax
je 0x14001e420
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call r12
test rax, rax
je 0x14001e410
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001e316
mov ecx, 2
call qword [fcn.14001c410]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001e316
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001da00
test rax, rax
jne 0x14001e3b9
jmp 0x1400222d5
call fcn.14001da00
test rax, rax
jne 0x14001e395
jmp 0x1400222ee
call fcn.14001da00
test rax, rax
jne 0x14001e36f
jmp 0x1400222e4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14001e6c0
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.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e738
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140020c90
cmp esi, dword [rbx + 0x48]
jae 0x14001e713
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001e713
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140020cd0
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.14001da00
mov rbx, rax
jmp 0x14001e6ed
Function at 0x14001e750
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.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e850
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140020c90
cmp esi, dword [rbx + 0x48]
jae 0x14001e7d0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140020cd0
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
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001e85d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001e85d
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
jmp 0x14001e79f
call fcn.14001da00
mov rbx, rax
jmp 0x14001e78a
mov rcx, r13
call fcn.140020cd0
mov eax, 0xc
jmp 0x14001e7bd

Function at 0x14001e8e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e908
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001da00
test rax, rax
jne 0x14001e8fa
add rsp, 0x28
ret

Function at 0x14001e970
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e998
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001da00
test rax, rax
jne 0x14001e98a
jmp 0x14001e98e

Function at 0x14001eab0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002ce08]
test eax, eax
jne 0x14001eac8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001eaf8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001eabe
test byte [rax + 0x40], 3
je 0x14001eabe
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001eac0
call fcn.14001da00
test rax, rax
jne 0x14001eade
jmp 0x14001eabe

Function at 0x14001eb10
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001eb50
test ebx, ebx
jle 0x14001eb40
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.14001da00
test rax, rax
jne 0x14001eb2d
add rsp, 0x20
pop rbx
ret
Function at 0x14001ec40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ecb8
test byte [rbx + 0x40], 0xc
jne 0x14001ec6f
mov eax, dword [0x14002ce08]
test eax, eax
jne 0x14001ec80
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001cbb0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001eca3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001eca3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001eccc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001cea0
call fcn.14001da00
mov rbx, rax
test rax, rax
jne 0x14001ec5f
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 0x14001ecea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001cea0
call fcn.14001eb60
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001ed70
call fcn.14001fe20
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001eda8
call fcn.14001d950
mov ecx, dword [0x1400234e8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ee00
test esi, esi
je 0x14001ed86
call fcn.14001ec40
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001ede0
mov edx, edi
call fcn.14001fed0
call fcn.14001ec40
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d950
mov ecx, dword [0x1400234e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001edf0
call fcn.14001ec40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001ec40
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d950
mov ecx, dword [0x1400234e8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001ed45
call fcn.14001da00
mov rbx, rax
jmp 0x14001ed45
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001ed5e
call fcn.14001da00
jmp 0x14001ed86
call fcn.14001da00
mov rbx, rax
jmp 0x14001ed41