joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004010ac
Capabilities:
Terminate process
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
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
mov r9, rax
mov r8d, 0xa
mov edx, 1
lea rax, str.cygtermd:
mov rcx, rax
call sub.msys_2.0.dll_fwrite
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov rbx, qword [rbp - 8]
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msys_2.0.dll_vfprintf
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
mov rdx, rax
mov ecx, 0xa
call sub.msys_2.0.dll_fputc
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
cmp qword [rbp + 0x20], 0
jne 0x100401157
mov ecx, 0
call sub.msys_2.0.dll_exit
mov rax, qword [rbp + 0x20]
mov ecx, eax
mov rax, qword [0x10040a040]
mov rdx, qword [rbp + 0x18]
mov r8d, ecx
mov rcx, rax
call fcn.100403230
mov rax, qword [0x10040a030]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401d4d
cmp rax, 0x10000
jbe 0x1004011a4
mov rax, qword [0x10040a018]
mov rcx, rax
call fcn.100401dc2
mov rax, qword [0x10040a038]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401d4d
cmp rax, 0x10000
jbe 0x1004011d5
mov rax, qword [0x10040a010]
mov rcx, rax
call fcn.100401dc2
nop
add rsp, 0x20
pop rbp
ret

Function at 0x100401132
Capabilities:
Terminate process

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
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
mov r9, rax
mov r8d, 0xa
mov edx, 1
lea rax, str.cygtermd:
mov rcx, rax
call sub.msys_2.0.dll_fwrite
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov rbx, qword [rbp - 8]
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msys_2.0.dll_vfprintf
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 0x18]
mov rdx, rax
mov ecx, 0xa
call sub.msys_2.0.dll_fputc
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
cmp qword [rbp + 0x20], 0
jne 0x100401157
mov ecx, 0
call sub.msys_2.0.dll_exit
mov rax, qword [rbp + 0x20]
mov ecx, eax
mov rax, qword [0x10040a040]
mov rdx, qword [rbp + 0x18]
mov r8d, ecx
mov rcx, rax
call fcn.100403230
mov rax, qword [0x10040a030]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401d4d
cmp rax, 0x10000
jbe 0x1004011a4
mov rax, qword [0x10040a018]
mov rcx, rax
call fcn.100401dc2
mov rax, qword [0x10040a038]
mov r8d, 0
mov edx, 0
mov rcx, rax
call fcn.100401d4d
cmp rax, 0x10000
jbe 0x1004011d5
mov rax, qword [0x10040a010]
mov rcx, rax
call fcn.100401dc2
nop
add rsp, 0x20
pop rbp
ret
Function at 0x100403800
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov edx, 2
lea rax, str._dev_ptmx
mov rcx, rax
call sub.msys_2.0.dll_open
mov dword [0x100405010], eax
mov eax, dword [0x100405010]
test eax, eax
jns 0x100403845
lea rax, str._dev_ptmx:_open
mov rcx, rax
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
mov eax, dword [0x100405010]
mov ecx, eax
call sub.msys_2.0.dll_grantpt
test eax, eax
jns 0x10040386f
lea rax, str.grantpt
mov rcx, rax
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
mov eax, dword [0x100405010]
mov ecx, eax
call sub.msys_2.0.dll_unlockpt
test eax, eax
jns 0x100403899
lea rax, str.unlockpt
mov rcx, rax
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
add rsp, 0x20
pop rbp
ret
Function at 0x140054670
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005467d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005468d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140054675
lea eax, [rcx + 1]
jmp 0x14005469b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400546ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140054694
sub eax, 3
jb 0x1400546ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005471d
sar eax, 1
movsxd rbp, eax
jb 0x140054704
jmp 0x1400546dc
add ebx, ebx
jne 0x1400546da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140054704
inc ecx
add ebx, ebx
jne 0x1400546ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140054704
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400546fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400546ec
add ecx, 2
jmp 0x140054709
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140054632
jmp 0x14005467d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140054769
cmp rsi, rcx
jae 0x140054771
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140054750
cmp al, 0x8f
ja 0x140054750
cmp byte [rsi - 2], 0xf
je 0x140054756
sub al, 0xe8
cmp al, 1
ja 0x14005473a
cmp rsi, rcx
jae 0x140054771
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140054740
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140054771
lodsb al, byte [rsi]
jmp 0x140054750
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x52000]
mov eax, dword [rdi]
or eax, eax
je 0x1400547da
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5ee6c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005477e
jns 0x1400547b3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400547bd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400547d4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005479e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140054814
cmp al, 0xef
ja 0x140054806
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400547e6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400547f5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140054868
sub rsp, 0xffffffffffffff80
jmp 0x14000cdb0
Function at 0x14000147d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x88]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x38], rax
mov dword [rbp - 4], 0
jmp 0x1400015a1
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call fcn.1400187b0
mov rdx, rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
sete al
mov byte [rbp - 0x41], al
cmp byte [rbp - 0x41], 0
je 0x14000159d
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x38]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x28]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
movzx eax, byte [rax + 4]
mov rdx, qword [rbp + 0x20]
mov byte [rdx], al
mov eax, 1
jmp 0x1400015b6
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x18]
cmp dword [rbp - 4], eax
jb 0x14000150c
mov eax, 0
add rsp, 0x70
pop rbp
ret
Function at 0x140002b50
Capabilities:
Access peb ldr_data

Disassembly:
push rdx
mov rdx, qword gs:[0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rdx, qword [rdx]
mov rax, qword [rdx + 0x20]
pop rdx
ret

Function at 0x140002b83
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140026628]
syscall
ret

Function at 0x140002b8f
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x14002662c]
syscall
ret

Function at 0x140002b9b
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140026630]
syscall
ret

Function at 0x140002ba7
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140026634]
syscall
ret

Function at 0x140002bb3
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140026638]
syscall
ret

Function at 0x140002bbf
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140026644]
syscall
ret

Function at 0x140002bd7
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x14002663c]
syscall
ret

Function at 0x14000ca50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000e160
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x14000cac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140032094]
test esi, esi
mov rbx, rcx
jle 0x14000cbf0
mov rax, qword [0x140032098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000cb0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000cb95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000caf0
mov rcx, rbx
call fcn.14000d530
test rax, rax
mov rdi, rax
je 0x14000cc12
mov rax, qword [0x140032098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000d670
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140032098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000cbf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000cb8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000cba0
add dword [0x140032094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140032098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000cb8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ca50
nop dword [rax]
xor esi, esi
jmp 0x14000cb18
mov rax, qword [0x140032098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000ca50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000ca50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d180
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140032100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400320e0]
test rbx, rbx
je 0x14000d1dc
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 0x14000d1d3
test rsi, rsi
je 0x14000d1d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d1b8
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 0x14000d3f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d428
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d430
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000d400
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d428
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d430
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000d410
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d428
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d430
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000d530
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000d5b0
Capabilities:
Parse pe header

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

Function at 0x14000d670
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140029d00]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000d68f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000d698
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000f000
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000f10a
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14000f0e2
add rax, 1
cmp rax, 0x6b
je 0x14000f0ff
cmp byte [rcx + rax], 0
jne 0x14000f0d8
cmp eax, 0x6a
movsxd rdx, eax
je 0x14000f0ff
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.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14000f0f3

Function at 0x14000f480
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140032200], 1
je 0x14000f4f8
lea rdi, [0x140032200]
mov rcx, rdi
call fcn.14000ed80
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14000e700
mov esi, dword [0x140032200]
test esi, esi
jne 0x14000f508
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x140026778], eax
je 0x1400251f6
mov dword [0x140032200], 1
mov rcx, rbp
call fcn.14000e9f0
test rbx, rbx
je 0x14000f4f8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14000f120
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14000f4d8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14000e1d0
jmp 0x14000f4d8
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
Function at 0x14000f530
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14000f230
cmp qword [0x140035048], 0
mov rbx, rax
je 0x14000f648
test rax, rax
je 0x14000f648
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400127f0
cmp eax, 1
je 0x14000f656
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
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.1400251fc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140026778]
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 0x14000f65c
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.14000f000
nop
jmp fcn.1400251fc

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

Disassembly:
sub rsp, 0x28
call fcn.14000f480
mov ecx, dword [0x140026778]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000f690
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14000f530
Function at 0x14000fe00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x14000ff28
cmp eax, 1
je 0x14000fe5b
call fcn.14000ed80
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14000e700
mov r12d, dword [rbx]
test r12d, r12d
je 0x14000fe70
cmp r12d, 1
jne 0x14000ff00
mov rcx, rbp
call fcn.14000e9f0
test rdi, rdi
je 0x14000fe5b
mov rcx, rdi
call fcn.14000f120
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14000f200]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14000f480
mov ecx, dword [0x140026778]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14000ff68
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14000f480
mov ecx, dword [0x140026778]
call r12
test rax, rax
je 0x14000ff50
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14000f480
mov ecx, dword [0x140026778]
call r12
test rax, rax
je 0x14000ff40
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14000fe46
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.14000e1d0
jmp 0x14000fe46
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000f530
test rax, rax
jne 0x14000fee9
jmp 0x140025215
call fcn.14000f530
test rax, rax
jne 0x14000fec5
jmp 0x14002522e
call fcn.14000f530
test rax, rax
jne 0x14000fe9f
jmp 0x140025224
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 0x1400101f0
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.14000f480
mov ecx, dword [0x140026778]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x140010268
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140012800
cmp esi, dword [rbx + 0x48]
jae 0x140010243
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140010243
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140012840
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.14000f530
mov rbx, rax
jmp 0x14001021d