joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140023830]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140023840]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140027008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400237a0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140017bd0
mov rcx, qword [0x1400238f0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140023820]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400179e0
mov ebx, dword [0x140027028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140027020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140027020], rbp
call fcn.1400177e0
mov rax, qword [0x1400237b0]
mov r8, qword [0x140027018]
mov ecx, dword [0x140027028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140027020]
call fcn.14001ee20
mov ecx, dword [0x14002700c]
mov dword [0x140027010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140027008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140023840]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.140018990
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140023870]
mov rcx, qword [0x140023860]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140027010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140023890]
mov rcx, qword [0x140023880]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x1400237d0]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x1400179f0
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.140018800
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140017a60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002d5e4]
mov rbx, rcx
test esi, esi
jle 0x140017b90
mov rax, qword [0x14002d5e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140017aab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140017b35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140017a90
mov rcx, rbx
call fcn.1400184e0
mov rdi, rax
test rax, rax
je 0x140017bb2
mov rax, qword [0x14002d5e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140018620
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002d5e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140017b97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140017b2e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140017b40
add dword [0x14002d5e4], 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 [0x14002d5e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140017b2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400179f0
nop dword [rax]
xor esi, esi
jmp 0x140017ab8
mov rax, qword [0x14002d5e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400179f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400179f0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140018150
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002d640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002d620]
test rbx, rbx
je 0x1400181ac
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 0x1400181a3
test eax, eax
jne 0x1400181a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140018188
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 0x1400184e0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140018560
Capabilities:
Parse pe header

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

Function at 0x140018620
Capabilities:
Parse pe header

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

Function at 0x140019880
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140023850]
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.14001ed20
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 0x140019c90
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14002d740], 1
je 0x140019d30
lea rdi, [0x14002d740]
mov rcx, rdi
call fcn.140019630
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001c280
mov esi, dword [0x14002d740]
test esi, esi
jne 0x140019d08
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140022128], eax
cmp eax, 0xffffffff
je 0x1400218e6
mov dword [0x14002d740], 1
mov rcx, rbp
call fcn.14001c550
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140019910
cmp esi, 1
je 0x140019cec
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.140018820
jmp 0x140019cec
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 0x140019d40
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.140019a20
mov rbx, rax
test rax, rax
je 0x140019e3c
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.14001d5a0
cmp eax, 1
je 0x140019e48
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 0x1400218ec
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140022128]
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 0x1400218ec
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140019880
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019e70
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140019d40

Function at 0x14001ac90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001acb8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140019d40
test rax, rax
jne 0x14001acaa
add rsp, 0x28
ret
Function at 0x14001ad20
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ad48
add rax, 0x18
add rsp, 0x28
ret
call fcn.140019d40
test rax, rax
jne 0x14001ad3a
jmp 0x14001ad3e

Function at 0x14001ae60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14002d748]
test eax, eax
jne 0x14001ae78
xor eax, eax
add rsp, 0x28
ret
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001aea8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001ae6e
test byte [rax + 0x40], 3
je 0x14001ae6e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001ae70
call fcn.140019d40
test rax, rax
je 0x14001ae6e
jmp 0x14001ae8e

Function at 0x14001aec0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001af00
test ebx, ebx
jle 0x14001aef0
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.140019d40
test rax, rax
jne 0x14001aedd
add rsp, 0x20
pop rbx
ret
Function at 0x14001aff0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b068
test byte [rbx + 0x40], 0xc
jne 0x14001b01f
mov eax, dword [0x14002d748]
test eax, eax
jne 0x14001b030
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c280
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b053
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b053
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b07c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c550
call fcn.140019d40
mov rbx, rax
test rax, rax
jne 0x14001b00f
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 0x14001b09a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c550
call fcn.14001af10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b118
call fcn.1400192c0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b160
test rsi, rsi
je 0x14001b12e
call fcn.14001aff0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b150
mov edx, edi
call fcn.140019390
call fcn.14001aff0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b170
call fcn.14001aff0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001aff0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b106
call fcn.140019d40
mov rbx, rax
jmp 0x14001b0ec
call fcn.140019d40
jmp 0x14001b12e
Function at 0x14001b0b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b068
test byte [rbx + 0x40], 0xc
jne 0x14001b01f
mov eax, dword [0x14002d748]
test eax, eax
jne 0x14001b030
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c280
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001b053
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001b053
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001b07c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c550
call fcn.140019d40
mov rbx, rax
test rax, rax
jne 0x14001b00f
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 0x14001b09a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c550
call fcn.14001af10
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001b118
call fcn.1400192c0
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b160
test rsi, rsi
je 0x14001b12e
call fcn.14001aff0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b150
mov edx, edi
call fcn.140019390
call fcn.14001aff0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001b170
call fcn.14001aff0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001aff0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b106
call fcn.140019d40
mov rbx, rax
jmp 0x14001b0ec
call fcn.140019d40
jmp 0x14001b12e

Function at 0x14001b180
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140019c90
mov ecx, dword [0x140022128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b1f0
test esi, esi
je 0x14001b1d0
call fcn.14001aff0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001b200
mov edx, esi
call fcn.140019390
call fcn.14001aff0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001aff0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001aff0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140019d40
mov rbx, rax
jmp 0x14001b1a1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001b1ba
Function at 0x14001c950
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rdi, [0x140022138]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call fcn.14001d5b0
mov rax, qword [rbx]
cmp dword [rax], 0xbab1f0ed
jne 0x14001c999
mov rax, qword [rbx]
mov eax, dword [rax + 4]
test eax, eax
jle 0x14001c999
mov rax, qword [rbx]
mov rcx, rdi
sub dword [rax + 4], 1
call fcn.14001d600
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.140018820
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.14001c550
lea rcx, [rbx + 0x18]
add rsp, 0x20
pop rbx
jmp fcn.14001c550

Function at 0x14001ce00
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14001cc20
test eax, eax
je 0x14001ce28
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.14001c280
test eax, eax
jne 0x14001ce51
lock add dword [rsi + 0xc], 1
cmp dword [rsi + 0xc], 0x7fffffff
je 0x14001ce68
mov rcx, rdi
call fcn.14001c550
mov edx, eax
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14001c950
lea r12, [rsi + 0x20]
mov rcx, r12
call fcn.14001c280
mov ebp, eax
test eax, eax
je 0x14001ce90
mov rcx, rdi
call fcn.14001c550
mov edx, ebp
jmp 0x14001ce53
mov eax, dword [rsi + 0x10]
sub dword [rsi + 0xc], eax
mov rcx, r12
mov dword [rsi + 0x10], 0
call fcn.14001c550
mov rcx, rdi
mov esi, eax
call fcn.14001c550
test esi, esi
mov edx, esi
cmove edx, eax
jmp 0x14001ce53

Function at 0x14001d130
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.14001c8e0
test eax, eax
jne 0x14001d1b0
mov rsi, qword [rbx]
mov edx, dword [rsi + 8]
test edx, edx
je 0x14001d180
lock sub dword [rsi + 8], 1
lea rcx, [rsi + 0x20]
call fcn.14001c550
lea rcx, [rsi + 0x18]
mov edi, eax
call fcn.14001c550
test edi, edi
cmove edi, eax
mov edx, edi
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.14001c950
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.14001c280
mov edx, eax
test eax, eax
jne 0x14001d16d
lock add dword [rsi + 0x10], 1
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x14001d1c0
mov rcx, rdi
call fcn.14001c550
mov edx, eax
jmp 0x14001d16d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + 0x28]
call fcn.14001df20
mov rcx, rdi
mov dword [rsp + 0x2c], eax
call fcn.14001c550
mov edx, dword [rsp + 0x2c]
test edx, edx
cmove edx, eax
jmp 0x14001d16d
Function at 0x14001ecd0
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 0x14001ed00
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x1400043f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004430]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001870
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]