joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f880
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
invalid
clc
xor esi, esp
adc eax, 0xfd7b74a4
and rax, 0x33f17e8
mov ebx, 0xbde59399
xchg ebx, eax
in eax, 0xbd
xchg ebx, eax
in eax, 0xbd
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400011f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [0x140007730], 0
movabs rsi, 0x7fffffffffffffff
jne 0x1400012dd
movabs rdi, 0x7ffffffffa0a1efe
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov r8, rax
cmp rbx, 0x989680
jne 0x140001256
imul rcx, r8, 0x64
jmp 0x14000127c
cqo
idiv rbx
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rcx, rax
mov rax, r8
cqo
idiv rbx
imul rdx, rax, 0x3b9aca00
add rcx, rdx
cmp rcx, rdi
jg 0x14000128f
add rcx, 0x5f5e100
mov qword [rsp + 0x30], rcx
jmp 0x140001294
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.140001ff0
xor edx, edx
lea rcx, str.LWJGL
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140007730], rax
test rax, rax
je 0x140001235
call fcn.140001430
xor ebx, ebx
lea r8, [0x140002900]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor r9d, r9d
mov qword [rsp + 0x28], rbx
lea r8, [0x140002380]
mov qword [rsp + 0x30], rax
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [rbx + 0x10]
mov qword [rsp + 0x38], rax
call fcn.140003cd0
lea r8d, [rbx + 0x10]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rcx, rax
lea rdi, [rax + 0x10]
mov qword [rsp + 0x58], rdi
call sub.VCRUNTIME140.dll_memmove
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rdi
cmp rbx, rdi
je 0x140001375
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 8
cmp rbx, rdi
jne 0x140001363
movabs rdi, 0x7fffffe8b78917fe
movabs rbp, 0x174876e800
nop dword [rax]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov r8, rax
cmp rbx, 0x989680
jne 0x1400013b1
imul rcx, r8, 0x64
jmp 0x1400013d7
cqo
idiv rbx
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
mov rcx, rax
mov rax, r8
cqo
idiv rbx
imul rdx, rax, 0x3b9aca00
add rcx, rdx
cmp rcx, rdi
jg 0x1400013f1
lea rax, [rcx + rbp]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.140001ff0
jmp 0x140001390
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
call fcn.140001ff0
jmp 0x140001390

Function at 0x1400047bc
Capabilities:
Parse pe header

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

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140008902
xor eax, eax
jmp 0x1400089e8
cmp qword [rcx + 0x68], 0
je 0x140008913
call fcn.140006630
jmp 0x1400089e8
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000892a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000892c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000895e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000aca0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400089e2
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140008995
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400089be
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400132b4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400089e2
cmp rsi, rbx
ja 0x14000899c
test rsi, rsi
je 0x1400089e2
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400132b4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140008a04
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140008a33
call fcn.1400066e0
jmp 0x140008aaa
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140008a4a
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008a4c
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008aa4
test ecx, ecx
jle 0x140008a85
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.14000aca0
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140008aa4
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008aa4
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140013814
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140009b90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009bda
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009bda
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009bda
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009bda
cmp dword [rcx + 0x84], 0xe
jbe 0x140009bda
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009bdc
xor al, al
add rsp, 0x28
ret
Function at 0x14000fed0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000fd63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fd63
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fd63
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fd63
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fd63
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fd63
cmp dword [rcx + 0xf8], 0
je 0x14000fd63
mov ecx, ebx
call fcn.14000fe04
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000fbf4
cmp dword [rbp + 0x20], 0
je 0x14000fdb0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000fdb8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000fcfc
Function at 0x140003b40
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400070c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x140003b90
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140003b99
mov eax, 0xffffff88
jmp 0x140003b9b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140003ea0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
ret

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
push r9
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140011249
Capabilities:
Terminate process

Disassembly:
jmp 0x140013ad0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112ee
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014e20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014e40
xor al, al
jmp 0x140014ec1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014e53
xor al, al
jmp 0x140014ec1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014e7d
xor al, al
jmp 0x140014ec1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014e91
xor al, al
jmp 0x140014ec1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ea3
xor al, al
jmp 0x140014ec1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014ebf
xor al, al
jmp 0x140014ec1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400026f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140002751
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140002710
mov ecx, dword [r9]
jmp 0x140002838
cmp ecx, 0x4e0
jb 0x140002838
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140002770
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400027c0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140003210
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000325a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000325a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000325a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000325a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000325a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000325c
xor al, al
add rsp, 0x28
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140012f10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011276
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014260
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014280
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014293
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400142bd
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400142d1
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400142e3
xor al, al
jmp 0x140014301
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142ff
xor al, al
jmp 0x140014301
mov al, 1
add rsp, 0x38
ret
Function at 0x180003c90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r15
sub rsp, 0x20
xor edi, edi
mov r8d, edx
mov rbp, rcx
mov ebx, edi
test edx, edx
je 0x180003e15
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea r9d, [rdx + rdx*2]
cmp r8d, r9d
je 0x180003cd5
mov ebx, r9d
sub ebx, r8d
add ebx, 3
lea esi, [rbx + r8]
mov eax, 0x55555556
imul esi
mov r15d, edx
shr r15d, 0x1f
add r15d, edx
add r15d, ebx
add r15d, r8d
lea eax, [r15 + 1]
movsxd rcx, eax
call fcn.1800184ac
mov r11, rax
test rax, rax
je 0x180003e15
test esi, esi
jle 0x180003e08
mov qword [rsp + 0x40], r14
lea r10, [rbp + 1]
lea r14d, [rsi - 3]
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_0
lea r9, [rax + 2]
nop dword [rax + rax]
movzx eax, byte [r10 - 1]
mov ecx, eax
shr rcx, 2
movzx ecx, byte [rcx + rbp]
mov byte [r9 - 2], cl
cmp edi, r14d
jne 0x180003da2
test ebx, ebx
je 0x180003da2
cmp ebx, 1
jne 0x180003d85
movzx edx, byte [r10]
and al, 3
shl al, 4
movzx ecx, al
mov eax, edx
shr rax, 4
and dl, 0xf
add rcx, rax
mov byte [r9 + 1], 0x3d
shl dl, 2
movzx eax, byte [rcx + rbp]
mov byte [r9 - 1], al
movzx eax, dl
movzx eax, byte [rax + rbp]
mov byte [r9], al
jmp 0x180003df0
cmp ebx, 2
jne 0x180003df0
and al, 3
mov word [r9], 0x3d3d
shl al, 4
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov byte [r9 - 1], al
jmp 0x180003df0
movzx r8d, byte [r10]
and al, 3
movzx edx, byte [r10 + 1]
shl al, 4
movzx ecx, al
mov eax, r8d
shr rax, 4
and r8b, 0xf
add rcx, rax
shl r8b, 2
movzx eax, byte [rcx + rbp]
mov ecx, edx
mov byte [r9 - 1], al
movzx eax, r8b
shr rcx, 6
add rcx, rax
movzx eax, byte [rcx + rbp]
mov byte [r9], al
movsx rax, dl
and eax, 0x3f
movzx eax, byte [rax + rbp]
mov byte [r9 + 1], al
add r9, 4
add r10, 3
add edi, 3
cmp edi, esi
jl 0x180003d30
mov r14, qword [rsp + 0x40]
movsxd rax, r15d
mov byte [rax + r11], 0
mov rax, r11
jmp 0x180003e17
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x180003f70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r15
sub rsp, 0x70
mov rax, qword [0x180043080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, rdx
mov qword [rsp + 0x28], rcx
mov rbx, rcx
lea rdx, [0x18003c7a4]
mov rcx, rax
xor r15d, r15d
call fcn.180016840
mov rbp, rax
test rax, rax
jne 0x180003fd2
xorps xmm0, xmm0
lea rdx, [0x18003c633]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rbx + 0x18], r15
call fcn.180003e70
jmp 0x18000411c
xor edx, edx
mov qword [rsp + 0x68], rdi
mov rcx, rbp
lea r8d, [rdx + 2]
call fcn.180017100
mov rcx, rbp
call fcn.1800164e4
movsxd rdi, eax
mov rcx, rbp
test eax, eax
jg 0x180004021
call fcn.180016d60
xorps xmm0, xmm0
lea rdx, [0x18003c633]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rbx + 0x18], r15
call fcn.180003e70
jmp 0x180004117
mov qword [rsp + 0xa0], rsi
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x60], r14
call fcn.180017100
mov ecx, edi
mov rsi, 0xffffffffffffffff
add ecx, 1
cmovb rcx, rsi
call fcn.1800184ac
mov r14, rax
test rax, rax
jne 0x180004082
mov rcx, rbp
call fcn.180016d60
xorps xmm0, xmm0
lea rdx, [0x18003c633]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r15
mov rcx, rbx
mov qword [rbx + 0x18], r15
call fcn.180003e70
jmp 0x18000410a
lea eax, [rdi + 1]
xor edx, edx
movsxd r8, eax
mov rcx, r14
call fcn.180011e90
mov r8, rdi
mov r9, rbp
mov edx, 1
mov rcx, r14
call fcn.180017fc8
mov rcx, rbp
mov rdi, rax
call fcn.180016d60
mov edx, edi
mov rcx, r14
call fcn.180003c90
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x30], xmm0
mov rdi, rax
movdqu xmmword [rsp + 0x40], xmm1
nop
inc rsi
cmp byte [rax + rsi], r15b
jne 0x1800040d0
mov r8, rsi
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.180003e70
mov rcx, r14
call fcn.180017ba4
mov rcx, rdi
call fcn.180017ba4
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18000f7f0
add rsp, 0x70
pop r15
pop rbp
pop rbx
ret
Function at 0x180009740
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 0x180009762
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 0x1800097dc
mov rdi, r14
mov rcx, rbx
call fcn.18000b2e0
test rax, rax
jle 0x1800097b4
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.1800117e0
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 0x1800097cc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800097d4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180009776
sub r14, rdi
jmp 0x1800098bf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1800097f3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800097f5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180009827
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1800117e0
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 0x1800098bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180009862
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 0x18000989d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.180017fc8
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800098bc
cmp rbp, rax
ja 0x180009870
test rbp, rbp
je 0x1800098bc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.180017fc8
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 0x18000df28
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 0x18000dfac
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18002f4c0]
cmp byte [rcx + rax], 0
je 0x18000dfac
dec r8
sub rdx, 1
jne 0x18000df92
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret