joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x130
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x410c9e
cmp byte [rbx], 0
je 0x410c60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410c80
test al, 0x10
je 0x410c60
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
mov rbx, rdi
call sub.msvcrt.dll__fullpath
mov r8d, dword [rbx]
add rbx, 4
lea eax, [r8 - 0x1010101]
not r8d
and eax, r8d
and eax, 0x80808080
je 0x410b2d
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rbx + 2]
cmove rbx, rdx
add al, al
sbb rbx, 3
sub rbx, rdi
lea rcx, [rbx + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x410c8f
lea r9, [rax + 0x244]
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, r9
call sub.msvcrt.dll_memcpy
cmp byte [rsi + 0x244], 0
mov r9, rax
je 0x410bc0
movzx eax, byte [rsi + rbx + 0x243]
cmp al, 0x2f
je 0x410bc0
cmp al, 0x5c
je 0x410bc0
mov r8d, 0x5c
mov word [r9 + rbx], r8w
nop dword [rax + rax]
mov rcx, r9
mov eax, dword [rcx]
add rcx, 4
lea edx, [rax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x410bc3
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea rax, [rcx + 2]
cmove rcx, rax
add dl, dl
mov eax, 0x2a
sbb rcx, 3
xor edx, edx
mov word [rcx], ax
mov word [rsi + 0x12c], dx
lea rdx, [rsi + 0x130]
xor ecx, ecx
xor eax, eax
mov qword [rsi + 0x238], 0xffffffffffffffff
mov word [rsi + 0x12e], cx
mov rdi, rdx
mov ecx, 0x20
mov dword [rsi + 0x240], 0
mov dword [rsi + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rsi
mov dword [rdi], 0
add rsp, 0x130
pop rbx
pop rsi
pop rdi
ret
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
xor eax, eax
add rsp, 0x130
pop rbx
pop rsi
pop rdi
ret
call sub.msvcrt.dll__errno
mov dword [rax], 2
xor eax, eax
jmp 0x410c4d
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
xor eax, eax
jmp 0x410c4d
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
xor eax, eax
jmp 0x410c4d
Function at 0x41c270
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004ab508]
test rbx, rbx
je 0x41c2a0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004ab508]
test rax, rax
je 0x41c2c4
cmp dword [rax], 0xffffffff
je 0x41c2e5
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041b700]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00421450
mov rbx, rax
mov qword [0x004ab508], rax
jmp 0x41c281
lea r8, [0x0041b700]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00421450
mov qword [0x004ab508], rax
jmp 0x41c295
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]

Function at 0x41c780
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 0x41c8c0
call fcn.0041c6f0
mov rax, qword [0x004ab508]
test rax, rax
je 0x41c8e3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41c7c3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041c0c0
test rax, rax
mov rbx, rax
je 0x41c92b
cmp qword [0x004ae050], 0
je 0x41c92b
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 0x41c932
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 0x41c907
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c932
mov rax, rbx
jmp 0x41c7ba
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00421450
mov rcx, rax
mov qword [0x004ab510], rax
jmp 0x41c798
lea r8, [0x0041b700]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00421450
mov qword [0x004ab508], rax
jmp 0x41c7ad
lea r8, [0x0041b700]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00421450
mov qword [0x004ab508], rax
jmp 0x41c8a8
xor eax, eax
jmp 0x41c7ba
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.00421450
Function at 0x41c940
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 0x41c8c0
call fcn.0041c6f0
mov rax, qword [0x004ab508]
test rax, rax
je 0x41c8e3
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41c7c3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041c0c0
test rax, rax
mov rbx, rax
je 0x41c92b
cmp qword [0x004ae050], 0
je 0x41c92b
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 0x41c932
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 0x41c907
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41c932
mov rax, rbx
jmp 0x41c7ba
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.00421450
mov rcx, rax
mov qword [0x004ab510], rax
jmp 0x41c798
lea r8, [0x0041b700]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00421450
mov qword [0x004ab508], rax
jmp 0x41c7ad
lea r8, [0x0041b700]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.00421450
mov qword [0x004ab508], rax
jmp 0x41c8a8
xor eax, eax
jmp 0x41c7ba
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.00421450
Function at 0x41f6f0
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 0x41f690
call fcn.00421810
cmp dword [rbx], 0xbab1f00d
jne 0x41f6b7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41f6b7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41f643
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x004ab558]
test rcx, rcx
je 0x41f660
call fcn.004218c0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x0041f3d0]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.00421450
mov rcx, rax
mov qword [0x004ab558], rax
call fcn.004218c0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x0041f3d0]
mov edx, 8
call fcn.00421450
mov rcx, rax
mov qword [0x004ab558], rax
jmp 0x41f617
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, [0x0048e060]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x0041f3d0]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.00421450
Function at 0x421450
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.00410630
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 0x421539
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4215d2
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x421574
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x421560
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x4215cf
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.004213d0
cmp rax, rbx
mov rsi, rax
je 0x4215e9
mov rcx, rbx
call fcn.0041b420
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.004213d0
mov rsi, rax
jmp 0x4215a9
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x4215a9
mov rcx, rbx
call r13
jmp 0x4215a9

Function at 0x4231f0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004731d0]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.004106f0

Function at 0x423210
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004731e0]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.004106f0
Function at 0x4533d0
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.004532b0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x453420
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x4533ea
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1408af7ad
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffcaaacc06
lea rsp, [rsp + 0x18]
jmp fcn.14088c931
lea rsp, [rsp + 0x20]
je 0x1408af83b
mov ecx, 0xfa154929
lea rcx, [0x1408af100]
mov edx, 0x7d0bca20
bt dx, dx
adc dl, 0x94
movzx edx, byte [rdx + r9 - 0x7d0bcab4]
push 0x7d90df23
adc word [rsp + 6], 0xde97
shl dword [rsp], 0xb2
xor edx, r10d
and edx, 0xff
push 0x3a3dca03
mov edx, dword [rcx + rdx*4]
push 0xffffffffa601079a
shr r10d, 8
xor r10d, edx
sal dword [rsp + 0x11], 0xfd
and word [rsp + 4], 0x4933
inc r9
sar byte [rsp + 3], 0xa2
xor r10d, 0x162ea735
shr byte [rsp + 3], 0x41
ror qword [rsp], 0x75
dec rbp
lea rsp, [rsp + 0x18]
jne 0x1408af7c4
not r10d
jmp 0x1408cc60c
push 0xffffffffb023b20d
mov dword [rsi], r10d
push 0xfffffffffd33781a
jmp 0x1408abebd

Function at 0x140b49058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b491df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b49089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b4906f
add dl, dl
jne 0x140b49096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b490f6
xor eax, eax
add dl, dl
jne 0x140b490a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b491ad
add dl, dl
jne 0x140b490b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b490c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b490d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b490dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b490ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b4907e
mov eax, 1
add dl, dl
jne 0x140b49106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b49113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b490fb
sub eax, ebx
mov ebx, 1
jne 0x140b4914c
mov ecx, 1
add dl, dl
jne 0x140b4912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b4913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b49123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b49168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b49175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b4915d
cmp eax, 0x7d00
jae 0x140b4919b
cmp eax, 0x500
jb 0x140b49196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4907e
cmp eax, 0x7f
ja 0x140b4919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b4907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b491d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b4907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800a1e7c
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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800a1eac
xor eax, eax
jmp 0x1800a1f6f
mov rbp, rbx
cmp word [rax], si
je 0x1800a1ed1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800a1eb8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800a1eb4
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.1800a1d9c
movsxd r14, eax
test eax, eax
jne 0x1800a1f0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800a1ea5
mov rcx, r14
call fcn.18009c4c8
mov rdi, rax
test rax, rax
jne 0x1800a1f28
xor ecx, ecx
call fcn.18009c48c
jmp 0x1800a1f04
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.1800a1d9c
test eax, eax
jne 0x1800a1f59
mov rcx, rdi
call fcn.18009c48c
jmp 0x1800a1f63
xor ecx, ecx
call fcn.18009c48c
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 0x1800a42f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180088eb0
sub rsp, rax
mov rax, qword [0x1800c3380]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800a02d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800a433f
mov rax, rbp
jmp 0x1800a4447
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xc58f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800a5410
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xc58f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800a4443
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a4443
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800a5410
test rax, rax
js 0x1800a4443
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800a4443
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800a4435
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800a4435
cmp byte [rcx], 0xd
jne 0x1800a441b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800a442a
cmp byte [rcx + 1], 0xa
jne 0x1800a442a
inc rcx
jmp 0x1800a442a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc3ce0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800a43fd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800a4447
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180088f10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800a4668
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800a467e
mov al, 1
jmp 0x1800a46de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800a468f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800a46dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800ab228
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800a46dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800a46dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800a46dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800a46de
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800a47b0
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, 0x30
movsxd r15, ecx
lea r9, [0x1800c58f0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1800a4807
cmp word [rdx], r13w
jne 0x1800a4807
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800a480c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800a4931
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800a4952
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800a4845
mov rdx, r9
mov word [rbx], cx
jmp 0x1800a486c
cmp r9, r8
jae 0x1800a487c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1800a4826
jmp 0x1800a4931
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a4926
cmp dword [rsp + 0x80], esi
je 0x1800a4926
lea r8, [0x1800c58f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800a48fe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800a48ce
mov word [rbx], r13w
jmp 0x1800a492e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1800a48db
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800a492e
cmp word [rsp + 0x70], r13w
jne 0x1800a490b
cmp rbx, r14
je 0x1800a48c8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800a5418
cmp word [rsp + 0x70], r13w
je 0x1800a4931
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800c58f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800a492b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800a4931
Function at 0x1800a9408
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18009c96c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800a94a9
cmp ebx, dword [rsp + 0x30]
je 0x1800a94a2
test esi, esi
je 0x1800a94a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800a947d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800a948a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800a9467
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800a948e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800a94ab
mov eax, 1
jmp 0x1800a94ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180005548
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
test edx, edx
jle 0x180005567
mov r9, rcx
mov al, r8b
inc r8d
add al, al
add al, 0x1f
xor byte [r9], al
inc r9
cmp r8d, edx
jl 0x180005552
mov rax, rcx
ret

Function at 0x180005cfc
Capabilities:
Encode data using xor

Disassembly:
mov al, byte [rcx]
mov r8, rcx
or edx, 0xffffffff
jmp 0x180005d32
movzx eax, al
mov r9d, 7
xor edx, eax
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xe3b88320
mov edx, ecx
xor edx, eax
sub r9d, 1
jns 0x180005d11
inc r8
mov al, byte [r8]
test al, al
jne 0x180005d06
not edx
mov eax, edx
ret

Function at 0x180005d3c
Capabilities:
Check os version
Parse pe header

Disassembly:
sub rsp, 0x28
xor r10d, r10d
cmp qword [0x180020d18], r10
je 0x180005d68
cmp qword [0x180020d20], r10
je 0x180005d68
cmp qword [0x180020d28], r10
je 0x180005d68
mov eax, 1
jmp 0x180005e37
mov edx, 0x38
lea rcx, [0x180020cf8]
call fcn.180004e90
mov rax, qword gs:[0x60]
test rax, rax
je 0x180005e35
cmp dword [rax + 0x118], 0xa
jne 0x180005e35
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x20]
mov rdx, qword [rcx]
sub rdx, 0x10
je 0x180005e35
mov rdx, qword [rdx + 0x30]
mov eax, 0x5a4d
mov qword [0x180020cf8], rdx
mov qword [0x180020d00], rdx
cmp word [rdx], ax
jne 0x180005e35
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
mov qword [0x180020d08], rcx
cmp dword [rcx], 0x4550
jne 0x180005e35
mov r8d, dword [rcx + 0x88]
add r8, rdx
mov qword [0x180020d10], r8
je 0x180005e35
cmp dword [r8 + 0x10], r10d
je 0x180005e35
mov ecx, dword [r8 + 0x1c]
add rcx, rdx
mov qword [0x180020d18], rcx
mov r9d, dword [r8 + 0x20]
add r9, rdx
mov qword [0x180020d20], r9
mov r8d, dword [r8 + 0x24]
add r8, rdx
mov qword [0x180020d28], r8
test rcx, rcx
je 0x180005e35
test r9, r9
je 0x180005e35
test r8, r8
jne 0x180005d5e
xor eax, eax
add rsp, 0x28
ret