joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a720
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140185450]
mov qword [rsp + 0x48], 0
lea rbx, [rsp + 0x20]
mov rdx, qword [rax]
mov qword [rsp + 0x58], rdx
xor edx, edx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x4d], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r8, str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov edx, 0x35
mov rcx, rbx
mov r9d, eax
call fcn.1400b5310
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop word cs:[rax + rax]

Function at 0x14009ab30
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1401ba170], 1
je 0x14009abd0
lea rdi, [0x1401ba170]
mov rcx, rdi
call fcn.14009a4d0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140099de0
mov esi, dword [0x1401ba170]
test esi, esi
jne 0x14009aba8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14016a418], eax
cmp eax, 0xffffffff
je 0x140163556
mov dword [0x1401ba170], 1
mov rcx, rbp
call fcn.14009a0b0
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14009a7b0
cmp esi, 1
je 0x14009ab8c
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__ld_n
mov rcx, rax
call fcn.1400b53a0
jmp 0x14009ab8c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
mov rax, qword [0x28]
ud2

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14009a8c0
mov rbx, rax
test rax, rax
je 0x14009acdc
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.14009a3c0
cmp eax, 1
je 0x14009ace8
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 0x14016355c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14016a418]
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 0x14016355c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14009a720
nop
nop
Function at 0x14009acf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009ad10
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14009abe0

Function at 0x14009b4d0
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 [0x140185450]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14009b630
cmp eax, 1
je 0x14009b535
call fcn.14009a4d0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.140099de0
mov ebp, dword [rbx]
test ebp, ebp
je 0x14009b558
cmp ebp, 1
jne 0x14009b5f8
mov rcx, r13
call fcn.14009a0b0
mov rcx, rdi
call fcn.14009a7b0
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14009b67b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14009a890]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14009ab30
mov ecx, dword [0x14016a418]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14009b668
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call rbp
test rax, rax
je 0x14009b650
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call rbp
test rax, rax
je 0x14009b640
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14009a0b0
mov rcx, rdi
call fcn.14009a7b0
jmp 0x14009b535
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call fcn.1400b53a0
mov rcx, r13
call fcn.14009a0b0
mov rcx, rdi
call fcn.14009a7b0
jmp 0x14009b535
mov eax, 0x16
jmp 0x14009b537
call fcn.14009abe0
test rax, rax
jne 0x14009b5ce
jmp 0x14016358e
call fcn.14009abe0
test rax, rax
jne 0x14009b5ab
jmp 0x14016357f
call fcn.14009abe0
test rax, rax
jne 0x14009b586
jmp 0x140163575
call fcn.1400ac0f0
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 0x14009b900
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.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14009b978
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14009a3d0
cmp esi, dword [rbx + 0x48]
jae 0x14009b953
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14009b953
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14009a420
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.14009abe0
mov rbx, rax
jmp 0x14009b92d
Function at 0x14009b990
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.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14009ba88
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14009a3d0
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14009ba53
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov rdi, rax
test rax, rax
je 0x14009ba95
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov r14, rax
test rax, rax
je 0x14009ba95
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.api_ms_win_crt_string_l1_1_0.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.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.14009a420
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.14009abe0
mov rbx, rax
jmp 0x14009b9ca
mov rcx, r13
call fcn.14009a420
mov eax, 0xc
jmp 0x14009ba71

Function at 0x14009bb30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009bb58
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14009abe0
test rax, rax
jne 0x14009bb4a
add rsp, 0x28
ret

Function at 0x14009bbc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009bbe8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14009abe0
test rax, rax
jne 0x14009bbda
jmp 0x14009bbde

Function at 0x14009bd00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401ba178]
test eax, eax
jne 0x14009bd18
xor eax, eax
add rsp, 0x28
ret
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009bd48
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14009bd0e
test byte [rax + 0x40], 3
je 0x14009bd0e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14009bd10
call fcn.14009abe0
test rax, rax
je 0x14009bd0e
jmp 0x14009bd2e
Function at 0x14009bd60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009bda0
test ebx, ebx
jle 0x14009bd90
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.14009abe0
test rax, rax
jne 0x14009bd7d
add rsp, 0x20
pop rbx
ret

Function at 0x14009be90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14009bf08
test byte [rbx + 0x40], 0xc
jne 0x14009bebf
mov eax, dword [0x1401ba178]
test eax, eax
jne 0x14009bed0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140099de0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14009bef3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14009bef3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14009bf1c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14009a0b0
call fcn.14009abe0
mov rbx, rax
test rax, rax
jne 0x14009beaf
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 0x14009bf3a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14009a0b0
call fcn.14009bdb0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14009bfb8
call fcn.140099aa0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14009c000
test rsi, rsi
je 0x14009bfce
call fcn.14009be90
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14009bff0
mov edx, edi
call fcn.140099b70
call fcn.14009be90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009c010
call fcn.14009be90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14009be90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009bfa6
call fcn.14009abe0
mov rbx, rax
jmp 0x14009bf8c
call fcn.14009abe0
jmp 0x14009bfce
Function at 0x14009bf50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14009bf08
test byte [rbx + 0x40], 0xc
jne 0x14009bebf
mov eax, dword [0x1401ba178]
test eax, eax
jne 0x14009bed0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140099de0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14009bef3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14009bef3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14009bf1c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14009a0b0
call fcn.14009abe0
mov rbx, rax
test rax, rax
jne 0x14009beaf
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 0x14009bf3a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14009a0b0
call fcn.14009bdb0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14009bfb8
call fcn.140099aa0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14009c000
test rsi, rsi
je 0x14009bfce
call fcn.14009be90
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14009bff0
mov edx, edi
call fcn.140099b70
call fcn.14009be90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14009c010
call fcn.14009be90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14009be90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009bfa6
call fcn.14009abe0
mov rbx, rax
jmp 0x14009bf8c
call fcn.14009abe0
jmp 0x14009bfce

Function at 0x14009c020
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14009ab30
mov ecx, dword [0x14016a418]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14009c090
test esi, esi
je 0x14009c070
call fcn.14009be90
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14009c0a0
mov edx, esi
call fcn.140099b70
call fcn.14009be90
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14009be90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14009be90
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14009abe0
mov rbx, rax
jmp 0x14009c041
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14009c05a
Function at 0x14009de10
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x14016a428]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.14009a3d0
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x14009de59
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x14009de59
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.14009a420
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [rsp + 0x20], 0x28
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
mov rcx, rax
lea rdx, str.Assertion_failed:___s___file__s__line__d_n
call fcn.1400b53a0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
nop word cs:[rax + rax]
nop
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
neg eax
mov dword [rcx + 0xc], eax
mov rbx, rcx
lea rcx, [rcx + 0x20]
mov dword [rcx - 0x10], 0
call fcn.14009a0b0
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.14009a0b0

Function at 0x14009e2c0
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14009e0e0
test eax, eax
je 0x14009e2e8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.140099de0
test eax, eax
jne 0x14009e311
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x14009e328
mov rcx, rdi
call fcn.14009a0b0
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14009de10
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.140099de0
mov ebp, eax
test eax, eax
je 0x14009e350
mov rcx, rdi
call fcn.14009a0b0
mov edx, ebp
jmp 0x14009e313
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.14009a0b0
mov rcx, rdi
mov esi, eax
call fcn.14009a0b0
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x14009e313

Function at 0x14009e5f0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14009dda0
test eax, eax
jne 0x14009e670
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x14009e640
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.14009a0b0
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.14009a0b0
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.14009de10
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.140099de0
mov edx, eax
test eax, eax
jne 0x14009e62d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x14009e680
mov rcx, rdi
call fcn.14009a0b0
mov edx, eax
jmp 0x14009e62d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.1400990d0
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.14009a0b0
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14009e62d
Function at 0x1400a9770
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 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.1400b52b0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400a97e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401ba1f4]
mov rbx, rcx
test esi, esi
jle 0x1400a9910
mov rax, qword [0x1401ba1f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400a982b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400a98b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400a9810
mov rcx, rbx
call fcn.1400aa260
mov rdi, rax
test rax, rax
je 0x1400a9932
mov rax, qword [0x1401ba1f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400aa3a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401ba1f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a9917
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400a98ae
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400a98c0
add dword [0x1401ba1f4], 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 [0x1401ba1f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a98ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400a9770
nop dword [rax]
xor esi, esi
jmp 0x1400a9838
mov rax, qword [0x1401ba1f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400a9770
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400a9770
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400a9ed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401ba260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401ba240]
test rbx, rbx
je 0x1400a9f2c
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 0x1400a9f23
test eax, eax
jne 0x1400a9f23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a9f08
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 0x1400aa260
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400aa2e0
Capabilities:
Parse pe header

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

Function at 0x1400aa3a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140185350]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400aa3bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400aa3c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400ac0a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400ac0d0
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 0x1400ac0f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400ac120
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 0x1400bd5a0
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov r8, rcx
mov rcx, rdx
mov edx, 0x880
add r8, 0x40
jmp 0x1400b64c0

Function at 0x1400bd850
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov r8, rcx
mov rcx, rdx
mov edx, 0x880
add r8, 0x40
jmp 0x1400b6210

Function at 0x1400bdb10
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
mov r8, rcx
mov rcx, rdx
mov edx, 0x880
add r8, 0x40
jmp 0x1400b64c0