joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bdb0
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 0x14000bdd0
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 0x14000be18
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000bdc4
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 0x14000be05

Function at 0x14000be40
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400e9230]
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 0x14000bef8
mov rdx, qword [0x1400e91a0]
lea rcx, [0x1400e91a0]
mov rax, qword [rdx + 8]
test rax, rax
je 0x14000bec8
cmp rdx, rcx
jne 0x14000beaa
mov qword [rdx], rax
cmp rax, rcx
je 0x14000beaf
nop dword [rax]
test rax, rax
je 0x14000beda
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x14000be98
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x14000beda
mov rdx, rax
jmp 0x14000bea6
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000bf16
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, [0x1400c0340]
call dbg.__eh_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 0x14000beda
Function at 0x14000bf30
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e9230]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14000bf53
lea rax, [0x1400e9238]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000bf9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bf98
lea rax, [0x1400e9260]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000bfcb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000bfc8
xor ecx, ecx
mov byte [0x1400e9274], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e927d], rdx
lea r8, [0x1400e9230]
lea rbx, [0x1400e9275]
mov qword [0x1400e928d], rdx
mov qword [0x1400e929d], rdx
mov qword [0x1400e92ad], rdx
xor edx, edx
mov qword [0x1400e9275], rax
mov qword [0x1400e9285], rax
mov qword [0x1400e9295], rax
mov qword [0x1400e92a5], rax
mov byte [0x1400e92b5], 0
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 0x14000c1a6
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000c0f1
lea rsi, [0x1400e91a0]
lea r8, [0x1400e92b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000c09d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000c090
lea rcx, [0x1400e9260]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000c193
lea rcx, [dbg.__eh_shmem3_gcc_tdm_cleanup_local_region]
mov qword [0x1400e91a0], rsi
call sym._onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400e91a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x1400e9260]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e92b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000c1c6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000c143
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000c130
mov rax, rdx
mov qword [0x1400e91a0], rax
lea rsi, [0x1400e91a0]
jmp 0x14000c169
cmp rdx, rsi
je 0x14000c0cf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000c160
cmp rdx, rsi
je 0x14000c0cf
mov qword [rdx + 8], rsi
lea rcx, [dbg.__eh_shmem3_gcc_tdm_cleanup_local_region]
call sym._onexit
jmp 0x14000c0cf
lea rcx, [0x1400c03a0]
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x14000c0e8
lea rcx, [0x1400c0378]
call dbg.__eh_shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, [0x1400c03c8]
call dbg.__eh_shmem_get_error
xor eax, eax
jmp 0x14000c14f
Function at 0x14000fcb0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400c1a30]
mov rax, qword [rsi]
test rax, rax
je 0x14000fd40
cmp qword [rax + 0x30], 0
jne 0x14000fd60
lea rbx, [0x1400b9088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000fd10
cmp qword [rax + 0x30], 0
jne 0x14000fd30
lea rdx, [0x1400b9088]
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 0x14000fcf2
test rax, rax
jne 0x14000fd30
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000fd00
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000fcd0
test rax, rax
jne 0x14000fd60
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000fcdb

Function at 0x14000fd70
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 0x14000fe82
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000fe5a
add rax, 1
cmp rax, 0x6b
je 0x14000fe77
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000fe50
cmp edx, 0x6a
je 0x14000fe77
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 0x14000fe6b
Function at 0x140013930
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400c1a30]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140013a00
cmp qword [rax + 0x60], 0
jne 0x140013a20
lea rcx, [0x1400b9078]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140013a30
cmp qword [rax + 0x1d8], r12
jne 0x140013a30
test byte [rax + 0x40], 0xc
jne 0x140013a30
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140013a30
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140013a30
mov rax, qword [rbx]
test rax, rax
je 0x140013a90
cmp qword [rax + 0x60], 0
jne 0x140013ab0
lea rcx, [0x1400b9078]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140013ac0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140013ac8
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 0x14001395b
test rax, rax
jne 0x140013a20
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140013966
mov rax, qword [rbx]
test rax, rax
je 0x140013a60
cmp qword [rax + 0x60], 0
jne 0x140013a80
lea rcx, [0x1400b9078]
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 0x140013a3f
test rax, rax
jne 0x140013a80
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140013a4a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400139ca
test rax, rax
jne 0x140013ab0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400139d5
xor eax, eax
jmp 0x140013a54
mov eax, 0x16
jmp 0x140013a54
Function at 0x140021310
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
je 0x140021358
mov rcx, r12
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x1400e9fc0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14002133f

Function at 0x140023260
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x14002328c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140023f00
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1400bbeb0], 0
jne 0x14002400a
mov byte [0x1400bbeb0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140023fe0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140023fd1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400bc171]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140023fcc
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x140023f9b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14002409f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140024005
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140024005
Function at 0x14007d600
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x14007d627
call rbp
cmp dword [rax], 4
jne 0x14007d644
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x14007d620
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140090b40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140090b68
xor ecx, ecx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140090bb0
cdqe
add rsi, rax
sub rbx, rax
jne 0x140090b80
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140090bbc
call rbp
cmp dword [rax], 4
je 0x140090b80
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1800016ef
Capabilities:
Print debug messages

Disassembly:
jmp 0x180058e68
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x180058eb4
test rbx, rbx
je 0x180058ea3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.180001848
cmp eax, 1
je 0x180058eb4
mov eax, 4
jmp 0x180058ef7
call fcn.180003b3e
cmp eax, 2
jne 0x180058ef0
call fcn.1800018a7
test al, al
je 0x180058ef0
call fcn.180002c0c
test al, al
jne 0x180058ee6
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.180003b7a
jmp 0x180058ef7
call fcn.180003a0d
mov rcx, rax
jmp 0x180058ed6
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800021fd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1800785b0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18009f080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1800a2498]
xor r11d, r11d
lea rdi, [0x180088414]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x180078620
mov rax, 0xfffffffffffffffe
jmp 0x18007876d
cmp word [r10 + 6], r11w
jne 0x18007868f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x18007864a
test r14, r14
je 0x18007863b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x18007876d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180078658
mov r8b, 2
jmp 0x180078676
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x180078666
mov r8b, 3
jmp 0x180078676
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x180078762
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1800786b8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180078762
cmp bl, bpl
jb 0x180078762
cmp bl, r8b
jae 0x180078762
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1800786e5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180078762
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1800786c7
cmp r9, rbp
jae 0x180078711
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180078614
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180078762
cmp edx, 0x110000
jae 0x180078762
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180078762
test r14, r14
je 0x180078750
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.180003b75
jmp 0x18007876d
mov rdx, rsi
mov rcx, r10
call fcn.18000420f
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800026ad
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x18000ade4
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000ae71
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18000ae71
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000ae71
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18000ae58
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000ae52
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000ae5a
add rdx, 0x28
jmp 0x18000ae37
xor edx, edx
test rdx, rdx
jne 0x18000ae63
xor al, al
jmp 0x18000ae77
cmp dword [rdx + 0x24], 0
jge 0x18000ae6d
xor al, al
jmp 0x18000ae77
mov al, 1
jmp 0x18000ae77
xor al, al
jmp 0x18000ae77
add rsp, 0x18
ret
Function at 0x180002536
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005eb5c
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 0x18005ebe3
mov rsi, rbx
cmp word [rax], bp
je 0x18005eba2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18005eb8c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18005eb88
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180001037
mov rdi, rax
test rax, rax
je 0x18005ebd0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800026b2
mov rbp, rdi
xor ecx, ecx
call fcn.18000117c
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 0x18000259a
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18007bd48
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18007bd76
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x18007bdcf
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x18007bdcf
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x18007bdc1
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1800027f7
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x18001eb60
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1800893d8]
mov ecx, 2
lea r8, [0x1800893d0]
lea rdx, str.FlsGetValue
call fcn.18001e630
mov ecx, ebx
test rax, rax
je 0x18001eb9a
add rsp, 0x20
pop rbx
jmp qword [0x1800ac020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x180002946
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005ea08
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005ea38
xor eax, eax
jmp 0x18005eafb
mov rbp, rbx
cmp word [rax], si
je 0x18005ea5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005ea44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005ea40
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000330f
movsxd r14, eax
test eax, eax
jne 0x18005ea9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005ea31
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005eab4
xor ecx, ecx
call fcn.18000117c
jmp 0x18005ea90
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000330f
test eax, eax
jne 0x18005eae5
mov rcx, rdi
call fcn.18000117c
jmp 0x18005eaef
xor ecx, ecx
call fcn.18000117c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180002950
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18001eab0
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x180089398]
xor ecx, ecx
lea r8, [0x180089390]
lea rdx, str.FlsAlloc
call fcn.18001e630
test rax, rax
je 0x18001eae9
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800ac020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1800029c8
Capabilities:
Get geographical location

Disassembly:
jmp 0x180060e60
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x18008b468]
mov rbp, rcx
lea r8, [0x18008b460]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.180060380
test rax, rax
je 0x180060ec0
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800ac030]
jmp 0x180060eda
xor edx, edx
mov rcx, rbp
call fcn.180002298
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800029dc
Capabilities:
Terminate process

Disassembly:
jmp 0x18000a0e8
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x180002b30
Capabilities:
Parse pe header

Disassembly:
jmp 0x180021f08
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x180021c64

Function at 0x180002ccf
Capabilities:
Parse pe header

Disassembly:
jmp 0x18007c8b0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007c8d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007c8d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003283
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007c7f0
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x18007c831
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x18007c825
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x18007c833
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x18007c813
xor eax, eax
ret

Function at 0x18000348b
Capabilities:
Terminate process

Disassembly:
jmp 0x180021494
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1800214ae
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180003b89
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]