joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140100454
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140100551
xor edx, edx
mov dword [rsi + 0x358], 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov edi, eax
test eax, eax
js 0x140100546
lea rdx, [rsp + 0x20]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
test eax, eax
jne 0x14010053c
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x140100511
inc eax
movsxd rcx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140100506
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, dword [rsp + 0x34]
jne 0x140100506
movsxd rdx, dword [rsp + 0x34]
mov rcx, rsi
mov byte [rdx + rbx], 0
mov rdx, rbx
call fcn.140100570
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14010053c
call fcn.1400f2bf8
mov ecx, 2
cmp eax, ecx
jge 0x14010053c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x34]
lea rdx, str.hwloc_pci:_Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
mov r8, rbx
call fcn.14000f480
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x140100551
mov rdx, rbx
mov rcx, rsi
call fcn.140100570
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011ae70
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401016f8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov dword [rcx + 0x2f0], 1
mov rbx, rcx
cmp dword [rcx + 0xa4], 1
jne 0x14010171f
and dword [rcx + 0x2f0], 0
lea rcx, str.HWLOC_GROUPING
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140101744
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jne 0x140101744
and dword [rbx + 0x2f0], eax
cmp dword [rbx + 0x2f0], 0
je 0x14010180f
and dword [rbx + 0x310], 0
lea rcx, str.HWLOC_GROUPING_ACCURACY
and dword [rbx + 0x2fc], 0
mov dword [rbx + 0x300], 0x3c23d70a
mov dword [rbx + 0x304], 0x3ca3d70a
mov dword [rbx + 0x308], 0x3d4ccccd
mov dword [rbx + 0x30c], 0x3dcccccd
mov dword [rbx + 0x2f8], 5
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
jne 0x1401017b2
mov dword [rbx + 0x2f8], 1
jmp 0x1401017e7
lea rdx, [0x14013e9a8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1401017e7
mov rcx, rdi
mov dword [rbx + 0x2f8], 1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movss dword [rbx + 0x2fc], xmm1
and dword [rbx + 0x2f4], 0
lea rcx, str.HWLOC_GROUPING_VERBOSE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14010180f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbx + 0x2f4], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140102774
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
lea rcx, str.HWLOC_MEMTIERS_GUESS
mov esi, edx
mov rbp, r8
xor edi, edi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
test rax, rax
je 0x140102806
lea rdx, str.none
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x14010290b
lea rdx, [0x14013bd1c]
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
neg eax
lea rdx, str.spm_is_hbm
mov rcx, r14
sbb ebx, ebx
not ebx
call sub.VCRUNTIME140.dll_strstr
mov edi, ebx
lea rdx, str.node0_is_dram
or edi, 2
mov rcx, r14
test rax, rax
cmove edi, ebx
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x140102806
or edi, 1
cmp esi, 1
je 0x14010290b
xor edx, edx
xor r11d, r11d
and qword [rsp + 0x28], rdx
xor r9d, r9d
and qword [rsp + 0x20], rdx
xor r8d, r8d
test esi, esi
je 0x1401028a7
lea r10, [rbp + 0x28]
mov ecx, dword [r10]
test ecx, ecx
je 0x140102852
sub ecx, 1
je 0x140102886
sub ecx, 1
je 0x140102886
cmp ecx, 6
jne 0x140102869
lea r9, [r8 + r8*2]
shl r9, 4
add r9, rbp
inc r11d
jmp 0x140102869
cmp edx, 2
jae 0x140102867
lea rcx, [r8 + r8*2]
shl rcx, 4
add rcx, rbp
mov qword [rsp + rdx*8 + 0x20], rcx
inc edx
inc r8d
add r10, 0x30
cmp r8d, esi
jb 0x14010282c
cmp edx, 2
jne 0x14010288d
test r11d, r11d
jne 0x1401028a7
mov rdx, qword [rsp + 0x28]
jmp 0x14010289a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
cmp edx, 1
jne 0x1401028a7
cmp r11d, edx
jne 0x1401028a7
mov rdx, r9
mov rcx, qword [rsp + 0x20]
mov r8d, edi
call fcn.140102704
test dil, 2
je 0x1401028cd
test esi, esi
je 0x1401028cd
lea rax, [rbp + 0x28]
mov rcx, rsi
cmp dword [rax], 8
jne 0x1401028c3
mov dword [rax], 1
add rax, 0x30
sub rcx, 1
jne 0x1401028b8
test dil, 1
je 0x14010290b
xor ebx, ebx
test esi, esi
je 0x14010290b
mov rdi, rbp
mov rcx, qword [rdi]
xor edx, edx
call fcn.1400fd554
test eax, eax
je 0x1401028f0
cmp dword [rdi + 0x28], 0
je 0x1401028fc
inc ebx
add rdi, 0x30
cmp ebx, esi
jb 0x1401028dc
jmp 0x14010290b
lea rcx, [rbx + rbx*2]
add rcx, rcx
mov dword [rbp + rcx*8 + 0x28], 2
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140102f58
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ebp, edx
lea rcx, str.HWLOC_MEMTIERS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x140102fc0
lea rdx, str.none
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140103030
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140101f18
mov rbx, rax
test rax, rax
je 0x140102fc0
mov edi, dword [rsp + 0x40]
mov ebp, 1
jmp 0x140102ffe
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140102140
mov rbx, rax
test rax, rax
je 0x140103030
mov edi, dword [rsp + 0x40]
mov r8, rax
mov edx, edi
mov rcx, rsi
call fcn.140102774
mov edx, edi
lea r9, [0x140101d48]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov r9d, ebp
mov r8, rbx
mov edx, edi
mov rcx, rsi
call fcn.140101d94
test edi, edi
je 0x140103027
mov rsi, rbx
mov rcx, qword [rsi]
call fcn.1400fd1fc
lea rsi, [rsi + 0x30]
sub rdi, 1
jne 0x140103015
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1401048a4
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [0x140159ba8]
mov edx, 1
mov eax, dword [rsp + 0x40]
cmp ecx, edx
jbe 0x1401048ef
mov rax, qword [0x1403ea3b8]
test rax, rax
je 0x1401048ea
sub cx, dx
call rax
movzx ecx, ax
mov eax, dword [0x140159ba8]
shl eax, 6
add eax, 0xffffffc0
add eax, ecx
jmp 0x1401048ef
mov eax, ecx
shl eax, 6
add rsp, 0x58
ret

Function at 0x14010531c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
jmp qword [sym.imp.KERNEL32.dll_VirtualAlloc]

Function at 0x140105774
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1401058a7
lea rdx, str.GetActiveProcessorGroupCount
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetActiveProcessorCount
mov rcx, rbx
mov qword [0x1403ea3b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumber
mov rcx, rbx
mov qword [0x1403ea3b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetCurrentProcessorNumberEx
mov rcx, rbx
mov qword [0x1403ea3c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetThreadGroupAffinity
mov rcx, rbx
mov qword [0x1403ea3c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetThreadGroupAffinity
mov rcx, rbx
mov qword [0x1403ea3d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNode
mov rcx, rbx
mov qword [0x1403ea3e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetNumaAvailableMemoryNodeEx
mov rcx, rbx
mov qword [0x1403ea3e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetLogicalProcessorInformationEx
mov rcx, rbx
mov qword [0x1403ea3f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.K32QueryWorkingSetEx
mov rcx, rbx
mov qword [0x1403ea3d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualAllocExNuma
mov rcx, rbx
mov qword [0x1403ea408], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualFreeEx
mov rcx, rbx
mov qword [0x1403ea3f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403ea400], rax
cmp qword [0x1403ea408], 0
jne 0x1401058da
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1401058da
lea rdx, str.QueryWorkingSetEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403ea408], rax
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14046aae0], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140108fe8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140159cc0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r12, rdx
mov r13, r8
lea rdx, [0x14013ff98]
mov rbx, rcx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
lea rdi, str._dev_stdin
lea rdx, [0x14013ffac]
cmovne rdi, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
je 0x140109119
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov esi, 0x1000
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x140109075
mov eax, 0x8000
test word [rsp + 0x26], ax
je 0x140109075
mov eax, dword [rsp + 0x34]
inc eax
movsxd rsi, eax
lea rcx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140109110
mov r9, rbp
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r14, rax
mov byte [rax + rdi], 0
cmp rax, rsi
jne 0x1401090ee
add rsi, rsi
mov rcx, rdi
lea rdx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r15, rax
test rax, rax
je 0x140109107
mov rbx, rsi
lea rcx, [rax + r14]
shr rbx, 1
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
mov byte [rdi + r14], 0
cmp rax, rbx
je 0x1401090ab
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rax, [r14 + 1]
mov qword [r12], rdi
mov qword [r13], rax
xor eax, eax
jmp 0x14010911c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
or eax, 0xffffffff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14011ae70
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14010c848
Capabilities:
Encode data using xor

Disassembly:
sub rdx, rcx
mov r8d, 0x80
mov rax, qword [rdx + rcx]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub r8, 1
jne 0x14010c851
ret
Function at 0x140115628
Capabilities:
Hash data using sha512

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x40
lea rdx, [0x140140570]
mov rbx, rcx
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movups xmmword [rbx + 0x40], xmm0
and qword [rbx + 0xd0], 0
add rsp, 0x20
pop rbx
ret
Function at 0x14011bac0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011bb0a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011bb0a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011bb0a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011bb0a
cmp dword [rcx + 0x84], 0xe
jbe 0x14011bb0a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011bb0c
xor al, al
add rsp, 0x28
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
test al, 0x17
in eax, dx
jg 0x140020a05
mov bh, 0xa5
invalid
invalid
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005430]
mov dword [rax], 1
mov rax, qword [0x140005440]
mov dword [rax], 1
mov rax, qword [0x140005450]
mov dword [rax], 1
mov rax, qword [0x1400053e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001af0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400027c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140008108]
test eax, eax
je 0x14000285a
lea rax, [0x1400080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140008110]
mov qword [rbp - 8], rax
jmp 0x14000283e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002832
cmp qword [rbp - 0x10], 0
je 0x140002832
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400027f8
lea rax, [0x1400080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000285b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013480
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112a8
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400147d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400147f0
xor al, al
jmp 0x140014871
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014803
xor al, al
jmp 0x140014871
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001482d
xor al, al
jmp 0x140014871
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014841
xor al, al
jmp 0x140014871
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014853
xor al, al
jmp 0x140014871
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001486f
xor al, al
jmp 0x140014871
mov al, 1
add rsp, 0x38
ret
Function at 0x140011370
Capabilities:
Execute command

Disassembly:
jmp 0x140011bf0
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140022012]
call fcn.1400113b1
lea rcx, [0x14001ac24]
call qword [sym.imp.ucrtbased.dll_system]
mov dword [rbp + 4], 0
jmp 0x140011c29
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xa
jge 0x140011cd3
mov dword [rbp + 0x24], 0
jmp 0x140011c44
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xf
jge 0x140011cc2
mov eax, dword [0x14001d22c]
cmp dword [rbp + 4], eax
jne 0x140011c6e
mov eax, dword [0x14001d7a0]
cmp dword [rbp + 0x24], eax
jne 0x140011c6e
lea rcx, [0x14001ac28]
call fcn.1400111b3
jmp 0x140011cbd
mov eax, dword [0x14001d204]
cmp dword [rbp + 4], eax
jne 0x140011c92
mov eax, dword [0x14001d228]
cmp dword [rbp + 0x24], eax
jne 0x140011c92
lea rcx, [0x14001ac2c]
call fcn.1400111b3
jmp 0x140011cbd
movsxd rax, dword [rbp + 4]
imul rax, rax, 0xf
lea rcx, [0x14001d7c0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rbp + 0x24]
movsx eax, byte [rax + rcx]
mov edx, eax
lea rcx, [0x14001ac30]
call fcn.1400111b3
jmp 0x140011c3c
lea rcx, [0x14001ac34]
call fcn.1400111b3
jmp 0x140011c21
lea rcx, str.HP:
call fcn.1400111b3
mov dword [rbp + 4], 0
jmp 0x140011cf0
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [section..data]
cmp dword [rbp + 4], eax
jge 0x140011d09
lea rcx, [0x14001ac40]
call fcn.1400111b3
jmp 0x140011ce8
lea rcx, [0x14001ac34]
call fcn.1400111b3
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001139d
Capabilities:
Terminate process

Disassembly:
jmp 0x140011830
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x140022012]
call fcn.1400113b1
mov eax, dword [0x14001d228]
cmp dword [0x14001d7a0], eax
jne 0x140011897
mov eax, dword [0x14001d204]
cmp dword [0x14001d22c], eax
jne 0x140011897
mov eax, dword [section..data]
dec eax
mov dword [section..data], eax
cmp dword [section..data], 0
jg 0x140011892
lea rcx, str.Game_Over__n
call fcn.1400111b3
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
call fcn.140011299
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1800012f0
Capabilities:
Terminate thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x180027040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, qword [rcx]
test r14, r14
je 0x1800013cf
mov rsi, rcx
lea rdi, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x180001389
lea rcx, [method.ISocketInterfaceBase.virtual_24]
xor r8d, r8d
call r13
mov rcx, qword [r14 + 8]
mov edx, 0xffffffff
call rbp
mov r14, qword [rsi]
mov rax, qword [r14 + 0x18]
mov qword [rsi], rax
mov rcx, qword [r14 + 8]
call r12
mov rcx, r14
call fcn.18001b3cc
mov r14, qword [rsi]
test r14, r14
je 0x1800013cf
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rsp + 0x20], xmm0
mov ecx, 2
mov rdx, rdi
xor r8d, r8d
mov r9d, 0xffffffff
call r15
mov rcx, qword [r14 + 0x10]
call r12
mfence
mov eax, dword [0x1800275c8]
mov rdx, qword [r14 + 8]
test eax, eax
je 0x180001350
mov rcx, rdx
xor edx, edx
call rbx
jmp 0x180001368
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001c0b0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000d190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000d205
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000d205
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000d1f5
nop
cmp rbx, rcx
jae 0x14000d205
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000d1e0
cmp rbx, rcx
jae 0x14000d205
cmp word [rbx], 0
je 0x14000d205
mov rax, rbx
jmp 0x14000d207
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret