joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016ce0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140016d60
Capabilities:
Parse pe header

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

Function at 0x140016e20
Capabilities:
Parse pe header

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

Function at 0x140017910
Capabilities:
Terminate process

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

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140017990
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 0x14001dc20
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1400390d0]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
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 + 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 0x14001dd3a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001dd12
add rax, 1
cmp rax, 0x6b
je 0x14001dd2f
cmp byte [rcx + rax], 0
jne 0x14001dd08
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x14001dd2f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14001dd20

Function at 0x14001e0d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140043c10], 1
je 0x14001e148
lea rdi, [0x140043c10]
mov rcx, rdi
call fcn.14001d9b0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001d350
mov esi, dword [0x140043c10]
test esi, esi
jne 0x14001e158
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400340f8], eax
cmp eax, 0xffffffff
je 0x140033866
mov dword [0x140043c10], 1
mov rcx, rbp
call fcn.14001d620
test rbx, rbx
je 0x14001e148
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001dd50
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001e128
mov ecx, 2
call qword [fcn.14001cb10]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001e128
call sub.msvcrt.dll_abort
nop
Function at 0x14001e180
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001de60
cmp qword [0x140046048], 0
mov rbx, rax
je 0x14001e298
test rax, rax
je 0x14001e298
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.140021600
cmp eax, 1
je 0x14001e2a6
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.14003386c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400340f8]
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 0x14001e2ac
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.14001dc20
nop
jmp fcn.14003386c

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

Disassembly:
sub rsp, 0x28
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e2e0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001e180
Function at 0x14001eaa0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x1400390d0]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001ebe8
cmp eax, 1
je 0x14001eb0d
call fcn.14001d9b0
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.14001d350
mov r13d, dword [rbx]
test r13d, r13d
je 0x14001eb30
cmp r13d, 1
jne 0x14001ebc0
mov rcx, r12
call fcn.14001d620
test rdi, rdi
je 0x14001eb0d
mov rcx, rdi
call fcn.14001dd50
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14001ec3b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001de30]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14001ec28
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call r13
test rax, rax
je 0x14001ec10
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call r13
test rax, rax
je 0x14001ebf8
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001eaf8
mov ecx, 2
call qword [fcn.14001cb10]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001eaf8
mov eax, 0x16
jmp 0x14001eb0f
call fcn.14001e180
test rax, rax
jne 0x14001eba9
jmp 0x14003389e
call fcn.14001e180
test rax, rax
jne 0x14001eb85
jmp 0x14003388f
call fcn.14001e180
test rax, rax
jne 0x14001eb5f
jmp 0x140033885
call fcn.140017960
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 0x14001eec0
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.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001ef38
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140021610
cmp esi, dword [rbx + 0x48]
jae 0x14001ef13
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001ef13
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140021650
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.14001e180
mov rbx, rax
jmp 0x14001eeed
Function at 0x14001ef50
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.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f050
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140021610
cmp esi, dword [rbx + 0x48]
jae 0x14001efd0
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.140021650
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 0x14001f05d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001f05d
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 0x14001ef9f
call fcn.14001e180
mov rbx, rax
jmp 0x14001ef8a
mov rcx, r13
call fcn.140021650
mov eax, 0xc
jmp 0x14001efbd

Function at 0x14001f0e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f108
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001e180
test rax, rax
jne 0x14001f0fa
add rsp, 0x28
ret

Function at 0x14001f170
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f198
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001e180
test rax, rax
jne 0x14001f18a
jmp 0x14001f18e

Function at 0x14001f2b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140043c18]
test eax, eax
jne 0x14001f2c8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f2f8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001f2be
test byte [rax + 0x40], 3
je 0x14001f2be
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001f2c0
call fcn.14001e180
test rax, rax
jne 0x14001f2de
jmp 0x14001f2be

Function at 0x14001f310
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f350
test ebx, ebx
jle 0x14001f340
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.14001e180
test rax, rax
jne 0x14001f32d
add rsp, 0x20
pop rbx
ret
Function at 0x14001f440
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f4b8
test byte [rbx + 0x40], 0xc
jne 0x14001f46f
mov eax, dword [0x140043c18]
test eax, eax
jne 0x14001f480
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001d350
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001f4a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001f4a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001f4cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001d620
call fcn.14001e180
mov rbx, rax
test rax, rax
jne 0x14001f45f
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 0x14001f4ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001d620
call fcn.14001f360
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001f570
call fcn.1400206e0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001f5a8
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f600
test esi, esi
je 0x14001f586
call fcn.14001f440
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001f5e0
mov edx, edi
call fcn.1400207b0
call fcn.14001f440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f5f0
call fcn.14001f440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001f440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001f545
call fcn.14001e180
mov rbx, rax
jmp 0x14001f545
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001f55e
call fcn.14001e180
jmp 0x14001f586
call fcn.14001e180
mov rbx, rax
jmp 0x14001f541
Function at 0x14001f500
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f4b8
test byte [rbx + 0x40], 0xc
jne 0x14001f46f
mov eax, dword [0x140043c18]
test eax, eax
jne 0x14001f480
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001d350
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001f4a3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001f4a3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001f4cc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001d620
call fcn.14001e180
mov rbx, rax
test rax, rax
jne 0x14001f45f
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 0x14001f4ea
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001d620
call fcn.14001f360
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001f570
call fcn.1400206e0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001f5a8
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f600
test esi, esi
je 0x14001f586
call fcn.14001f440
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001f5e0
mov edx, edi
call fcn.1400207b0
call fcn.14001f440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001f5f0
call fcn.14001f440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001f440
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001f545
call fcn.14001e180
mov rbx, rax
jmp 0x14001f545
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001f55e
call fcn.14001e180
jmp 0x14001f586
call fcn.14001e180
mov rbx, rax
jmp 0x14001f541

Function at 0x14001f610
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001e0d0
mov ecx, dword [0x1400340f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001f680
test esi, esi
je 0x14001f660
call fcn.14001f440
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001f690
mov edx, esi
call fcn.1400207b0
call fcn.14001f440
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001f440
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001f440
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001e180
mov rbx, rax
jmp 0x14001f631
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001f64a
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call fcn.140146000
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000caf0
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140004d60
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140004d94
cmp word [rcx], 0x5a4d
jne 0x140004d94
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140004d94
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004d94
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140004ca0
test eax, eax
jne 0x140004db0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140004d10
test rax, rax
je 0x140004da5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005559
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005460
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005400
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400058b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140472258]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140472254]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140005902
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400058fa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400059e9
inc ebx
add rax, 0x28
jmp 0x1400058da
mov rcx, r12
call fcn.1400060e1
mov rbp, rax
test rax, rax
jne 0x140005921
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140005850
movsxd rbx, ebx
mov rax, qword [0x140472258]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000618f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140472258]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140005983
mov rax, qword [0x140472258]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140005850
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400059e3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400059e3
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 [0x140472258]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400059e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005850
inc dword [0x140472254]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret