joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b0590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov eax, 1
movzx ecx, byte [rdx + 0xb]
mov rbx, rdx
shl eax, cl
mov rcx, rdx
cdqe
lea r8, [rax + rax*2]
mov rax, qword [rdx + 0x18]
lea rbp, [rax + r8*8]
call fcn.1400b1d20
xor esi, esi
test eax, eax
je 0x1400b0608
mov r10d, esi
mov r11d, eax
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
test byte [r10 + rax + 8], 0x40
je 0x1400b05fe
mov rdx, qword [r10 + rax]
test byte [rdx + 9], 0x18
je 0x1400b05fe
mov rcx, rdi
call fcn.1400af350
add r10, 0x10
sub r11, 1
jne 0x1400b05e0
mov r10, qword [rbx + 0x18]
cmp r10, rbp
jae 0x1400b0664
movzx eax, byte [r10 + 8]
test al, 0xf
jne 0x1400b0628
test byte [r10 + 9], 0x40
je 0x1400b065b
mov byte [r10 + 9], 0xb
jmp 0x1400b065b
test byte [r10 + 9], 0x40
je 0x1400b0646
mov rdx, qword [r10 + 0x10]
test byte [rdx + 9], 0x18
je 0x1400b0646
mov rcx, rdi
call fcn.1400af350
movzx eax, byte [r10 + 8]
test al, 0x40
je 0x1400b065b
mov rdx, qword [r10]
test byte [rdx + 9], 0x18
je 0x1400b065b
mov rcx, rdi
call fcn.1400af350
add r10, 0x18
cmp r10, rbp
jb 0x1400b0611
movzx eax, byte [rbx + 9]
movzx ecx, al
and cl, 7
cmp cl, 5
jne 0x1400b06cf
movzx eax, byte [rbx + 8]
add eax, 0xfffffffb
cmp eax, 0x21
ja case.0x1400b069a.9
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0xb0708]
mov ecx, dword [rdx + rax*4 + 0xb06f0]
add rcx, rdx
jmp rcx
lea rsi, [rbx + 0x30]
jmp case.0x1400b069a.9
lea rsi, [rbx + 0x10]
jmp case.0x1400b069a.9
lea rsi, [rbx + 0x40]
jmp case.0x1400b069a.9
lea rsi, [rbx + 0x78]
jmp case.0x1400b069a.9
lea rsi, [rbx + 0x20]
mov rax, qword [rdi + 0x90]
mov qword [rsi], rax
mov qword [rdi + 0x90], rbx
and byte [rbx + 9], 0xc7
jmp 0x1400b06d9
cmp cl, 6
jne 0x1400b06d9
xor al, 2
mov byte [rbx + 9], al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b0d80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, r8
mov rbp, rdx
cmp r8, 0x28
ja 0x1400b0da5
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.1400b0940
movabs rax, 0x7fffffffffffffdf
cmp rsi, rax
jae 0x1400b0e0d
mov rax, qword [rcx + 0x18]
add r8, 0x19
mov qword [rsp + 0x30], rbx
mov edx, 0x14
mov qword [rsp + 0x38], rdi
mov ebx, dword [rax + 0x60]
call fcn.1400ae4f0
mov r8, rsi
mov rdx, rbp
mov rdi, rax
mov dword [rax + 0xc], ebx
lea rcx, [rax + 0x18]
mov byte [rax + 0xa], 0
mov byte [rax + rsi + 0x18], 0
mov qword [rax + 0x10], rsi
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call fcn.1400c4e20
int3
Function at 0x1400bb930
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x14016efd0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.1400a4720
mov rcx, rbp
mov r15d, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov rcx, rbx
sub r15d, 1
jne 0x1400bb9ac
mov r8d, 1
mov rdx, rbp
call fcn.1400bc160
mov esi, eax
lea r14d, [r13 + 1]
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x1400bbb35
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1400a7c50
jmp 0x1400bbb52
lea edx, [r15 + 0x14]
lea r8, str.too_many_arguments
call fcn.1400a7930
mov esi, 1
mov r14d, r13d
dec r15d
test esi, esi
je 0x1400bb98a
mov edx, r14d
mov rcx, rbx
call fcn.1400a5840
mov edx, r14d
mov rcx, rbx
cmp eax, 3
jne 0x1400bba70
call fcn.1400a7710
mov rdi, rax
test rax, rax
jne 0x1400bba23
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_getc
mov rdx, rbp
mov ecx, eax
mov edi, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ungetc
lea rdx, [0x1401121b0]
mov rcx, rbx
call fcn.1400a4d80
xor esi, esi
cmp edi, 0xffffffff
setne sil
jmp 0x1400bbb13
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400a7670
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400a8570
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov rdi, rax
call fcn.1400a8580
xor esi, esi
test rdi, rdi
setne sil
jmp 0x1400bbb13
xor r8d, r8d
call fcn.1400a77a0
movzx ecx, byte [rax]
cmp cl, 0x2a
jne 0x1400bba84
movzx ecx, byte [rax + 1]
cmp cl, 0x4c
je 0x1400bbb03
cmp cl, 0x61
je 0x1400bbab1
cmp cl, 0x6c
je 0x1400bbaa9
cmp cl, 0x6e
mov rcx, rbx
jne 0x1400bbb24
mov rdx, rbp
call fcn.1400bc290
jmp 0x1400bbb11
mov r8d, 1
jmp 0x1400bbb06
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400a7670
nop
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400a8570
mov r9, rbp
mov edx, 1
mov r8d, 0x400
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add qword [rsp + 0x30], rax
cmp rax, 0x400
je 0x1400bbac0
lea rcx, [rsp + 0x20]
call fcn.1400a8580
mov esi, 1
jmp 0x1400bbb13
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
call fcn.1400bc160
mov esi, eax
inc r14d
test r15d, r15d
jne 0x1400bb9c4
jmp 0x1400bb98a
lea r8, str.invalid_format
mov edx, r14d
call fcn.1400a7560
jmp 0x1400bbb52
test esi, esi
jne 0x1400bbb4c
lea edx, [rsi - 2]
mov rcx, rbx
call fcn.1400a53c0
mov rcx, rbx
call fcn.1400a4d50
sub r14d, r13d
mov eax, r14d
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400d0340
add rsp, 0x450
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c48d0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rsi
push r15
sub rsp, 0x478
mov rax, qword [0x14016efd0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov qword [r11 - 0x18], rbx
mov r15, rdx
mov qword [r11 - 0x20], rbp
lea rdx, str._s_s
mov qword [r11 - 0x28], rdi
mov rbx, r8
mov qword [r11 - 0x30], r14
mov rsi, rcx
mov r14, r9
lea r9, str._5_4
call fcn.1400a4c60
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdi, rax
test rax, rax
jne 0x1400c4942
mov rcx, rbx
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rdi, rax
test rax, rax
je 0x1400c4a67
lea r8, str.LUA_NOENV
mov edx, 0xfff0b9d8
mov rcx, rsi
call fcn.1400a44d0
mov edx, 0xffffffff
mov rcx, rsi
call fcn.1400a5570
mov edx, 0xfffffffe
mov rcx, rsi
mov ebx, eax
call fcn.1400a53c0
test ebx, ebx
jne 0x1400c4a67
lea rdx, [0x1400dadc4]
mov rcx, rdi
call sub.VCRUNTIME140.dll_strstr
mov rbp, rax
test rax, rax
jne 0x1400c4999
mov rdx, rdi
jmp 0x1400c4a6a
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400c49a0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400a7670
cmp rdi, rbp
jae 0x1400c49fc
mov r8, rbp
lea rcx, [rsp + 0x20]
sub r8, rdi
mov rdx, rdi
call fcn.1400a7430
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x1400c49ee
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1400a8570
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov byte [rax + rcx], 0x3b
inc qword [rsp + 0x30]
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.1400a7480
lea rax, [rdi - 2]
add rax, rbx
cmp rbp, rax
jae 0x1400c4a5b
mov rcx, qword [rsp + 0x30]
cmp rcx, qword [rsp + 0x28]
jb 0x1400c4a35
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1400a8570
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
lea r8, [rdi - 2]
sub rbx, rbp
lea rdx, [rbp + 2]
add r8, rbx
mov byte [rax + rcx], 0x3b
lea rcx, [rsp + 0x20]
inc qword [rsp + 0x30]
call fcn.1400a7430
lea rcx, [rsp + 0x20]
call fcn.1400a8580
jmp 0x1400c4a72
mov rdx, r14
mov rcx, rsi
call fcn.1400a4d80
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r14, qword [rsp + 0x458]
mov rdi, qword [rsp + 0x460]
mov rbp, qword [rsp + 0x468]
mov rbx, qword [rsp + 0x470]
test eax, eax
je 0x1400c4b0d
cmp eax, 0x105
je 0x1400c4b0d
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400c4b0d
xor r8d, r8d
mov byte [rax], 0
mov rcx, rsi
lea edx, [r8 - 1]
call fcn.1400a5650
mov rdx, rax
lea r9, [rsp + 0x20]
lea r8, [0x1400dad88]
mov rcx, rsi
call fcn.1400a7e00
mov edx, 0xfffffffe
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.1400a5090
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1400a53c0
jmp 0x1400c4b1c
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rsi
call fcn.1400a7b00
mov r8, r15
mov edx, 0xfffffffd
mov rcx, rsi
call fcn.1400a5180
mov edx, 0xfffffffe
mov rcx, rsi
call fcn.1400a53c0
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400d0340
add rsp, 0x478
pop r15
pop rsi
ret
Function at 0x1400d0060
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 0x1400d00e4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400f4530]
cmp byte [rcx + rax], 0
je 0x1400d00e4
dec r8
sub rdx, 1
jne 0x1400d00ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400d1098
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d10e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d10e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d10e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d10e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d10e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d10e4
xor al, al
add rsp, 0x28
ret
Function at 0x1800026c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
sub rsp, 0x3c0
xor ebx, ebx
mov rcx, r8
mov rbp, rdx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800028b5
mov qword [rsp + 0x3e8], rdi
lea r9, [rsp + 0x3e0]
lea r8d, [rbx + 0x40]
mov qword [rsp + 0x3f0], r14
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0xac]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x3e0]
mov qword [rsp + 0x20], rbx
mov r8d, 0x108
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [rsp + 0xb6]
lea r9d, [rbx + 1]
sub eax, 7
xor r8d, r8d
lea ecx, [rax + rax*4]
movzx eax, word [rsp + 0xc4]
lea edx, [rax + rcx*8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x3e0]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 0x28]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [rsp + 0x50]
xor edx, edx
add edi, dword [rsp + 0x54]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
cmp edi, eax
jae 0x180002897
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18000289c
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9d, [rbx + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
lea r9, [rsp + 0x3e0]
mov qword [rsp + 0x20], rbx
mov r8d, 0x200
lea rdx, [rsp + 0x1c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000288e
mov r8d, dword [rsp + 0x3e0]
lea r9, [rsp + 0x3e0]
lea rdx, [rsp + 0x1c0]
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000288e
add edi, dword [rsp + 0x3e0]
cmp edi, r14d
jb 0x180002830
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x3f0]
mov rdi, qword [rsp + 0x3e8]
mov eax, ebx
add rsp, 0x3c0
pop rsi
pop rbp
pop rbx
ret
Function at 0x180031b74
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 0x180031ba4
xor eax, eax
jmp 0x180031c67
mov rbp, rbx
cmp word [rax], si
je 0x180031bc9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180031bb0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180031bac
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.180031a94
movsxd r14, eax
test eax, eax
jne 0x180031c07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180031b9d
mov rcx, r14
call fcn.18002be4c
mov rdi, rax
test rax, rax
jne 0x180031c20
xor ecx, ecx
call fcn.18002b144
jmp 0x180031bfc
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.180031a94
test eax, eax
jne 0x180031c51
mov rcx, rdi
call fcn.18002b144
jmp 0x180031c5b
xor ecx, ecx
call fcn.18002b144
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 0x180034798
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.18003dc40
sub rsp, rax
mov rax, qword [0x180055028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002d0a8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800347e7
mov rax, rbp
jmp 0x1800348ef
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 + 0x57040]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800358b8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x57040]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800348eb
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 0x1800348eb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800358b8
test rax, rax
js 0x1800348eb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800348eb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800348dd
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800348dd
cmp byte [rcx], 0xd
jne 0x1800348c3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800348d2
cmp byte [rcx + 1], 0xa
jne 0x1800348d2
inc rcx
jmp 0x1800348d2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x55970]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800348a5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800348ef
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003dc10
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 0x180034b10
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180034b26
mov al, 1
jmp 0x180034b86
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180034b37
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180034b84
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800363a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180034b84
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180034b84
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180034b84
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180034b86
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180034c58
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, [0x180057040]
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 0x180034caf
cmp word [rdx], r13w
jne 0x180034caf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180034cb4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180034dd9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180034dfa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180034ced
mov rdx, r9
mov word [rbx], cx
jmp 0x180034d14
cmp r9, r8
jae 0x180034d24
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 0x180034cce
jmp 0x180034dd9
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 0x180034dce
cmp dword [rsp + 0x80], esi
je 0x180034dce
lea r8, [0x180057040]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180034da6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180034d76
mov word [rbx], r13w
jmp 0x180034dd6
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 0x180034d83
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180034dd6
cmp word [rsp + 0x70], r13w
jne 0x180034db3
cmp rbx, r14
je 0x180034d70
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800358c0
cmp word [rsp + 0x70], r13w
je 0x180034dd9
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, [0x180057040]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180034dd3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180034dd9
Function at 0x18003a130
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.18002d5f8
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 0x18003a1d1
cmp ebx, dword [rsp + 0x30]
je 0x18003a1ca
test esi, esi
je 0x18003a1ca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18003a1a5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18003a1b2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18003a18f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18003a1b6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18003a1d3
mov eax, 1
jmp 0x18003a1d3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18003d3b8
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.1800358c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800358c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003d508
cmp rax, 0xffffffffffffffff
je 0x18003d508
xor edi, edi
test rbp, rbp
jle 0x18003d4b3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002b0cc
mov rbx, rax
test rax, rax
jne 0x18003d440
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003d4a9
mov edx, 0x8000
mov ecx, r14d
call fcn.18003d23c
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.180034010
cmp eax, 0xffffffff
je 0x18003d489
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003d450
mov edx, r15d
mov ecx, r14d
call fcn.18003d23c
jmp 0x18003d4a9
cmp byte [rsi + 0x38], dil
je 0x18003d4a0
cmp dword [rsi + 0x34], 5
jne 0x18003d4a0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003d4a9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002b144
jmp 0x18003d51c
jns 0x18003d51c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800358c0
cmp rax, 0xffffffffffffffff
jne 0x18003d4d4
cmp byte [rsi + 0x30], dil
je 0x18003d51c
mov edi, dword [rsi + 0x2c]
jmp 0x18003d51c
mov ecx, r14d
call fcn.1800363a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003d51c
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 0x18003d51c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003d515
mov eax, dword [rsi + 0x2c]
jmp 0x18003d51a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800358c0
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
Function at 0x1400119b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rbx, qword [0x140020c50]
mov rdi, qword [0x140020c70]
lea rsi, [0x140020320]
movq xmm0, rsi
mov rcx, qword [rbx]
movq xmm6, rdi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140011a06
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140011a30
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140020c60]
cmp byte [rax], 0
jne 0x140011a40
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400119fd
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140011af4
test al, 0x10
je 0x140011a12
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140011a12
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140011aa0
jmp 0x140011a12

Function at 0x140015a60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001c960
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001c960
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop