joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800475f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x180047845
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rbp, qword [0x1800b58c8]
lea rdx, [rbx + rbx]
mov r8, rbp
lea rcx, [0x1800b58d8]
call fcn.18001c1b0
lea rax, [rbx - 1]
mov qword [0x1800b58f0], rax
mov qword [0x1800b58f8], rbx
lea rax, [0x1800b58c0]
mov qword [rsp + 0x20], rax
mov rdi, qword [0x1800b58c8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x18004781f
movabs rax, 0xcbf29ce484222325
movabs r10, 0x100000001b3
nop
mov rsi, qword [rsi]
mov r15, qword [rdi + 0x20]
lea r8, [rdi + 0x10]
mov r9, qword [rdi + 0x28]
cmp r9, 0x10
jb 0x1800476b9
mov r8, qword [rdi + 0x10]
mov rcx, rax
xor edx, edx
test r15, r15
je 0x1800476e4
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r10
inc rdx
cmp rdx, r15
jb 0x1800476d0
and rcx, qword [0x1800b58f0]
shl rcx, 4
mov r13, qword [0x1800b58d8]
add r13, rcx
mov r12, qword [r13]
cmp r12, rbp
jne 0x18004770f
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x180047809
mov rbx, qword [r13 + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180047725
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x180047733
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18004777a
mov r8, r15
call fcn.180053d30
test eax, eax
jne 0x180047776
mov rax, qword [rbx]
cmp rax, rdi
je 0x18004776d
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
mov qword [r13 + 8], rdi
jmp 0x1800477ff
mov r9, qword [rdi + 0x28]
cmp r12, rbx
je 0x1800477da
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x180047795
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x1800477a3
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18004777a
mov r8, r15
call fcn.180053d30
test eax, eax
jne 0x180047776
mov rax, qword [rbx]
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
jmp 0x1800477ff
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r10, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
movabs rax, 0xcbf29ce484222325
jne 0x1800476a0
mov qword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18004f9b8
int3
Function at 0x180048910
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180048aff
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [0x1800b5948]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [0x1800b5958]
call fcn.18001c1b0
lea rax, [rdi - 1]
mov qword [0x1800b5970], rax
mov qword [0x1800b5978], rdi
lea rax, [0x1800b5940]
mov qword [rsp + 0x20], rax
mov rcx, qword [0x1800b5948]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x180048ac0
movabs rsi, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdx]
movzx r11d, byte [rcx + 0x10]
xor r11, rsi
imul r11, rdi
movzx eax, byte [rcx + 0x11]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x12]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x13]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x14]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x15]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x16]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x17]
xor r11, rax
imul r11, rdi
and r11, qword [0x1800b5970]
shl r11, 4
add r11, qword [0x1800b5958]
mov r9, qword [r11]
cmp r9, rbx
jne 0x180048a3f
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x180048ab4
mov rax, qword [r11 + 8]
mov r8, qword [rcx + 0x10]
cmp r8, qword [rax + 0x10]
jne 0x180048a7c
mov r8, qword [rax]
cmp r8, rcx
je 0x180048a76
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x180048ab4
cmp r9, rax
je 0x180048a90
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
je 0x180048ad9
cmp r9, rax
jne 0x180048a81
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x1800489c0
mov qword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
jmp 0x180048ab4
lea rcx, str.invalid_hash_bucket_count
call fcn.18004f9b8
int3
Function at 0x180049730
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18004991f
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [0x1800b59c8]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [0x1800b59d8]
call fcn.18001c1b0
lea rax, [rdi - 1]
mov qword [0x1800b59f0], rax
mov qword [0x1800b59f8], rdi
lea rax, [0x1800b59c0]
mov qword [rsp + 0x20], rax
mov rcx, qword [0x1800b59c8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x1800498e0
movabs rsi, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rdx]
movzx r11d, byte [rcx + 0x10]
xor r11, rsi
imul r11, rdi
movzx eax, byte [rcx + 0x11]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x12]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x13]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x14]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x15]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x16]
xor r11, rax
imul r11, rdi
movzx eax, byte [rcx + 0x17]
xor r11, rax
imul r11, rdi
and r11, qword [0x1800b59f0]
shl r11, 4
add r11, qword [0x1800b59d8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18004985f
mov qword [r11], rcx
mov qword [r11 + 8], rcx
jmp 0x1800498d4
mov rax, qword [r11 + 8]
mov r8, qword [rcx + 0x10]
cmp r8, qword [rax + 0x10]
jne 0x18004989c
mov r8, qword [rax]
cmp r8, rcx
je 0x180049896
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], r8
mov rax, qword [r8 + 8]
mov qword [rax], rcx
mov qword [r8 + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], rax
mov qword [r11 + 8], rcx
jmp 0x1800498d4
cmp r9, rax
je 0x1800498b0
mov rax, qword [rax + 8]
cmp r8, qword [rax + 0x10]
je 0x1800498f9
cmp r9, rax
jne 0x1800498a1
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r11], rcx
mov rcx, rdx
cmp rdx, rbx
jne 0x1800497e0
mov qword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rax]
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
jmp 0x1800498d4
lea rcx, str.invalid_hash_bucket_count
call fcn.18004f9b8
int3
Function at 0x18004ded0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
mov qword [rsp + 0x20], rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x18004e113
lea rax, [rdx - 1]
or rax, rbx
bsr rcx, rax
inc ecx
shl rbx, cl
mov rbp, qword [r13 + 8]
lea r12, [r13 + 0x18]
lea rdx, [rbx + rbx]
mov r8, rbp
mov rcx, r12
call fcn.18001c1b0
lea rax, [rbx - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rbx
mov qword [rsp + 0x28], r13
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x18004e0f2
movabs rax, 0xcbf29ce484222325
movabs r10, 0x100000001b3
nop dword [rax]
mov rsi, qword [rsi]
mov r15, qword [rdi + 0x20]
lea r8, [rdi + 0x10]
mov r9, qword [rdi + 0x28]
cmp r9, 0x10
jb 0x18004df89
mov r8, qword [rdi + 0x10]
mov rcx, rax
xor edx, edx
test r15, r15
je 0x18004dfb4
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r10
inc rdx
cmp rdx, r15
jb 0x18004dfa0
and rcx, qword [r13 + 0x30]
shl rcx, 4
mov r13, qword [r12]
add r13, rcx
mov r12, qword [r13]
cmp r12, rbp
jne 0x18004dfd9
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x18004e0d3
mov rbx, qword [r13 + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18004dfef
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x18004dffd
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18004e044
mov r8, r15
call fcn.180053d30
test eax, eax
jne 0x18004e040
mov rax, qword [rbx]
cmp rax, rdi
je 0x18004e037
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
mov qword [r13 + 8], rdi
jmp 0x18004e0c9
mov r9, qword [rdi + 0x28]
cmp r12, rbx
je 0x18004e0a4
mov rbx, qword [rbx + 8]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x18004e05f
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x18004e06d
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18004e044
mov r8, r15
call fcn.180053d30
test eax, eax
jne 0x18004e040
mov rax, qword [rbx]
mov r8, qword [rdi + 8]
mov qword [r8], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdi
mov qword [rax + 8], rdx
mov qword [rsi + 8], r8
mov qword [rdi + 8], rcx
jmp 0x18004e0c9
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r10, 0x100000001b3
mov rdi, rsi
cmp rsi, rbp
mov r13, qword [rsp + 0x20]
lea r12, [r13 + 0x18]
movabs rax, 0xcbf29ce484222325
jne 0x18004df70
mov qword [rsp + 0x28], 0
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.18004f9b8
int3
Function at 0x18004f082
Capabilities:
Get geographical location

Disassembly:
and eax, 0x1276fd1
xor eax, 0x245c8948
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 0x18004f10c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180089b10]
cmp byte [rcx + rax], 0
je 0x18004f10c
dec r8
sub rdx, 1
jne 0x18004f0f2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18004f088
Capabilities:
Get geographical location

Disassembly:
and eax, 0x1276fd1
xor eax, 0x245c8948
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 0x18004f10c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180089b10]
cmp byte [rcx + rax], 0
je 0x18004f10c
dec r8
sub rdx, 1
jne 0x18004f0f2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180051b5c
Capabilities:
Terminate process

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x18006a23b
call fcn.1800688f8
mov dword [rax], 0x16
call fcn.18006991c
xor eax, eax
jmp 0x18006a2c9
mov rdx, r9
mov rcx, r8
call fcn.18006a1a0
mov rbx, rax
test rax, rax
je 0x18006a2c6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18006a0cc]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18006a2b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18006886c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18006a29a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18006a2a9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18006ff10
jmp 0x18006a2c6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18006a2c3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x18006ca40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18006ca56
mov al, 1
jmp 0x18006cab6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18006ca67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18006cab4
mov ecx, dword [rcx + 0x18]
nop
call fcn.180077b84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18006cab4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18006cab4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18006cab4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18006cab6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800725fc
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.180051960
sub rsp, rax
mov rax, qword [0x1800b0080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18006c920
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007264b
mov rax, rbp
jmp 0x180072753
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 + 0xb4d40]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007401c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xb4d40]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007274f
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 0x18007274f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007401c
test rax, rax
js 0x18007274f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007274f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180072741
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180072741
cmp byte [rcx], 0xd
jne 0x180072727
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180072736
cmp byte [rcx + 1], 0xa
jne 0x180072736
inc rcx
jmp 0x180072736
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb0480]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180072709
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180072753
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180050f70
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 0x1800733bc
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, [0x1800b4d40]
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 0x180073413
cmp word [rdx], r13w
jne 0x180073413
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180073418
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18007353d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18007355e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180073451
mov rdx, r9
mov word [rbx], cx
jmp 0x180073478
cmp r9, r8
jae 0x180073488
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 0x180073432
jmp 0x18007353d
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 0x180073532
cmp dword [rsp + 0x80], esi
je 0x180073532
lea r8, [0x1800b4d40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18007350a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800734da
mov word [rbx], r13w
jmp 0x18007353a
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 0x1800734e7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18007353a
cmp word [rsp + 0x70], r13w
jne 0x180073517
cmp rbx, r14
je 0x1800734d4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180074024
cmp word [rsp + 0x70], r13w
je 0x18007353d
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, [0x1800b4d40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180073537
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18007353d
Function at 0x1800773c8
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 0x1800773f8
xor eax, eax
jmp 0x1800774bb
mov rbp, rbx
cmp word [rax], si
je 0x18007741d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180077404
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180077400
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.180075b14
movsxd r14, eax
test eax, eax
jne 0x18007745b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800773f1
mov rcx, r14
call fcn.180070394
mov rdi, rax
test rax, rax
jne 0x180077474
xor ecx, ecx
call fcn.18006ff10
jmp 0x180077450
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.180075b14
test eax, eax
jne 0x1800774a5
mov rcx, rdi
call fcn.18006ff10
jmp 0x1800774af
xor ecx, ecx
call fcn.18006ff10
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 0x18007a230
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.18006cf44
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 0x18007a2d1
cmp ebx, dword [rsp + 0x30]
je 0x18007a2ca
test esi, esi
je 0x18007a2ca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18007a2a5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18007a2b2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18007a28f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18007a2b6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18007a2d3
mov eax, 1
jmp 0x18007a2d3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18007e608
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180074024
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180074024
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18007e758
cmp rax, 0xffffffffffffffff
je 0x18007e758
xor edi, edi
test rbp, rbp
jle 0x18007e703
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18006ed98
mov rbx, rax
test rax, rax
jne 0x18007e690
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18007e6f9
mov edx, 0x8000
mov ecx, r14d
call fcn.18007e48c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18006f9a8
cmp eax, 0xffffffff
je 0x18007e6d9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18007e6a0
mov edx, r15d
mov ecx, r14d
call fcn.18007e48c
jmp 0x18007e6f9
cmp byte [rsi + 0x38], dil
je 0x18007e6f0
cmp dword [rsi + 0x34], 5
jne 0x18007e6f0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18007e6f9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18006ff10
jmp 0x18007e76c
jns 0x18007e76c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180074024
cmp rax, 0xffffffffffffffff
jne 0x18007e724
cmp byte [rsi + 0x30], dil
je 0x18007e76c
mov edi, dword [rsi + 0x2c]
jmp 0x18007e76c
mov ecx, r14d
call fcn.180077b84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18007e76c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18007e76c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18007e765
mov eax, dword [rsi + 0x2c]
jmp 0x18007e76a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180074024
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret