joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1560
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400a15ac
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x1400a15a3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x1400a15ae
add rax, 0x28
cmp rax, r9
jne 0x1400a1590
xor eax, eax
ret

Function at 0x1400a15b0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400a1640
mov rdx, qword [0x14017eb60]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400a162e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400a162e
cmp word [rax + 0x18], 0x20b
jne 0x1400a162e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400a1640
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400a1619
add r12, 0x28
cmp r12, rsi
je 0x1400a1640
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400a1610
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x1400a1650
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14017eb60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400a1670
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400a1678
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400a1670
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400a16c5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400a16bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400a1670
add rax, 0x28
cmp rax, r9
jne 0x1400a16a8
xor eax, eax
ret

Function at 0x1400a16d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14017eb60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400a16f0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400a16f8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400a16f0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400a1710
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14017eb60]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400a1730
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400a1738
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400a1730
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400a1778
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400a176f
test rcx, rcx
je 0x1400a1730
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400a1760
xor eax, eax
ret
Function at 0x1400a1780
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14017eb60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400a17a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400a17a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1400a17c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14017eb60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400a17e0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400a17e8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400a17e0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400a17e0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400a1824
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400a1838
add rax, 0x28
cmp r9, rax
jne 0x1400a1810
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x1400a1850
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14017eb60]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400a1872
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400a1880
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400a1872
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400a1872
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400a1872
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400a18cd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400a18e0
add rdx, 0x28
cmp r10, rdx
jne 0x1400a18b8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400a18ef
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400a18ff
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400a18d6
test ecx, ecx
jg 0x1400a18e8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x1400a3140
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14017ebe0]
mov rax, qword [rsi]
test rax, rax
je 0x1400a31d0
cmp qword [rax + 0x30], 0
jne 0x1400a31f0
lea rbx, [0x1400c1b48]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1400a31a0
cmp qword [rax + 0x30], 0
jne 0x1400a31c0
lea rdx, [0x1400c1b48]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400a3182
test rax, rax
jne 0x1400a31c0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400a3190
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400a3160
test rax, rax
jne 0x1400a31f0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400a316b
Function at 0x1400a3200
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
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 + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
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 + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 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 0x1400a3312
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400a32ea
add rax, 1
cmp rax, 0x6b
je 0x1400a3307
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400a32e0
cmp edx, 0x6a
je 0x1400a3307
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400a32fb
Function at 0x1400a6dc0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14017ebe0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x1400a6e90
cmp qword [rax + 0x60], 0
jne 0x1400a6eb0
lea rcx, [0x1400c1b38]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x1400a6ec0
cmp qword [rax + 0x1d8], r12
jne 0x1400a6ec0
test byte [rax + 0x40], 0xc
jne 0x1400a6ec0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x1400a6ec0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x1400a6ec0
mov rax, qword [rbx]
test rax, rax
je 0x1400a6f20
cmp qword [rax + 0x60], 0
jne 0x1400a6f40
lea rcx, [0x1400c1b38]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x1400a6f50
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400a6f58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400a6deb
test rax, rax
jne 0x1400a6eb0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400a6df6
mov rax, qword [rbx]
test rax, rax
je 0x1400a6ef0
cmp qword [rax + 0x60], 0
jne 0x1400a6f10
lea rcx, [0x1400c1b38]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x1400a6ecf
test rax, rax
jne 0x1400a6f10
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400a6eda
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400a6e5a
test rax, rax
jne 0x1400a6f40
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400a6e65
xor eax, eax
jmp 0x1400a6ee4
mov eax, 0x16
jmp 0x1400a6ee4
Function at 0x1400a71d0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x1400a7439
test rdi, rdi
je 0x1400a720a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x1400a7277
add ebx, 1
cmp ebx, 1
je 0x1400a7380
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x1400a7245
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400a747f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x1400a7422
xor edx, edx
test rsi, rsi
je 0x1400a72ef
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x1400a7450
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a73e0
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400a73b0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x1400a7390
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x1400a7245
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a735f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x1400a7335
mov edx, 0xf
cmp eax, 0xe
jg 0x1400a7335
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x1400a7335
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x1400a73f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.pthread_spin_destroy
cmp eax, 1
je 0x1400a747f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x1400a742e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x1400a7470
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x1400a72ef
mov rcx, r12
call sym.push_pthread_mem.part.0
mov eax, 0xb
jmp 0x1400a743e
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
Function at 0x1400a7ec0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400a7ee0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1400a7f28
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400a7ed4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400a7f15

Function at 0x1400a7f50
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x140210b40]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400a8008
mov rdx, qword [0x140210a80]
lea rcx, [0x140210a80]
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400a7fd8
cmp rdx, rcx
jne 0x1400a7fba
mov qword [rdx], rax
cmp rax, rcx
je 0x1400a7fbf
nop dword [rax]
test rax, rax
je 0x1400a7fea
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x1400a7fa8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x1400a7fea
mov rdx, rax
jmp 0x1400a7fb6
lea rcx, [0x140210b80]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400a8026
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x1400a7fea
Function at 0x140006b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140006bb4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140006ba0
ret
Function at 0x14000e0d0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14000e195
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000e195
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14000e1ae
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14000e185
cmp byte [rcx], 0x5c
jne 0x14000e17e
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14000e17e
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000e16c
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14000e17b
test r8b, 0x10
jne 0x14000e17e
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14000e17e
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140009ef0
test edi, edi
jne 0x14000e0f0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140009ee0
int3

Function at 0x1400100a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400100da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400100df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140010128
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400135a0]
cmp byte [rcx + rax], 0
je 0x140010128
dec r8
sub rdx, 1
jne 0x14001010e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001137c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400113c6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400113c6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400113c6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400113c6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400113c6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400113c8
xor al, al
add rsp, 0x28
ret
Function at 0x140002664
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400026ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400026ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400026ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400026ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400026ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400026b0
xor al, al
add rsp, 0x28
ret

Function at 0x140005e58
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140005cc3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005cc3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005cc3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005cc3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005cc3
cmp dword [rcx + 0x84], 0xe
jbe 0x140005cc3
cmp dword [rcx + 0xf8], 0
je 0x140005cc3
mov ecx, ebx
call fcn.140005d74
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140005b50
nop
cmp dword [rbp + 0x20], 0
je 0x140005d11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005d1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005c54
Function at 0x140010dc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140010e47
mov rsi, rbx
cmp word [rax], bp
je 0x140010e06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140010df0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140010dec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000cda4
mov rdi, rax
test rax, rax
je 0x140010e34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003c30
mov rbp, rdi
xor ecx, ecx
call fcn.14000cd68
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400141d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400141ee
mov al, 1
jmp 0x14001424e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400141ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001424c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011564
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001424c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001424c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001424c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001424e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140017e80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140017ea8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140017ea8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140009cb4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009ae0
Function at 0x140011140
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011a60
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x148]
lea rcx, [0x1400230a4]
call fcn.1400113a7
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 8], rax
movzx eax, word [rbp + 0x120]
mov word [rbp + 0x24], ax
movzx eax, word [rbp + 0x128]
mov word [rbp + 0x26], ax
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad00]
call fcn.140011339
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001121c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013360
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 0x1400146b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400146d0
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400146e3
xor al, al
jmp 0x140014751
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 0x14001470d
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014721
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014733
xor al, al
jmp 0x140014751
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001474f
xor al, al
jmp 0x140014751
mov al, 1
add rsp, 0x38
ret