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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x1400c1048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x14002f9d9
cmp rdi, rax
je 0x14002f9d9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x14002f9d9
cmp rdi, rax
jne 0x14002f9c0
mov rdi, qword [0x1400c1050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x14002f9f3
mov ecx, 0x1f
call fcn.140082d90
jmp 0x14002fa1a
cmp dword [rdi], 0
je 0x14002fa01
mov byte [0x1400ec478], 1
jmp 0x14002fa1a
mov dword [rdi], 1
mov rcx, qword [0x1400c1068]
mov rdx, qword [0x1400c1070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14002fa3a
mov rcx, qword [0x1400c1058]
mov rdx, qword [0x1400c1060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x14002fa43
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [str._y_f_]
mov rax, qword [rax]
test rax, rax
je 0x14002fa62
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x14225c008]
call fcn.140081760
lea rcx, [0x140081cf0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x1400c1040]
mov qword [rcx], rax
lea rcx, [0x14002fbb0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140081750
movsxd rdi, dword [0x1400ec464]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x14002faf2
mov ebx, edi
mov r14, qword [0x1400ec468]
xor r15d, r15d
nop word [rax + rax]
mov rcx, qword [r14 + r15*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r15
cmp rbx, r15
jne 0x14002fac0
jmp 0x14002faf4
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x1400ec468], rsi
call fcn.1400815a0
mov rax, qword [0x1400ec470]
mov rcx, qword [0x1400c1018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x1400ec464]
mov rdx, qword [0x1400ec468]
mov r8, qword [0x1400ec470]
call fcn.140026930
mov dword [0x1400ec47c], eax
cmp dword [0x1400ec45c], 0
je 0x14002fb64
cmp byte [0x1400ec478], 0
jne 0x14002fb58
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400ec47c]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x1400301f0
Capabilities:
Get thread local storage value
Print debug messages
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r15, qword [0x1400c1160]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xb0], rax
call fcn.140031ae0
mov ecx, dword [0x1400ec010]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140030337
call fcn.140032070
mov rsi, rax
xor eax, eax
cmp qword [0x1400d46d8], 0
je 0x140030337
test rsi, rsi
je 0x140030337
mov dword [rsi + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsi + 0x70], eax
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], 0xffffffffffffffff
lea rcx, [rsi + 0x68]
call fcn.140083330
cmp eax, 1
je 0x140030365
mov qword [rsi + 0x68], 0xffffffffffffffff
mov dword [rsi + 0xb8], 0
mov rdi, rsi
add rdi, 0x28
mov qword [rsi + 0x28], 0
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r14, rax
call r12
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, r14
mov r8, rax
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140030360
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rsi + 0xc0], eax
mov dword [rsi + 0xbc], 0
mov eax, dword [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov dword [rsi + 0x40], eax
mov ecx, dword [0x1400ec010]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, eax
mov rax, rsi
test ecx, ecx
je 0x140030360
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x14003035b
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140083390
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
movups xmm0, xmmword [0x1400c114b]
movups xmmword [rsp + 0x9b], xmm0
movaps xmm0, xmmword [0x1400c1140]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [0x1400c1130]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x1400c1120]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x1400c1110]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x1400c1100]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movaps xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x67]
mov ecx, eax
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
mov eax, 0x27
mov rcx, rax
inc rax
cmp rcx, 0x69
ja 0x1400303f3
cmp byte [rsp + rcx + 0x40], 0
jne 0x1400303e0
cmp rcx, 0x69
ja 0x140030400
mov word [rsp + rax + 0x3f], 0xa
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140030f60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
call fcn.1400301f0
mov rdi, rax
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
call fcn.140030c80
test byte [rdi + 0x40], 0x30
jne 0x140030f9c
add rdi, 0xd0
mov rcx, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
mov ecx, dword [0x1400ec010]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140031037
mov rdi, rax
cmp qword [rax + 0x28], 0
jne 0x140030fde
mov dword [rdi], 0xdeadbeef
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140030fd0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], 0
mov rsi, qword [rdi + 8]
jmp 0x140031021
mov rsi, qword [rdi + 8]
mov rcx, qword [rdi + 0x30]
mov dword [rdi + 0xbc], 1
test rcx, rcx
je 0x140030ffb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], 0
test byte [rdi + 0x44], 4
je 0x140031037
mov dword [rdi], 0xdeadbeef
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x28], 0
mov rcx, rdi
call fcn.140031040
mov ecx, dword [0x1400ec010]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
int3

Function at 0x140031ae0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp dword [0x1400ec49c], 1
jne 0x140031af6
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400ec018]
call fcn.140083340
mov rcx, qword [0x1400ec4c0]
test rcx, rcx
je 0x140031b33
lea rax, [0x1400ec49c]
nop word cs:[rax + rax]
mov rsi, rcx
cmp qword [rcx], rax
je 0x140031b7d
mov rcx, qword [rsi + 0x18]
test rcx, rcx
jne 0x140031b20
jmp 0x140031b35
xor esi, esi
mov ecx, 1
mov edx, 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
mov rdi, rax
lea rax, [0x1400ec49c]
mov qword [rdi], rax
mov dword [rdi + 0x10], 1
lea rax, [rsi + 0x18]
test rsi, rsi
lea rcx, [0x1400ec4c0]
cmovne rcx, rax
mov qword [rcx], rdi
lea rcx, [rdi + 8]
xor edx, edx
call fcn.140083110
mov rsi, rdi
jmp 0x140031b80
inc dword [rsi + 0x10]
lea rcx, [0x1400ec018]
call fcn.140083380
lea rdi, [rsi + 8]
mov rcx, rdi
call fcn.140082e90
mov eax, dword [0x1400ec49c]
cmp eax, 1
je 0x140031bec
test eax, eax
jne 0x140031bc4
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400ec010], eax
cmp eax, 0xffffffff
je 0x140031c02
mov dword [0x1400ec49c], 1
jmp 0x140031bec
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [0x1400ec49c]
lea r8, [0x1400ec49c]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.1400836c0
mov rcx, rdi
call fcn.140083000
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140030810
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140032120
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rdi, qword [0x1400c1160]
mov rax, qword [rdi]
xor rax, rsp
mov qword [rsp + 0x90], rax
test rcx, rcx
je 0x140032157
mov rsi, rcx
call fcn.140083330
cmp eax, 1
je 0x140032179
mov qword [rsi], 0xffffffffffffffff
mov rax, qword [rsp + 0x90]
xor rax, rsp
mov rcx, qword [rdi]
cmp rcx, rax
jne 0x140032174
add rsp, 0x98
pop rdi
pop rsi
ret
call fcn.140083390
movups xmm0, xmmword [0x1400c114b]
movups xmmword [rsp + 0x7b], xmm0
movaps xmm0, xmmword [0x1400c1140]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x1400c1130]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x1400c1120]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400c1110]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x1400c1100]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movaps xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov ecx, eax
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
mov eax, 0x27
nop dword [rax + rax]
mov rcx, rax
inc rax
cmp rcx, 0x69
ja 0x140032203
cmp byte [rsp + rcx + 0x20], 0
jne 0x1400321f0
cmp rcx, 0x69
ja 0x140032210
mov word [rsp + rax + 0x1f], 0xa
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140032230
Capabilities:
Print debug messages

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r15, qword [0x1400c1160]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov edi, 3
test rcx, rcx
je 0x1400322ee
mov rsi, rdx
mov rbx, rcx
lea rcx, section..data
call fcn.140082e90
mov rcx, qword [0x1400ec4a8]
test rcx, rcx
je 0x1400322e2
cmp rcx, 1
jne 0x140032297
mov rax, qword [0x1400ec4b0]
cmp qword [rax + 8], rbx
jne 0x1400322e2
jmp 0x140032319
dec rcx
mov rax, qword [0x1400ec4b0]
xor edx, edx
jmp 0x1400322bb
inc r8
mov rdx, r8
cmp rdx, rcx
ja 0x1400322e2
lea r8, [rdx + rcx]
shr r8, 1
mov r9, r8
shl r9, 4
cmp qword [rax + r9 + 8], rbx
je 0x140032316
jbe 0x1400322b0
cmp r8, rdx
je 0x1400322e2
dec r8
mov rcx, r8
cmp rdx, rcx
jbe 0x1400322bb
lea rcx, section..data
call fcn.140083000
mov rax, qword [rsp + 0xa8]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x1400323f2
mov eax, edi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
add rax, r9
mov r14, qword [rax]
lea rcx, section..data
call fcn.140083000
test r14, r14
je 0x1400322ee
mov rcx, qword [r14 + 0x28]
test rcx, rcx
je 0x1400322ee
lea rdx, [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400322ee
mov edi, 0x16
test byte [r14 + 0x44], 4
jne 0x1400322ee
call fcn.1400301f0
test rax, rax
je 0x140032364
mov rax, qword [rax + 0x1d8]
jmp 0x140032366
xor eax, eax
mov edi, 0x24
cmp rax, rbx
je 0x1400322ee
cmp dword [r14 + 0xbc], 0
mov rcx, qword [r14 + 0x28]
je 0x14003238c
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14003239b
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x1400323b0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r14 + 0x30], 0
test rsi, rsi
je 0x1400323c4
mov rax, qword [r14 + 8]
mov qword [rsi], rax
lea rcx, [r14 + 0x38]
call fcn.1400831a0
lea rcx, [r14 + 0x68]
call fcn.140083330
cmp eax, 1
je 0x1400323f7
mov qword [r14 + 0x68], 0xffffffffffffffff
mov rcx, r14
call fcn.140031040
xor edi, edi
jmp 0x1400322ee
call fcn.140083390
movups xmm0, xmmword [0x1400c114b]
movups xmmword [rsp + 0x8b], xmm0
movaps xmm0, xmmword [0x1400c1140]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x1400c1130]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x1400c1120]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x1400c1110]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x1400c1100]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [str.Error_cleaning_up_spin_keys_for_thread]
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x57]
mov ecx, eax
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
mov eax, 0x27
mov rcx, rax
inc rax
cmp rcx, 0x69
ja 0x140032482
cmp byte [rsp + rcx + 0x30], 0
jne 0x14003246f
cmp rcx, 0x69
ja 0x14003248f
mov word [rsp + rax + 0x2f], 0xa
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x140081c20
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.14008bf80
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

Function at 0x140083390
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, str._stack_smashing_detected_:_terminated_n
mov ecx, 2
mov r8d, 0x2c
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400833c0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
int3

Function at 0x140083b50
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
lea rcx, [0x1400ec128]
call fcn.140083340
mov rax, qword [rsi]
cmp dword [rax], 0xbab1f0ed
jne 0x140083b8f
mov rax, qword [rsi]
cmp dword [rax + 4], 0
jle 0x140083b8f
mov rax, qword [rsi]
dec dword [rax + 4]
lea rcx, [0x1400ec128]
add rsp, 0x30
pop rsi
jmp fcn.140083380
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 rdx, str.Assertion_failed:___s___file__s__line__d_n
lea r8, str.___rwlock_t__rwl___valid__LIFE_RWLOCK______rwlock_t__rwl___busy___0_
lea r9, str..._mingw_w64_mingw_w64_libraries_winpthreads_src_rwlock.c
mov rcx, rax
call fcn.1400836c0
mov ecx, 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x140087990
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rdi
lea rcx, str.libcabi:
mov edx, 0xb
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov ecx, 2
call rdi
mov r8, qword [rsp + 0x20]
mov rcx, rax
mov rdx, rsi
call fcn.14008bf80
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fputc
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x14008d730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x1400c1008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14008d79c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14008d79c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14008d79c
movzx edx, word [rax + 6]
test edx, edx
je 0x14008d79c
sub rcx, qword [0x1400c1008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x14008d788
add rax, 0x28
dec edx
je 0x14008d79c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x14008d780
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x14008d780
jmp 0x14008d79e
xor eax, eax
ret

Function at 0x14008d7a0
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x1400c1008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14008d7d5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14008d7d5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x14008d7d5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x14008d850
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14008d87c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14008d87c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14008d87e
xor eax, eax
ret
Function at 0x14008f3a0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm12
movaps xmmword [rsp + 0x70], xmm11
movaps xmmword [rsp + 0x60], xmm10
movaps xmmword [rsp + 0x50], xmm9
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm7
movaps xmmword [rsp + 0x20], xmm6
mov rdi, rdx
mov rsi, rcx
cmp byte [0x1422537e3], 1
jne 0x14008f3f3
cmp byte [0x1422537e2], 0
jne 0x14008f412
jmp 0x14008f444
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x1422537e3], 1
test rax, rax
setne byte [0x1422537e2]
je 0x14008f444
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
lea rdx, str.libunwind:___unw_init_local_cursor_p__context_p__n
mov rcx, rax
mov r8, rsi
mov r9, rdi
call fcn.1400836c0
mov ecx, 2
call rbx
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
lea rax, [0x1400c8590]
mov qword [rsi], rax
lea rax, [0x142252e39]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x580]
lea rcx, [rsi + 0xb0]
xorps xmm0, xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x50], xmm0
movaps xmmword [rsi + 0x60], xmm0
movaps xmmword [rsi + 0x70], xmm0
movaps xmmword [rsi + 0x80], xmm0
movaps xmmword [rsi + 0x90], xmm0
mov qword [rsi + 0xa0], 0
movaps xmmword [rsi + 0x580], xmm0
movaps xmmword [rsi + 0x590], xmm0
movaps xmmword [rsi + 0x5a0], xmm0
movaps xmmword [rsi + 0x5b0], xmm0
movaps xmmword [rsi + 0x5c0], xmm0
movaps xmmword [rsi + 0x5d0], xmm0
movaps xmmword [rsi + 0x5e0], xmm0
movaps xmmword [rsi + 0x5f0], xmm0
movaps xmmword [rsi + 0x600], xmm0
movaps xmmword [rsi + 0x610], xmm0
movaps xmmword [rsi + 0x620], xmm0
movaps xmmword [rsi + 0x630], xmm0
movaps xmmword [rsi + 0x640], xmm0
movups xmmword [rsi + 0x649], xmm0
mov qword [rsi + 0x80], rcx
mov qword [rsi + 0x98], rax
mov rbx, qword [rdi]
mov r14, qword [rdi + 8]
mov r15, qword [rdi + 0x80]
movups xmm6, xmmword [rdi + 0x10]
movdqu xmm0, xmmword [rdi + 0x30]
pshufd xmm7, xmm0, 0x4e
movdqu xmm0, xmmword [rdi + 0x20]
pshufd xmm8, xmm0, 0x4e
movups xmm9, xmmword [rdi + 0x40]
movups xmm10, xmmword [rdi + 0x50]
movups xmm11, xmmword [rdi + 0x60]
movups xmm12, xmmword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov dword [rsi + 0xe0], 0x10000b
mov qword [rsi + 0x128], rbx
movaps xmmword [rsi + 0x130], xmm6
mov qword [rsi + 0x140], r14
movdqu xmmword [rsi + 0x148], xmm7
movdqu xmmword [rsi + 0x158], xmm8
movups xmmword [rsi + 0x168], xmm9
movups xmmword [rsi + 0x178], xmm10
movups xmmword [rsi + 0x188], xmm11
movups xmmword [rsi + 0x198], xmm12
mov qword [rsi + 0x1a8], r15
mov rax, qword [rsi]
mov rcx, rsi
xor edx, edx
call qword [rax + 0x68]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
movaps xmm9, xmmword [rsp + 0x50]
movaps xmm10, xmmword [rsp + 0x60]
movaps xmm11, xmmword [rsp + 0x70]
movaps xmm12, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14008f5f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1422537e3], 1
jne 0x14008f60c
cmp byte [0x1422537e2], 0
setne al
add rsp, 0x28
ret
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
setne al
setne byte [0x1422537e2]
mov byte [0x1422537e3], 1
add rsp, 0x28
ret

Function at 0x14008f640
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov edi, edx
mov rbx, rcx
cmp byte [0x1422537e3], 1
jne 0x14008f665
cmp byte [0x1422537e2], 0
jne 0x14008f684
jmp 0x14008f6bd
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x1422537e3], 1
test rax, rax
setne byte [0x1422537e2]
je 0x14008f6bd
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rsi
lea rdx, str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
mov rcx, rax
mov r8, rbx
mov r9d, edi
call fcn.1400836c0
mov ecx, 2
call r14
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rax, qword [rbx]
mov rcx, rbx
mov edx, edi
call qword [rax + 0x10]
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x14008f6e3
mov rax, qword [rbx]
mov rcx, rbx
mov edx, edi
call qword [rax + 0x18]
mov qword [rsi], rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14008f6f0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rbx, r8
mov edi, edx
mov rsi, rcx
cmp byte [0x1422537e3], 1
jne 0x14008f716
cmp byte [0x1422537e2], 0
jne 0x14008f735
jmp 0x14008f76e
lea rcx, str.LIBUNWIND_PRINT_APIS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [0x1422537e3], 1
test rax, rax
setne byte [0x1422537e2]
je 0x14008f76e
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r14
mov qword [rsp + 0x20], rbx
lea rdx, str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_llx__n
mov rcx, rax
mov r8, rsi
mov r9d, edi
call fcn.1400836c0
mov ecx, 2
call r14
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
mov rax, qword [rsi]
mov rcx, rsi
mov edx, edi
call qword [rax + 0x10]
mov ebp, 0xffffe672
test al, al
je 0x14008f7df
mov rax, qword [rsi]
mov rcx, rsi
mov edx, edi
mov r8, rbx
call qword [rax + 0x20]
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x14008f7df
mov rax, qword [rsi]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [rax + 0x48]
mov rax, qword [rsi]
xor ebp, ebp
mov rcx, rsi
xor edx, edx
call qword [rax + 0x68]
cmp qword [rsp + 0x48], 0
je 0x14008f7df
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xfffffffe
call qword [rax + 0x18]
add rax, qword [rsp + 0x48]
mov r9, qword [rsi]
mov rcx, rsi
mov edx, 0xfffffffe
mov r8, rax
call qword [r9 + 0x20]
mov eax, ebp
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret