joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a4864
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r11d, edx
mov r10, rcx
test r9, r9
je 0x1800a49d1
lea ecx, [rdx + 2]
mov edi, 0xaaaaaaab
mov eax, edi
mul ecx
shr edx, 1
shl edx, 2
inc edx
cmp dword [r9], edx
jae 0x1800a48af
mov dword [r9], edx
mov eax, 6
jmp 0x1800a49bc
test r10, r10
je 0x1800a49eb
test rbx, rbx
je 0x1800a4a05
cmp r10, rbx
jne 0x1800a48d0
mov eax, reloc.WS2_32.dll_recv
jmp 0x1800a49bc
mov eax, edi
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r11d
shr edx, 1
lea ecx, [rdx + rdx*2]
xor edx, edx
test ecx, ecx
je 0x1800a4956
dec ecx
mov eax, edi
mul ecx
shr edx, 1
inc edx
mov edi, edx
lea edx, [rdx + rdx*2]
movzx eax, byte [r10]
shr rax, 2
mov al, byte [rax + rbp]
mov byte [r8], al
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbp]
mov byte [r8 + 1], al
movzx eax, byte [r10 + 2]
movzx ecx, byte [r10 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rbp]
mov byte [r8 + 2], al
movzx eax, byte [r10 + 2]
add r10, 3
and eax, 0x3f
mov al, byte [rax + rbp]
mov byte [r8 + 3], al
add r8, 4
sub rdi, 1
jne 0x1800a48f6
cmp edx, r11d
jae 0x1800a49b0
movzx edi, byte [r10]
lea esi, [rdx + 1]
cmp esi, r11d
jae 0x1800a496e
movzx edx, byte [r10 + 1]
jmp 0x1800a4970
xor edx, edx
mov ecx, edx
mov rax, rdi
shr ecx, 4
shr rax, 2
shl edi, 4
add ecx, edi
and ecx, 0x3f
mov al, byte [rax + rbp]
mov byte [r8], al
mov al, byte [rcx + rbp]
mov byte [r8 + 1], al
cmp esi, r11d
jae 0x1800a49a1
and edx, 0xf
shl edx, 2
mov cl, byte [rdx + rbp]
jmp 0x1800a49a3
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov byte [r8], 0
sub r8d, ebx
mov dword [r9], r8d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r8d, 0x28
lea rdx, str.C:UsersiancoDesktopImportant_Desktop_FilesComplete_Clientsproject_bo4depslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.outlen___NULL
call fcn.1800a7440
int3
mov r8d, 0x38
lea rdx, str.C:UsersiancoDesktopImportant_Desktop_FilesComplete_Clientsproject_bo4depslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.in___NULL
call fcn.1800a7440
int3
mov r8d, 0x39
lea rdx, str.C:UsersiancoDesktopImportant_Desktop_FilesComplete_Clientsproject_bo4depslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.out___NULL
call fcn.1800a7440
int3
Function at 0x1800a4f7c
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x1800a5004
and dword [rcx + 0x48], 0
movabs rax, 0x6a09e667f3bcc908
and qword [rcx], 0
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
add rsp, 0x28
ret
mov r8d, 0xa9
lea rdx, str.C:UsersiancoDesktopImportant_Desktop_FilesComplete_Clientsproject_bo4depslibtomcrypt_srchashes_sha2_sha512.c
lea rcx, str.md___NULL
call fcn.1800a7440
int3
Function at 0x1800a7504
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x1800a7630
and qword [rax + 0x18], 0
lea r8, [0x18016a838]
mov r9d, 1
mov dword [rax - 0x38], 0xf0000020
xor edx, edx
lea rcx, [rax + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800a757f
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x18016a838]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1800a75af
mov rcx, qword [rsp + 0x70]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x70]
xor edx, edx
cmp eax, 1
jne 0x1800a75a9
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x1800a75af
mov eax, ebx
jmp 0x1800a7613
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor r13d, r13d
xor ebp, ebp
mov r15d, ebx
test ebx, ebx
je 0x1800a7611
dec r15d
xor esi, esi
lea r14d, [rsi + 8]
dec r14d
call fcn.1800e99cc
mov r12d, eax
jmp 0x1800a75d4
xor ebp, 1
call fcn.1800e99cc
cmp r12d, eax
je 0x1800a75d1
call fcn.1800e99cc
mov r12d, eax
jmp 0x1800a75ec
xor r13d, 1
call fcn.1800e99cc
cmp r12d, eax
je 0x1800a75e8
cmp ebp, r13d
je 0x1800a75c7
add esi, esi
or esi, ebp
test r14d, r14d
jne 0x1800a75c4
mov byte [rdi], sil
inc rdi
test r15d, r15d
jne 0x1800a75bb
jmp 0x1800a75a5
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8d, 0x83
lea rdx, str.C:UsersiancoDesktopImportant_Desktop_FilesComplete_Clientsproject_bo4depslibtomcrypt_srcprngs_rng_get_bytes.c
lea rcx, str.out___NULL
call fcn.1800a7440
int3
Function at 0x1800aa7f8
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1801850b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800aa997
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800aa939
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x1800aa8f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800aa8f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800aa8f4
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1800aa8b6
mov rcx, qword [0x1801901f0]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1800aa91d
jmp 0x1800aa8e7
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x1800aa8e7
mov rcx, qword [0x1801901f0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800aa91d
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800aa864
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800aa939
mov esi, ebx
cmp qword [rdi], rbx
je 0x1800aa939
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1801901f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1800aa997
cmp qword [rdi], rbx
je 0x1800aa99c
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800aa99c
mov rax, qword [rdi]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x1800aa98e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.1800aa668
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x1800aa952
jmp 0x1800aa99c
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800bbd30
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800aa9c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1800aaa24
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800aaa12
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800aaa0b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x1800aa9df
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x1801901f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1800aaa34
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180195f10]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x1800aaa6a
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800aaaa0
mov eax, 0xa
jmp 0x1800aab2c
test esi, esi
je 0x1800aaac2
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800aaae3
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800aaae3
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800aaadd
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800aaae3
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1800aafa4
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800aafbb
cmp r8b, 0x90
je 0x1800aafbb
cmp r8b, 0xcc
jne 0x1800aafdd
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x1800aafd9
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x1800aafdd
add edx, r10d
cmp edx, r9d
jb 0x1800aafc9
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1800ab344
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800ab38e
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180195f08]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x1800ab3cc
cmp rbx, r14
jb 0x1800ab3c7
cmp rbx, r12
jae 0x1800ab3c7
cmp qword [rbx + 8], rsi
jne 0x1800ab523
mov rbx, qword [rbx]
jmp 0x1800ab3ae
mov r15, rdi
cmp rdi, r14
jb 0x1800ab450
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x1800ab447
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ab447
cmp dword [rbp - 0x10], 0x10000
je 0x1800ab417
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1800ab447
jmp 0x1800ab3e3
test r15, r15
je 0x1800ab447
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800ab4e8
cmp r15, r14
jae 0x1800ab3d4
test rbx, rbx
jne 0x1800ab4e8
cmp rdi, r12
ja 0x1800ab523
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x1800ab523
mov r8d, gethostbyname
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ab523
cmp dword [rbp - 0x10], 0x10000
je 0x1800ab4be
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x1800ab477
test rdi, rdi
je 0x1800ab523
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x1800ab44a
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x1800ab4f4
mov rax, qword [0x180195f08]
mov qword [rbx], rax
mov qword [0x180195f08], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800ac4c8
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rdi, rcx
je 0x1800ac586
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x1800ac586
movzx eax, byte [r11 + rdi + 0x100]
mov edx, dword [rdi + 0x10128]
xor rax, rdx
mov r8, qword [rdi + 0x10138]
mov r10d, dword [rdi + 0x10130]
movzx ecx, al
and r10d, 0xfffd
or r10d, 2
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rdi + 0x10130]
mov dword [rdi + 0x10128], edx
movzx eax, dl
add eax, dword [rdi + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov dword [rdi + 0x1012c], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rdi + 0x10130], ecx
imul eax, r10d
shr eax, 8
xor byte [r11 + rdi + 0x100], al
inc r11d
cmp r11d, dword [rdi + 0xd4]
jb 0x1800ac4f2
mov r9d, dword [rdi + 0xd4]
lea r8, [rdi + 0x100]
mov rdx, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x38]
mov ebx, dword [rdi + 0xd4]
call qword [rdi + reloc.WS2_32.dll_recv]
or ecx, 0xffffffff
xor edx, edx
cmp eax, ebx
cmovne edx, ecx
mov ecx, dword [rdi + 0x84]
add qword [rdi + 0x10118], rbx
mov eax, edx
add qword [rdi + 0x10120], rcx
and dword [rdi + 0x84], 0
and dword [rdi + 0xd4], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800b82c8
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [0x180190748]
test rcx, rcx
jne 0x1800b8341
and qword [rax + 0x18], rcx
lea r9d, [rcx + 1]
lea rcx, [rax + 0x18]
mov dword [rax - 0x18], 0xf0000020
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1800b8335
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1800b8335
or eax, 0xffffffff
jmp 0x1800b8352
mov rcx, qword [rsp + 0x50]
mov qword [0x180190748], rcx
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
dec eax
neg eax
sbb eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800bac58
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 0x1800bacdc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180116460]
cmp byte [rcx + rax], 0
je 0x1800bacdc
dec r8
sub rdx, 1
jne 0x1800bacc2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800ce4d4
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.1800bcfa0
sub rsp, rax
mov rax, qword [0x1801850b8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800da3b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800ce523
mov rax, rbp
jmp 0x1800ce62b
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 + 0x18c5d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800dc14c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x18c5d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800ce627
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 0x1800ce627
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800dc14c
test rax, rax
js 0x1800ce627
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800ce627
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800ce619
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800ce619
cmp byte [rcx], 0xd
jne 0x1800ce5ff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800ce60e
cmp byte [rcx + 1], 0xa
jne 0x1800ce60e
inc rcx
jmp 0x1800ce60e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x185650]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800ce5e1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800ce62b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800bbd30
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 0x1800dc1f8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18018c5d0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x1800dc256
cmp word [rdx], r12w
jne 0x1800dc256
or byte [rax + r8*8 + 0x38], cl
jmp 0x1800dc25c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1800dc3b7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1800dc392
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1800dc295
mov rcx, r9
jmp 0x1800dc2b8
cmp r9, rdx
jae 0x1800dc2cf
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1800dc279
jmp 0x1800dc3b7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800dc38c
cmp dword [rsp + 0x80], edi
je 0x1800dc38c
mov rdx, r14
lea r11, [0x18018c5d0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x1800dc365
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1800dc338
mov word [rbx], r12w
jmp 0x1800dc3b3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x1800dc341
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1800dc3b3
cmp word [rsp + 0x70], r12w
jne 0x1800dc372
cmp rbx, rsi
je 0x1800dc332
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800dc154
cmp word [rsp + 0x70], r12w
je 0x1800dc3b7
mov word [rbx], r13w
jmp 0x1800dc3b3
lea r11, [0x18018c5d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1800dc3af
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1800dc3b7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800dcc0c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1800dcc3e
call fcn.1800c9eb8
mov dword [rax], 0x16
call fcn.1800c2d94
jmp 0x1800dcd5d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800dcd5d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1800dcd5d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1800dcc6d
lock or dword [rcx + 0x14], 0x10
jmp 0x1800dcd5d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1800dcc81
call fcn.1800dcd78
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800da3b0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.1800dc6a4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1800dcd4b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1800dcd16
mov rcx, rsi
call fcn.1800da3b0
cmp eax, edi
je 0x1800dcd01
mov rcx, rsi
call fcn.1800da3b0
cmp eax, 0xfffffffe
je 0x1800dcd01
mov rcx, rsi
call fcn.1800da3b0
movsxd rbx, eax
lea r14, [0x18018c5d0]
mov rcx, rsi
sar rbx, 6
call fcn.1800da3b0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1800dcd08
lea rdx, [0x180185600]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800dcd16
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1800dcd3a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1800dcd3a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1800dcd3a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1800dcd60
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret