joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c3dc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140046620]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14000bf20
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.14000bf20
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14002c46f
cmp dword [rsp + 0x24], 5
jb 0x14002c489
jmp 0x14002c485
cmp dword [rsp + 0x30], esi
jne 0x14002c489
cmp dword [rsp + 0x24], 4
ja 0x14002c485
jne 0x14002c489
cmp dword [rsp + 0x28], 0
jbe 0x14002c489
mov byte [rbx + 0x18], sil
lea rax, [0x14003afa0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14002c21c
movzx ecx, byte [0x140048138]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140048138], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000c100
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400151bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001523a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015231
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015231
mov rax, qword [rbp - 8]
jmp 0x14001524f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015204
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140001000
Capabilities:
Get common file path
Get startup folder
Read file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0xfe88
call fcn.140001c10
sub rsp, rax
mov rax, qword [0x140004010]
xor rax, rsp
mov qword [rsp + 0xfe80], rax
stmxcsr dword [rsp + 0xb050]
or dword [rsp + 0xb050], 0x8040
ldmxcsr dword [rsp + 0xb050]
lea rsi, [rsp + 0xb050]
mov ecx, 0x2710
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdi, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea r14, [rsp + 0x8930]
mov r8d, 0x2710
mov rcx, r14
mov rdx, rsi
call rdi
lea rsi, [rsp + 0x3b10]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov edx, 7
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rbx, [rsp + 0x13f0]
mov r8d, 0x2710
mov rcx, rbx
mov rdx, rsi
call rdi
mov rcx, rbx
mov rdx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x1400011a8
lea rsi, [rsp + 0xc20]
lea rdx, [rsp + 0x3b10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x140003162]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rsi, [rsp + 0x8930]
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
movabs rbx, 0x78652e706574735c
mov qword [rsp + rax + 0x8930], rbx
movabs rcx, 0x2220226578652e
mov qword [rsp + rax + 0x8935], rcx
lea rcx, [rsp + 0x830]
lea rdi, [rsp + 0x13f0]
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + rax + 0x13f0], rbx
mov dword [rsp + rax + 0x13f8], 0x202265
mov dword [rsp + 0x440], 0x79706f63
mov dword [rsp + 0x443], 0x222079
lea rbx, [rsp + 0x440]
mov rcx, rbx
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov rcx, rbx
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea rdx, str.r_step.exe
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8d, 0x400
mov r9, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0xfe80]
xor rcx, rsp
call fcn.140001c70
mov eax, 0xffffffff
add rsp, 0xfe88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x18000b0b0
Capabilities:
Link function at runtime on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rcx, qword [rcx]
test rcx, rcx
je 0x18000b0d7
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret

Function at 0x1800156a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, qword [rcx]
cmp r14, qword [rcx + 8]
je 0x1800157a3
mov rsi, rcx
lea rdi, [rsp + 0x28]
mov r15, qword [sym.imp.USER32.dll_SendInput]
nop word [rax + rax]
movzx ebx, byte [r14]
mov dword [rsp + 0x28], 1
mov ecx, ebx
call fcn.18001fe10
mov word [rsp + 0x30], ax
mov ecx, ebx
call fcn.18001fe90
mov word [rsp + 0x32], ax
movzx eax, ax
xor ecx, ecx
cmp eax, 0x2000
setae cl
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov ecx, 1
mov rdx, rdi
mov r8d, 0x28
call r15
inc r14
cmp r14, qword [rsi + 8]
jne 0x1800156d0
cmp r14, qword [rsi]
je 0x1800157a3
lea rdi, [rsp + 0x28]
nop word [rax + rax]
movzx ebx, byte [r14 - 1]
dec r14
mov dword [rsp + 0x28], 1
mov ecx, ebx
call fcn.18001fe10
mov word [rsp + 0x30], ax
mov ecx, ebx
call fcn.18001fe90
mov word [rsp + 0x32], ax
movzx eax, ax
xor ecx, ecx
cmp eax, 0x2000
setb cl
xor ecx, 3
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov ecx, 1
mov rdx, rdi
mov r8d, 0x28
call r15
cmp r14, qword [rsi]
jne 0x180015740
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180017100
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x180017196
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x18001719d
mov r15, rsi
jmp 0x18001715b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.180049d60
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x18001718e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180017173
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x180017130
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18001718e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x18001715b
sub rsi, r15
jmp 0x18001728a
xor esi, esi
jmp 0x18001728a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800171f0
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x1800171f0
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.180049d60
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x180017201
jmp 0x180017287
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x180017287
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x180017230
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x180017263
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.180030764
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x180017230
jmp 0x180017287
test r14, r14
je 0x180017284
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.180030764
sub r14, rax
jmp 0x180017287
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18001fe10
Capabilities:
Log keystrokes

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov qword [rbp - 8], 0xfffffffffffffffe
lea eax, [rcx - 0x5d]
cmp al, 0xd
jae 0x18001fe38
movzx edx, al
mov r8d, 0x1bf7
bt r8d, edx
jb 0x18001fe52
call fcn.18001fe90
movzx ecx, ax
mov edx, 3
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
nop
add rsp, 0x30
pop rbp
ret
movsx rax, al
lea rcx, str.ghi_defabc__n
mov eax, dword [rcx + rax*4]
add rsp, 0x30
pop rbp
ret
Function at 0x1800230e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x18
movdqa xmmword [rsp], xmm6
mov eax, dword [rcx]
cmp eax, 0x138
jne 0x18002317d
movq xmm0, qword [rcx + 8]
pshufd xmm3, xmm0, 0x44
mov rax, 0xfffffffffffffec8
movaps xmm0, xmmword [0x18004bff0]
movaps xmm1, xmmword [0x18004c000]
movdqa xmm2, xmmword [0x18004c010]
nop dword [rax]
movups xmm4, xmmword [rcx + rax*8 + 0x9d0]
shufps xmm3, xmm4, 0x4e
andps xmm3, xmm0
movaps xmm5, xmm4
andps xmm5, xmm1
orps xmm5, xmm3
psrlq xmm5, 1
movaps xmm3, xmm4
psllq xmm4, 0x3f
psrad xmm4, 0x1f
pshufd xmm4, xmm4, 0xf5
pand xmm4, xmm2
movdqu xmm6, xmmword [rcx + rax*8 + 0xea8]
pxor xmm6, xmm4
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*8 + 0x1388], xmm6
add rax, 2
jne 0x180023120
mov eax, 0x138
jmp 0x18002330e
cmp eax, 0x270
jb 0x18002330e
movq xmm0, qword [rcx + 0x9c8]
pshufd xmm3, xmm0, 0x44
mov rax, 0xffffffffffffff64
movaps xmm0, xmmword [0x18004bff0]
movaps xmm1, xmmword [0x18004c000]
movdqa xmm2, xmmword [0x18004c010]
nop word cs:[rax + rax]
movups xmm4, xmmword [rcx + rax*8 + 0xeb0]
shufps xmm3, xmm4, 0x4e
andps xmm3, xmm0
movaps xmm5, xmm4
andps xmm5, xmm1
orps xmm5, xmm3
psrlq xmm5, 1
movaps xmm3, xmm4
psllq xmm4, 0x3f
psrad xmm4, 0x1f
pshufd xmm4, xmm4, 0xf5
pand xmm4, xmm2
movdqu xmm6, xmmword [rcx + rax*8 + 0x1388]
pxor xmm6, xmm4
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*8 + 0x4e8], xmm6
add rax, 2
jne 0x1800231c0
movq xmm3, qword [rcx + 0xea8]
pshufd xmm3, xmm3, 0x44
xor eax, eax
nop word cs:[rax + rax]
movdqa xmm4, xmm3
movups xmm3, xmmword [rcx + rax*8 + 0xeb0]
shufps xmm4, xmm3, 0x4e
andps xmm4, xmm0
movaps xmm5, xmm3
andps xmm5, xmm1
orps xmm5, xmm4
psrlq xmm5, 1
movaps xmm4, xmm3
psllq xmm4, 0x3f
psrad xmm4, 0x1f
pshufd xmm4, xmm4, 0xf5
pand xmm4, xmm2
movdqu xmm6, xmmword [rcx + rax*8 + 8]
pxor xmm6, xmm4
pxor xmm6, xmm5
movdqu xmmword [rcx + rax*8 + 0x4e8], xmm6
add rax, 2
cmp rax, 0x9a
jne 0x180023230
pshufd xmm0, xmm3, 0xee
movq rax, xmm0
and rax, 0xffffffff80000000
mov rdx, qword [rcx + 0x1380]
mov r8d, edx
and r8d, 0x7ffffffe
or r8, rax
shr r8, 1
mov eax, edx
and eax, 1
neg rax
movabs r9, 0xb5026f5aa96619e9
and rax, r9
xor rax, qword [rcx + 0x4d8]
xor rax, r8
mov qword [rcx + 0x9b8], rax
and rdx, 0xffffffff80000000
mov rax, qword [rcx + 8]
mov r8d, eax
and r8d, 0x7ffffffe
or r8, rdx
and eax, 1
neg rax
and rax, r9
xor rax, qword [rcx + 0x4e0]
shr r8, 1
xor rax, r8
mov qword [rcx + 0x9c0], rax
xor eax, eax
lea edx, [rax + 1]
mov dword [rcx], edx
mov eax, eax
mov rax, qword [rcx + rax*8 + 8]
mov rdx, rax
shr rdx, 0x1d
and rdx, qword [rcx + 0x1388]
xor rdx, rax
mov rax, rdx
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rcx, rax
xor rcx, rdx
mov edx, ecx
and edx, 0x7ffbf77
shl rdx, 0x25
xor rdx, rcx
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
movaps xmm6, xmmword [rsp]
add rsp, 0x18
ret
Function at 0x180023460
Capabilities:
Hash data using fnv

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movabs rax, 0x800000000000001
cmp rdx, rax
jae 0x180023648
mov rsi, rcx
dec rdx
or rdx, 1
bsr rcx, rdx
xor ecx, 0x3f
neg cl
mov ebx, 1
shl rbx, cl
lea rax, [rsi + 0x18]
mov rdi, qword [rsi + 8]
mov edx, 2
shl rdx, cl
mov rcx, rax
mov r8, rdi
call fcn.180022cd0
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rbx
mov rax, qword [rsi + 8]
mov r8, qword [rax]
cmp r8, rdi
je 0x18002363c
movabs rax, 0x100000001b3
movabs rcx, 0xcbf29ce484222325
jmp 0x180023501
mov qword [r9 + r10*8], rdx
mov qword [r9 + rbx*8], rdx
cmp r8, rdi
je 0x18002363c
mov rdx, r8
movzx r8d, byte [r8 + 0x10]
xor r8, rcx
imul r8, rax
movzx r9d, byte [rdx + 0x11]
xor r9, r8
imul r9, rax
movzx r8d, byte [rdx + 0x12]
xor r8, r9
imul r8, rax
movzx r9d, byte [rdx + 0x13]
xor r9, r8
imul r9, rax
movzx r8d, byte [rdx + 0x14]
xor r8, r9
imul r8, rax
movzx r9d, byte [rdx + 0x15]
xor r9, r8
imul r9, rax
movzx r8d, byte [rdx + 0x16]
xor r8, r9
imul r8, rax
movzx r11d, byte [rdx + 0x17]
xor r11, r8
imul r11, rax
and r11, qword [rsi + 0x30]
mov r8, qword [rdx]
mov r9, qword [rsi + 0x18]
lea r10, [r11 + r11]
lea rbx, [r11 + r11]
inc rbx
shl r11, 4
mov r11, qword [r9 + r11]
cmp r11, rdi
je 0x1800234f0
mov r14, qword [r9 + rbx*8]
mov r15, qword [rdx + 0x10]
cmp r15, qword [r14 + 0x10]
je 0x1800235e0
nop dword [rax]
cmp r11, r14
je 0x180023612
mov r14, qword [r14 + 8]
cmp r15, qword [r14 + 0x10]
jne 0x1800235a0
mov r9, qword [r14]
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r11, qword [r8 + 8]
mov qword [r11], r9
mov rbx, qword [r9 + 8]
mov qword [rbx], rdx
mov qword [r9 + 8], r11
mov qword [r8 + 8], r10
mov qword [rdx + 8], rbx
jmp 0x1800234f8
mov r10, qword [r14]
cmp r10, rdx
je 0x1800234f4
mov r11, qword [rdx + 8]
mov qword [r11], r8
mov r14, qword [r8 + 8]
mov qword [r14], r10
mov r15, qword [r10 + 8]
mov qword [r15], rdx
mov qword [r10 + 8], r14
mov qword [r8 + 8], r11
mov qword [rdx + 8], r15
jmp 0x1800234f4
mov rbx, qword [rdx + 8]
mov qword [rbx], r8
mov r14, qword [r8 + 8]
mov qword [r14], r11
mov r15, qword [r11 + 8]
mov qword [r15], rdx
mov qword [r11 + 8], r14
mov qword [r8 + 8], rbx
mov qword [rdx + 8], r15
mov qword [r9 + r10*8], rdx
jmp 0x1800234f8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.180024a80
int3
Function at 0x180025df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1800257c0
mov ebx, eax
test eax, eax
jne 0x180025e20
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x180025e7c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180025e73
test al, 0x10
je 0x180025e73
bt eax, 0xa
jae 0x180025e6c
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.180025e94
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x180025e68
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x180025e8c
test edi, edi
jne 0x180025e73
and dword [rsp + 0x3c], 0
jmp 0x180025e78
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1800329e0
int3

Function at 0x180026114
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18002614e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180026153
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18002619c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18004d650]
cmp byte [rcx + rax], 0
je 0x18002619c
dec r8
sub rdx, 1
jne 0x180026182
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18003b45c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18003b472
mov al, 1
jmp 0x18003b4d2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18003b483
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18003b4d0
mov ecx, dword [rcx + 0x18]
nop
call fcn.180045820
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18003b4d0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18003b4d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18003b4d0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18003b4d2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18003c478
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, [0x1800687d0]
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 0x18003c4cf
cmp word [rdx], r13w
jne 0x18003c4cf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003c4d4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18003c5f9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18003c61a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18003c50d
mov rdx, r9
mov word [rbx], cx
jmp 0x18003c534
cmp r9, r8
jae 0x18003c544
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 0x18003c4ee
jmp 0x18003c5f9
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 0x18003c5ee
cmp dword [rsp + 0x80], esi
je 0x18003c5ee
lea r8, [0x1800687d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18003c5c6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18003c596
mov word [rbx], r13w
jmp 0x18003c5f6
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 0x18003c5a3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18003c5f6
cmp word [rsp + 0x70], r13w
jne 0x18003c5d3
cmp rbx, r14
je 0x18003c590
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003d0e0
cmp word [rsp + 0x70], r13w
je 0x18003c5f9
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, [0x1800687d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003c5f3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18003c5f9
Function at 0x18003d49c
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.1800491c0
sub rsp, rax
mov rax, qword [0x180065640]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800388f0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18003d4eb
mov rax, rbp
jmp 0x18003d5f3
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 + 0x687d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18003d0d8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x687d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18003d5ef
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 0x18003d5ef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18003d0d8
test rax, rax
js 0x18003d5ef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18003d5ef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18003d5e1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18003d5e1
cmp byte [rcx], 0xd
jne 0x18003d5c7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18003d5d6
cmp byte [rcx + 1], 0xa
jne 0x18003d5d6
inc rcx
jmp 0x18003d5d6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x65ac0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18003d5a9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18003d5f3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180049190
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret