joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ef90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004aa064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40f0aa
mov rax, qword [0x004aa068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40efde
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40f090
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40efc2
mov rcx, rbx
call fcn.0040fdd0
test rax, rax
mov r12, rax
je 0x40f0e2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004aa068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040fef0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004aa068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40f0c5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40f089
sub eax, 0x40
and eax, 0xffffffbf
je 0x40f089
mov r9, rbp
add r9, qword [0x004aa068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f0b1
add dword [0x004aa064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40efeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040ef20
mov rax, qword [0x004aa068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.0040ef20
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040ef20
nop
nop word cs:[rax + rax]

Function at 0x40fce0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40fd21
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40fd18
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40fd23
add rax, 0x28
cmp rax, r9
jne 0x40fd04
xor eax, eax
repz ret

Function at 0x40fdd0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048eef0]
cmp word [rbx], 0x5a4d
je 0x40fdf0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040fca0
test eax, eax
je 0x40fde4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040fce0
Function at 0x410040
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004aa9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004aa9a0]
test rbx, rbx
je 0x410094
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41008b
test rsi, rsi
je 0x41008b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x410070
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004aa9c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x410830
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00410770
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x410919
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4109b8
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x410954
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x410940
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x4109b5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.004107b0
cmp rax, rbx
mov rsi, rax
je 0x4109d0
mov rcx, rbx
call fcn.0041ad98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.004107b0
mov rsi, rax
jmp 0x41098f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x41098f
mov rcx, rbx
call r13
jmp 0x41098f
Function at 0x41bbb0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004ab508]
test rbx, rbx
je 0x41bbe0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004ab508]
test rax, rax
je 0x41bc04
cmp dword [rax], 0xffffffff
je 0x41bc25
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041b040]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420d90
mov rbx, rax
mov qword [0x004ab508], rax
jmp 0x41bbc1
lea r8, [0x0041b040]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420d90
mov qword [0x004ab508], rax
jmp 0x41bbd5
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004ab510]
test rcx, rcx
je 0x41c200
call fcn.0041c030
mov rax, qword [0x004ab508]
test rax, rax
je 0x41c223
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41c103
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041ba00
test rax, rax
mov rbx, rax
je 0x41c26b
cmp qword [0x004ae050], 0
je 0x41c26b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41c272
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004ab508]
test rax, rax
je 0x41c247
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c272
mov rax, rbx
jmp 0x41c0fa
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00420d90
mov rcx, rax
mov qword [0x004ab510], rax
jmp 0x41c0d8
lea r8, [0x0041b040]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420d90
mov qword [0x004ab508], rax
jmp 0x41c0ed
lea r8, [0x0041b040]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420d90
mov qword [0x004ab508], rax
jmp 0x41c1e8
xor eax, eax
jmp 0x41c0fa
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.00420d90
Function at 0x41c280
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004ab510]
test rcx, rcx
je 0x41c200
call fcn.0041c030
mov rax, qword [0x004ab508]
test rax, rax
je 0x41c223
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41c103
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041ba00
test rax, rax
mov rbx, rax
je 0x41c26b
cmp qword [0x004ae050], 0
je 0x41c26b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41c272
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004ab508]
test rax, rax
je 0x41c247
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c272
mov rax, rbx
jmp 0x41c0fa
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00420d90
mov rcx, rax
mov qword [0x004ab510], rax
jmp 0x41c0d8
lea r8, [0x0041b040]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420d90
mov qword [0x004ab508], rax
jmp 0x41c0ed
lea r8, [0x0041b040]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00420d90
mov qword [0x004ab508], rax
jmp 0x41c1e8
xor eax, eax
jmp 0x41c0fa
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.00420d90
Function at 0x41f030
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x004ab558]
mov esi, edx
test rcx, rcx
je 0x41efd0
call fcn.00421150
cmp dword [rbx], 0xbab1f00d
jne 0x41eff7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41eff7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41ef83
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x004ab558]
test rcx, rcx
je 0x41efa0
call fcn.00421200
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x0041ed10]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.00420d90
mov rcx, rax
mov qword [0x004ab558], rax
call fcn.00421200
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x0041ed10]
mov edx, 8
call fcn.00420d90
mov rcx, rax
mov qword [0x004ab558], rax
jmp 0x41ef57
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, str.C:_crossdev_src_winpthreads_git20141130_src_mutex.c
lea rcx, [rax + 0x60]
lea r8, str._m___valid__LIFE_MUTEX____m___busy___0_
lea rdx, [0x0048e3a0]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x0041ed10]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.00420d90
Function at 0x420d90
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00410770
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x420e79
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x420f12
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x420eb4
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x420ea0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x420f0f
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.00420d10
cmp rax, rbx
mov rsi, rax
je 0x420f29
mov rcx, rbx
call fcn.0041ad98
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call fcn.00420d10
mov rsi, rax
jmp 0x420ee9
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x420ee9
mov rcx, rbx
call r13
jmp 0x420ee9

Function at 0x422b60
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00473700]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.00410830

Function at 0x422b80
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00473710]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.00410830
Function at 0x4532a0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call fcn.00453180
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x4532f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x4532ba
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400013c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400610a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r10, qword [rdx + 0x10]
mov rax, rdx
mov r8, rcx
test r10, r10
je 0x140001466
test dword [rdx + 0x18], 0x2000000
je 0x14000147d
mov r9, qword [rdx]
cmp r9, qword [rdx + 8]
jne 0x140001466
cmp dword [rdx + 0x1c], 0
jne 0x14000141d
mov rax, qword [r8]
mov ecx, dword [rcx + 0x180]
cmp dword [rax + 0x38], ecx
je 0x14000141d
xor edx, edx
mov rax, r10
div rcx
test rdx, rdx
jne 0x140001466
mov rcx, qword [r8 + 0xa0]
mov rax, qword [r8 + 0x170]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x40], 0x4000
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x38], r9
test rcx, rcx
je 0x1400014af
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x50]
call qword [rax + 0x10]
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010d10
add rsp, 0x68
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov r8d, 0x40
mov rdx, r10
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010d10
add rsp, 0x68
ret
call fcn.14000e908
int3
Function at 0x140006290
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x80
mov rax, qword [0x1400610a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r15d, r15d
mov qword [rsp + 0x60], rcx
cmp qword [rdx + 0x18], 8
mov rax, rdx
mov rdi, rcx
jb 0x1400062c3
mov rax, qword [rdx]
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140006305
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
jmp 0x14000643d
mov qword [rsp + 0xb0], rbp
xor edx, edx
mov qword [rsp + 0x78], rsi
mov rcx, rbx
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov r9d, 4
mov r8d, 0x3000
mov r14d, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x140006420
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r15
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000640f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x58], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
test r14d, r14d
je 0x1400063e2
cmp r14, 0x1000
jb 0x1400063b9
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x14000645f
call fcn.140010d6c
mov rcx, rax
test rax, rax
je 0x140006459
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400063c1
mov rcx, r14
call fcn.140010d6c
lea rbx, [rax + r14]
mov qword [rsp + 0x48], rax
mov r8, r14
mov qword [rsp + 0x58], rbx
mov rdx, rbp
mov rcx, rax
call fcn.140012d60
mov qword [rsp + 0x50], rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x14000642b
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x70]
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140010d10
add rsp, 0x80
pop r15
pop rdi
pop rbx
ret
call fcn.14001852c
int3
call fcn.140002970
int3
Function at 0x140006470
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1400610a0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rdi, rcx
mov qword [rsp + 0x78], rcx
mov byte [rbp - 0x80], 0
mov qword [rsp + 0x20], rcx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [0x14005a788]
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x70], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140006561
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140006557
nop dword [rax + rax]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400065f3
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x10]
mov rcx, rbx
test al, al
je 0x14000655a
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140006520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000657c
lea rdx, [rsp + 0x30]
cmp rcx, rdx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
movzx ebx, byte [rbp - 0x80]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400065bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400065b6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400065f9
mov rcx, r8
call fcn.140010d38
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
movzx eax, bl
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140010d10
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14000e908
nop
call fcn.14001852c
int3
Function at 0x14000f69c
Capabilities:
Get geographical location

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

Function at 0x140011ac4
Capabilities:
Parse pe header

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

Function at 0x14001dd14
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001db10

Function at 0x14002129c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400212b2
mov al, 1
jmp 0x140021312
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400212c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140021310
mov ecx, dword [rcx + 0x18]
nop
call fcn.140028748
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021310
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140021310
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140021310
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140021312
xor al, al
add rsp, 0x20
pop rbx
ret