joyce8/EMBER2024-capa huggingface dataset:
Function at 0x16003cfe0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r9d, dword [rcx + 4]
lea r14, [0x160000000]
mov rbx, rcx
mov eax, r9d
shr eax, 0x10
mov r8d, r9d
shr r8, 0x18
mov rdi, rdx
movzx edx, al
mov esi, 8
mov eax, dword [rcx]
shr rax, 0x18
mov r10, qword [r14 + r8*8 + 0xccc20]
xor r10, qword [r14 + rdx*8 + 0xcc420]
xor r10, qword [r14 + rax*8 + 0xcac20]
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, dword [rbx]
shr eax, 0x10
xor r10, qword [r14 + rcx*8 + 0xcbc20]
movzx ecx, al
mov eax, dword [rbx]
shr eax, 8
xor r10, qword [r14 + rcx*8 + 0xca420]
movzx ecx, al
movzx eax, r9b
xor r10, qword [r14 + rcx*8 + 0xc9c20]
xor r10, qword [r14 + rax*8 + 0xcb420]
movzx eax, byte [rbx]
xor r10, qword [r14 + rax*8 + 0xc9420]
mov r11, r10
shr r11, 0x20
mov r9d, r10d
mov eax, r10d
xor eax, dword [rdi + 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi]
lea rdi, [rdi + 0x10]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0xcdbc0]
xor edx, dword [r14 + rax*4 + 0xc5000]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xcdac0]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xc4e00]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xc5300]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xcdcd0]
xor edx, dword [r14 + r8*4 + 0xc4f00]
xor edx, dword [r14 + r9*4 + 0xc5200]
xor r11d, edx
mov r9d, r11d
mov eax, r11d
xor eax, dword [rdi - 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi - 8]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0xcdbc0]
xor edx, dword [r14 + rax*4 + 0xc5000]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xcdac0]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xc4e00]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xc5300]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0xcdcd0]
xor edx, dword [r14 + r8*4 + 0xc4f00]
xor edx, dword [r14 + r9*4 + 0xc5200]
xor r10d, edx
sub rsi, 1
jne 0x16003d086
mov rsi, qword [rsp + 0x10]
mov eax, r10d
mov rdi, qword [rsp + 0x18]
shr eax, 0x10
movzx ecx, al
mov edx, r10d
shr rdx, 0x18
mov eax, r11d
shr rax, 0x18
mov r8, qword [r14 + rdx*8 + 0xc8c20]
xor r8, qword [r14 + rcx*8 + 0xc8420]
xor r8, qword [r14 + rax*8 + 0xc6c20]
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8, qword [r14 + rcx*8 + 0xc7c20]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8, qword [r14 + rcx*8 + 0xc6420]
movzx ecx, al
movzx eax, r11b
xor r8, qword [r14 + rcx*8 + 0xc5c20]
xor r8, qword [r14 + rax*8 + 0xc5420]
movzx eax, r10b
xor r8, qword [r14 + rax*8 + 0xc7420]
mov r14, qword [rsp + 0x20]
mov dword [rbx], r8d
shr r8, 0x20
mov dword [rbx + 4], r8d
mov rbx, qword [rsp + 8]
ret
Function at 0x16003e098
Capabilities:
Hash data using sha1

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x16003e0d3
and dword [rcx + 0x1c], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
add rsp, 0x28
ret
mov r8d, 0x9f
lea rdx, str.C:Users_fedecDocumentsGitHub_tpp_moddepslibtomcrypt_srchashes_sha1.c
lea rcx, str.md___NULL
call fcn.1600428f0
int3
Function at 0x1600405c4
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x16004064c
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:Users_fedecDocumentsGitHub_tpp_moddepslibtomcrypt_srchashes_sha2_sha512.c
lea rcx, str.md___NULL
call fcn.1600428f0
int3
Function at 0x1600429b4
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 0x160042ae0
and qword [rax + 0x18], 0
lea r8, [0x1600de6c0]
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 0x160042a2f
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x1600de6c0]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x160042a5f
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 0x160042a59
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x160042a5f
mov eax, ebx
jmp 0x160042ac3
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor r13d, r13d
xor ebp, ebp
mov r15d, ebx
test ebx, ebx
je 0x160042ac1
dec r15d
xor esi, esi
lea r14d, [rsi + 8]
dec r14d
call fcn.160083dac
mov r12d, eax
jmp 0x160042a84
xor ebp, 1
call fcn.160083dac
cmp r12d, eax
je 0x160042a81
call fcn.160083dac
mov r12d, eax
jmp 0x160042a9c
xor r13d, 1
call fcn.160083dac
cmp r12d, eax
je 0x160042a98
cmp ebp, r13d
je 0x160042a77
add esi, esi
or esi, ebp
test r14d, r14d
jne 0x160042a74
mov byte [rdi], sil
inc rdi
test r15d, r15d
jne 0x160042a6b
jmp 0x160042a55
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:Users_fedecDocumentsGitHub_tpp_moddepslibtomcrypt_srcprngs_rng_get_bytes.c
lea rcx, str.out___NULL
call fcn.1600428f0
int3
Function at 0x160045b70
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 [0x1600ef078]
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 0x160045d0f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x160045cb1
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x160045c6c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x160045c6c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x160045c6c
mov rdx, qword [rdi]
test rdx, rdx
jne 0x160045c2e
mov rcx, qword [0x16010ce80]
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 0x160045c95
jmp 0x160045c5f
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x160045c5f
mov rcx, qword [0x16010ce80]
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 0x160045c95
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 0x160045bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x160045cb1
mov esi, ebx
cmp qword [rdi], rbx
je 0x160045cb1
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x16010ce80]
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 0x160045d0f
cmp qword [rdi], rbx
je 0x160045d14
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x160045d14
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 0x160045d06
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.1600459e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x160045cca
jmp 0x160045d14
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.160056220
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x160045d38
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 0x160045d9c
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x160045d8a
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 0x160045d83
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 0x160045d57
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x16010ce80]
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 0x160045dac
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 [0x160142fb0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x160045de2
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 0x160045e18
mov eax, 0xa
jmp 0x160045ea4
test esi, esi
je 0x160045e3a
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 0x160045e5b
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x160045e5b
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x160045e55
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x160045e5b
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 0x160046250
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x160046267
cmp r8b, 0x90
je 0x160046267
cmp r8b, 0xcc
jne 0x160046289
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x160046285
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x160046289
add edx, r10d
cmp edx, r9d
jb 0x160046275
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x1600465f0
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 0x16004663a
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x160142fa8]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x160046678
cmp rbx, r14
jb 0x160046673
cmp rbx, r12
jae 0x160046673
cmp qword [rbx + 8], rsi
jne 0x1600467cf
mov rbx, qword [rbx]
jmp 0x16004665a
mov r15, rdi
cmp rdi, r14
jb 0x1600466fc
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x1600466f3
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1600466f3
cmp dword [rbp - 0x10], 0x10000
je 0x1600466c3
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x1600466f3
jmp 0x16004668f
test r15, r15
je 0x1600466f3
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 0x160046794
cmp r15, r14
jae 0x160046680
test rbx, rbx
jne 0x160046794
cmp rdi, r12
ja 0x1600467cf
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 0x1600467cf
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1600467cf
cmp dword [rbp - 0x10], 0x10000
je 0x16004676a
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 0x160046723
test rdi, rdi
je 0x1600467cf
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 0x1600466f6
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 0x1600467a0
mov rax, qword [0x160142fa8]
mov qword [rbx], rax
mov qword [0x160142fa8], 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 0x160047774
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 0x160047832
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x160047832
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 0x16004779e
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 + 0x10]
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 0x160053588
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 [0x160142e00]
test rcx, rcx
jne 0x160053601
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 0x1600535f5
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 0x1600535f5
or eax, 0xffffffff
jmp 0x160053612
mov rcx, qword [rsp + 0x50]
mov qword [0x160142e00], 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 0x160054ef8
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 0x160054f7c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x160087920]
cmp byte [rcx + rax], 0
je 0x160054f7c
dec r8
sub rdx, 1
jne 0x160054f62
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x160075aac
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 0x160075ade
call fcn.160064550
mov dword [rax], 0x16
call fcn.16005d214
jmp 0x160075bfd
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x160075bfd
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x160075bfd
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x160075b0d
lock or dword [rcx + 0x14], 0x10
jmp 0x160075bfd
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x160075b21
call fcn.1600775f0
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.160072afc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.160077b08
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x160075beb
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x160075bb6
mov rcx, rsi
call fcn.160072afc
cmp eax, edi
je 0x160075ba1
mov rcx, rsi
call fcn.160072afc
cmp eax, 0xfffffffe
je 0x160075ba1
mov rcx, rsi
call fcn.160072afc
movsxd rbx, eax
lea r14, [0x160109030]
mov rcx, rsi
sar rbx, 6
call fcn.160072afc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x160075ba8
lea rdx, [0x1600ef400]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x160075bb6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x160075bda
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x160075bda
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x160075bda
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 0x160075c00
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
Function at 0x160077370
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.160057490
sub rsp, rax
mov rax, qword [0x1600ef078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.160072afc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1600773bf
mov rax, rbp
jmp 0x1600774c7
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, [0x160000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x109030]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1600782e0
mov r13, rax
lea rax, [0x160000000]
mov rcx, qword [rax + rbx*8 + 0x109030]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1600774c3
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 0x1600774c3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1600782e0
test rax, rax
js 0x1600774c3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1600774c3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1600774b5
lea r8, [0x160000000]
cmp rcx, rdx
jae 0x1600774b5
cmp byte [rcx], 0xd
jne 0x16007749b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1600774aa
cmp byte [rcx + 1], 0xa
jne 0x1600774aa
inc rcx
jmp 0x1600774aa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xef610]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x16007747d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1600774c7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.160056220
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 0x16007765c
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, [0x160109030]
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 0x1600776ba
cmp word [rdx], r12w
jne 0x1600776ba
or byte [rax + r8*8 + 0x38], cl
jmp 0x1600776c0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x16007781b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1600777f6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1600776f9
mov rcx, r9
jmp 0x16007771c
cmp r9, rdx
jae 0x160077733
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 0x1600776dd
jmp 0x16007781b
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 0x1600777f0
cmp dword [rsp + 0x80], edi
je 0x1600777f0
mov rdx, r14
lea r11, [0x160109030]
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 0x1600777c9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x16007779c
mov word [rbx], r12w
jmp 0x160077817
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 0x1600777a5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x160077817
cmp word [rsp + 0x70], r12w
jne 0x1600777d6
cmp rbx, rsi
je 0x160077796
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1600782e8
cmp word [rsp + 0x70], r12w
je 0x16007781b
mov word [rbx], r13w
jmp 0x160077817
lea r11, [0x160109030]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x160077813
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x16007781b
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