joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800548b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800548d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x18005494c
mov rdi, r14
mov rcx, rbx
call fcn.1800579b0
test rax, rax
jle 0x180054924
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1800d4200
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18005493c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180054944
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800548e6
sub r14, rdi
jmp 0x180054a2f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180054963
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180054965
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180054997
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800d4200
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180054a2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800549d2
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x180054a0d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1800e1648
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180054a2c
cmp rbp, rax
ja 0x1800549e0
test rbp, rbp
je 0x180054a2c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800e1648
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x180067950
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
lea r10, [0x180114e40]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
movzx r9d, r8b
xor r9, rax
shr r8d, 8
xor r8d, dword [r10 + r9*4]
sub rdx, 1
jne 0x180067960
not r8d
mov eax, r8d
ret
Function at 0x180067990
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1800679ed
lea rbx, [0x180114e40]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1800679d4
cmp r10, 2
jb 0x1800679d4
cmp byte [r9], r8b
jne 0x1800679d4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1800679b0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180067a2f
lea rbx, [0x180114e40]
cmp r8b, 0x23
jne 0x180067a13
cmp byte [r9], r8b
jne 0x180067a13
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180067a00
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180067c00
Capabilities:
Read file on windows

Disassembly:
mov edx, 1
jmp fcn.1800e1648
Function at 0x18008e490
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov ebx, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub ebx, eax
test r8d, r8d
je 0x18008e5cc
mov qword [rsp + 0x20], rdi
xor edx, edx
cmp ebx, 7
jbe 0x18008e532
lea r8d, [rdx + 7]
movzx eax, byte [r10]
add edx, 8
add ecx, eax
add r8d, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp r8d, ebx
jb 0x18008e4d3
xor r8d, r8d
xor r11d, r11d
cmp edx, ebx
jae 0x18008e594
mov eax, ebx
sub eax, edx
cmp eax, 2
jb 0x18008e581
mov eax, ebx
sub eax, edx
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea edx, [rdx + rax*2]
nop word [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add r8d, ecx
add r10, 2
add ecx, eax
add r11d, ecx
sub rdi, 1
jne 0x18008e560
cmp edx, ebx
jae 0x18008e58d
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r11 + r8]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, ebx
mov ebx, 0x15b0
jne 0x18008e4c8
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rsi
ret
Function at 0x18008fd30
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.18008fd00
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18008fd69
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x180090080
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret

Function at 0x1800a60f0
Capabilities:
Hash data using fnv

Disassembly:
mov rdx, rcx
jmp 0x1800a6100
movzx ecx, byte [rdx + 2]
movabs r9, 0x100000001b3
movzx r8d, byte [rdx]
movabs rax, 0xcbf29ce484222325
xor r8, rax
movzx eax, byte [rdx + 1]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 3]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
Function at 0x1800c9f60
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x180130098]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
cmp rdi, 0x40000000
jbe 0x1800c9faa
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x180154eb0]
lea rbp, [rdi + 0x40000000]
cmp rcx, rbp
cmovbe rbp, rcx
sub rbp, 0xfff
test rbx, rbx
je 0x1800c9fed
nop dword [rax + rax]
cmp rbx, rsi
jb 0x1800c9fe5
cmp rbx, rbp
jae 0x1800c9fe5
cmp qword [rbx + 8], 0
jne 0x1800ca0ef
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800c9fd0
mov qword [rsp + 0x88], r14
mov r14d, 0x40
mov qword [rsp + 0x90], r15
mov r15, rdi
cmp rdi, rsi
jb 0x1800ca053
nop dword [rax + rax]
mov r8d, dword [rsp + 0x50]
mov rdx, rsi
mov rcx, r15
call fcn.1800c9e10
mov r15, rax
test rax, rax
je 0x1800ca04e
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800ca09e
cmp r15, rsi
jae 0x1800ca010
jmp 0x1800ca053
test rbx, rbx
jne 0x1800ca09e
cmp rdi, rbp
ja 0x1800ca0df
nop dword [rax]
mov r8d, dword [rsp + 0x50]
mov rdx, rbp
mov rcx, rdi
call fcn.1800c9eb0
mov rdi, rax
test rax, rax
je 0x1800ca0df
mov r9d, r14d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1800ca09e
cmp rdi, rbp
jbe 0x1800ca060
jmp 0x1800ca0df
xor edx, edx
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], edx
nop word [rax + rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rbx + 8], rcx
add r14, 0x40
add rcx, 0x40
mov rdx, rax
cmp r14, 0xfc0
jbe 0x1800ca0b0
mov rax, qword [0x180154eb0]
mov qword [rbx], rax
mov qword [0x180154eb0], rbx
mov r15, qword [rsp + 0x90]
mov r14, qword [rsp + 0x88]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800d1d10
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800cac90
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x180130098]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800cadb9
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800cadb0
mov qword [rsp + 0x68], rdi
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800cad8d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800cad8d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800cad8d
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1800cad4a
mov rcx, qword [0x1801540d0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800cadab
lea rdi, [rbx + 0xc]
jmp 0x1800cad82
mov eax, dword [rbx + 8]
lea rdi, [rbx + 0xc]
cmp dword [rdi], eax
jb 0x1800cad82
mov rcx, qword [0x1801540d0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800cadab
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rdi]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1800cacf0
mov rdi, qword [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d1d10
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret

Function at 0x1800cade0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov ebp, r8d
mov qword [rcx], rbx
mov r14d, edx
mov qword [rcx + 8], rbx
mov rdi, rcx
call fcn.1800cac90
cmp qword [rdi], rbx
je 0x1800cae68
cmp dword [rdi + 0xc], ebx
jbe 0x1800cae68
mov qword [rsp + 0x30], rsi
nop dword [rax + rax]
mov rax, qword [rdi]
xor edx, edx
mov ecx, ebx
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800cae5c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.1800cab50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800cae20
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800cae80
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800caeef
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800caed8
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800caecc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800caea0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x1801540d0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800caf00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180130098]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180154ea0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800caf73
mov eax, 0xa
jmp 0x1800cb002
test esi, esi
je 0x1800caf95
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800cafb8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800cafb8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800cafb1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800cafb8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, 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 rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800d1d10
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800d18e8
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 0x1800d196c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180106470]
cmp byte [rcx + rax], 0
je 0x1800d196c
dec r8
sub rdx, 1
jne 0x1800d1952
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1800e1e5c
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.1800d2c80
sub rsp, rax
mov rax, qword [0x180130098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800ecb00
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800e1eab
mov rax, rbp
jmp 0x1800e1fb3
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 + 0x153920]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800f1d90
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x153920]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800e1faf
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 0x1800e1faf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800f1d90
test rax, rax
js 0x1800e1faf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800e1faf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800e1fa1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800e1fa1
cmp byte [rcx], 0xd
jne 0x1800e1f87
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800e1f96
cmp byte [rcx + 1], 0xa
jne 0x1800e1f96
inc rcx
jmp 0x1800e1f96
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x130470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800e1f69
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800e1fb3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800d1d10
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 0x1800ecc20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800ecc36
mov al, 1
jmp 0x1800ecc96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800ecc47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800ecc94
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800f8aec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800ecc94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800ecc94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800ecc94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800ecc96
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800f1130
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, [0x180153920]
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 0x1800f1187
cmp word [rdx], r13w
jne 0x1800f1187
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800f118c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800f12b1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800f12d2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800f11c5
mov rdx, r9
mov word [rbx], cx
jmp 0x1800f11ec
cmp r9, r8
jae 0x1800f11fc
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 0x1800f11a6
jmp 0x1800f12b1
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 0x1800f12a6
cmp dword [rsp + 0x80], esi
je 0x1800f12a6
lea r8, [0x180153920]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800f127e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800f124e
mov word [rbx], r13w
jmp 0x1800f12ae
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 0x1800f125b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800f12ae
cmp word [rsp + 0x70], r13w
jne 0x1800f128b
cmp rbx, r14
je 0x1800f1248
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800f1d98
cmp word [rsp + 0x70], r13w
je 0x1800f12b1
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, [0x180153920]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800f12ab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800f12b1
Function at 0x1800f5948
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 0x1800f5978
xor eax, eax
jmp 0x1800f5a3b
mov rbp, rbx
cmp word [rax], si
je 0x1800f599d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800f5984
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800f5980
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.1800f4030
movsxd r14, eax
test eax, eax
jne 0x1800f59db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800f5971
mov rcx, r14
call fcn.1800ee520
mov rdi, rax
test rax, rax
jne 0x1800f59f4
xor ecx, ecx
call fcn.1800ee09c
jmp 0x1800f59d0
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.1800f4030
test eax, eax
jne 0x1800f5a25
mov rcx, rdi
call fcn.1800ee09c
jmp 0x1800f5a2f
xor ecx, ecx
call fcn.1800ee09c
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 0x1800f828c
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.1800eaf20
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 0x1800f832d
cmp ebx, dword [rsp + 0x30]
je 0x1800f8326
test esi, esi
je 0x1800f8326
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800f8301
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800f830e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800f82eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800f8312
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800f832f
mov eax, 1
jmp 0x1800f832f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800fd2a4
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.1800f1d98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800f1d98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800fd3f4
cmp rax, 0xffffffffffffffff
je 0x1800fd3f4
xor edi, edi
test rbp, rbp
jle 0x1800fd39f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800ecfdc
mov rbx, rax
test rax, rax
jne 0x1800fd32c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800fd395
mov edx, 0x8000
mov ecx, r14d
call fcn.1800fd128
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.1800edd94
cmp eax, 0xffffffff
je 0x1800fd375
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800fd33c
mov edx, r15d
mov ecx, r14d
call fcn.1800fd128
jmp 0x1800fd395
cmp byte [rsi + 0x38], dil
je 0x1800fd38c
cmp dword [rsi + 0x34], 5
jne 0x1800fd38c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800fd395
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800ee09c
jmp 0x1800fd408
jns 0x1800fd408
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800f1d98
cmp rax, 0xffffffffffffffff
jne 0x1800fd3c0
cmp byte [rsi + 0x30], dil
je 0x1800fd408
mov edi, dword [rsi + 0x2c]
jmp 0x1800fd408
mov ecx, r14d
call fcn.1800f8aec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800fd408
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 0x1800fd408
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800fd401
mov eax, dword [rsi + 0x2c]
jmp 0x1800fd406
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800f1d98
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