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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18007a2d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x90]
mov rdi, rdx
test eax, eax
movd edx, xmm3
mov r11d, 6
mov rbp, r8
mov r10d, r11d
mov r14, rcx
cmovns r10d, eax
mov eax, edx
and eax, 0x7fffff
shr edx, 0x17
lea r9d, [rax + rax]
test edx, edx
jne 0x180033310
neg eax
sbb ecx, ecx
and ecx, 0xffffff82
jmp 0x180033313
lea ecx, [rdx - 0x7f]
mov eax, r9d
mov r15d, 0x2d
bts eax, 0x18
test edx, edx
cmovne r9d, eax
mov eax, ecx
cdq
mov esi, eax
mov eax, 0x2b
xor esi, edx
sub esi, edx
test ecx, ecx
cmovns r15d, eax
cmp esi, 0xa
jae 0x180033344
lea edx, [rax - 0x27]
jmp 0x18003334d
cmp esi, 0x64
sbb rdx, rdx
add rdx, r11
mov rcx, rbp
movsxd r8, r10d
sub rcx, rdi
cmp rcx, r8
jge 0x18003336b
mov qword [r14], rbp
mov dword [r14 + 8], 0x84
jmp 0x1800334b7
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x18003335b
mov qword [rsp + 0x70], rbx
cmp r10d, r11d
jge 0x1800333ad
lea r8d, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea eax, [r8 - 1]
or eax, r9d
movzx ecx, r11b
mov edx, 1
shl edx, cl
and edx, eax
and edx, r8d
add r9d, edx
mov eax, r9d
and r9d, 0xffffff
shr eax, 0x18
add al, 0x30
mov byte [rdi], al
inc rdi
test r10d, r10d
jle 0x180033434
mov byte [rdi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov eax, r9d
lea r8d, [r10 - 1]
shr rax, 0x14
mov ecx, 0x14
movzx eax, byte [rax + r11]
mov byte [rdi + 1], al
add rdi, 2
test r8d, r8d
je 0x180033434
mov edx, 0x100000
test ecx, ecx
je 0x18003341e
lea eax, [rdx - 1]
sub ecx, 4
and r9d, eax
ror edx, 4
mov eax, r9d
shr rax, cl
movzx eax, byte [rax + r11]
mov byte [rdi], al
inc rdi
sub r8d, 1
jne 0x1800333f6
jmp 0x180033434
movsxd rbx, r8d
mov edx, 0x30
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
add rdi, rbx
mov byte [rdi], 0x70
lea r9, [rsp + 0x40]
mov byte [rdi + 1], r15b
add rdi, 2
nop dword [rax]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul esi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub sil, cl
add sil, 0x30
mov byte [r9], sil
mov esi, edx
test edx, edx
jne 0x180033450
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rdi
cmp rax, rbx
jge 0x180033495
mov dword [r14 + 8], 0x84
jmp 0x1800334af
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rdi]
mov qword [r14], rbp
mov rbx, qword [rsp + 0x70]
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180045ad0
lea r11, [rsp + 0x50]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800334e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18007a2d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x90]
mov rsi, rdx
test eax, eax
movq rdx, xmm3
mov r9, rdx
mov r11d, 0xd
mov r10d, r11d
movabs rbx, 0xfffffffffffff
cmovns r10d, eax
mov rbp, r8
and r9, rbx
shr rdx, 0x34
mov r14, rcx
test edx, edx
jne 0x180033553
mov rax, r9
neg rax
sbb ecx, ecx
and ecx, 0xfffffc02
jmp 0x180033559
lea ecx, [rdx - 0x3ff]
mov rax, r9
movabs r8, 0x10000000000000
or rax, r8
mov r15d, 0x2d
test edx, edx
cmovne r9, rax
mov eax, ecx
cdq
mov edi, eax
mov eax, 0x2b
xor edi, edx
sub edi, edx
test ecx, ecx
cmovns r15d, eax
cmp edi, 0xa
jae 0x180033593
lea edx, [rax - 0x27]
jmp 0x1800335ac
cmp edi, 0x64
jae 0x18003359f
mov edx, 5
jmp 0x1800335ac
cmp edi, 0x3e8
sbb rdx, rdx
add rdx, 7
mov rcx, rbp
movsxd r8, r10d
sub rcx, rsi
cmp rcx, r8
jl 0x1800336eb
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x1800336eb
cmp r10d, r11d
jge 0x180033601
lea r8, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea rax, [r8 - 1]
or rax, r9
movzx ecx, r11b
mov edx, 1
shl rdx, cl
and rdx, rax
and rdx, r8
add r9, rdx
mov rax, r9
and r9, rbx
shr rax, 0x34
add al, 0x30
mov byte [rsi], al
inc rsi
test r10d, r10d
jle 0x180033692
mov byte [rsi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov rax, r9
lea r8d, [r10 - 1]
shr rax, 0x30
mov ecx, 0x30
movzx eax, byte [rax + r11]
mov byte [rsi + 1], al
add rsi, 2
test r8d, r8d
je 0x180033692
movabs rdx, 0x1000000000000
nop dword [rax]
test ecx, ecx
je 0x18003367c
lea rax, [rdx - 1]
sub ecx, 4
and r9, rax
ror rdx, 4
mov rax, r9
shr rax, cl
mov eax, eax
movzx eax, byte [rax + r11]
mov byte [rsi], al
inc rsi
sub r8d, 1
jne 0x180033650
jmp 0x180033692
movsxd rbx, r8d
mov edx, 0x30
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
add rsi, rbx
mov byte [rsi], 0x70
lea r9, [rsp + 0x40]
mov byte [rsi + 1], r15b
add rsi, 2
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x1800336b0
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rsi
cmp rax, rbx
jge 0x1800336f5
mov dword [r14 + 8], 0x84
jmp 0x18003370f
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rsi]
mov qword [r14], rbp
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180045ad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x18003fc00
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18007a2d8]
xor rax, rsp
mov qword [rsp + 0x28], rax
inc dword [0x18007ab60]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
xorps xmm1, xmm1
sub rax, qword [0x18007ab50]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x18007ab58]
cvtsi2sd xmm1, rax
divsd xmm1, xmm0
comisd xmm1, xmmword [0x18004f398]
jb 0x18003fc75
mov eax, dword [0x18007ab60]
lea rcx, [0x18007ab50]
mov dword [0x18007ab64], eax
mov dword [0x18007ab60], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180045ad0
add rsp, 0x38
ret
Function at 0x1800415e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rcx]
test al, al
je 0x18004160b
mov r9d, 0x111
nop dword [rax]
movsx r8d, al
lea rcx, [rcx + 1]
movzx eax, byte [rcx]
xor r8w, dx
movzx edx, r8w
imul edx, r9d
test al, al
jne 0x1800415f0
movzx eax, dx
ret

Function at 0x180041610
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x18007a2d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180052808]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x180041752
mov rdx, qword [rsp + 0x78]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x180041680
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rcx, [rsp + 0x30]
call fcn.180040210
mov dword [rsp + 0x20], 7
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180040ae0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180041700
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800416fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800416fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800459b8
lea rax, str.genshin_utility
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0xf
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.180030f10
mov dword [rsp + 0x20], 0xf
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180031500
nop
lea rcx, [rsp + 0x58]
call fcn.180031880
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180045ad0
add rsp, 0x90
pop rbx
ret
Function at 0x180043f30
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18007b1dc]
mov ebx, edi
test ecx, ecx
je 0x18004406b
mov rax, qword [0x18007b1d0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180043f88
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180043f60
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18004406b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800442b0
mov r8d, dword [0x18007b1dc]
cmp ebx, r8d
jae 0x180043ff8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18007b1d0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180043ff1
mov edx, esi
mov ecx, ebx
call fcn.1800441a0
mov edi, eax
test eax, eax
jne 0x180043ff8
mov r8d, dword [0x18007b1dc]
inc ebx
cmp ebx, r8d
jb 0x180043fc0
cmp qword [rsp + 0x20], 0
je 0x18004406b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180044057
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180044048
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180044020
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18007aba0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800441a0
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, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18007b1d0]
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 0x180044204
mov eax, 0xa
jmp 0x180044293
test esi, esi
je 0x180044226
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 0x180044249
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180044249
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180044242
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180044249
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
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 rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800442b0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18007a2d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800443da
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1800443d1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1800443b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800443b4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800443b4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180044372
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18007aba0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x1800443d1
jmp 0x1800443a7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1800443a7
mov rcx, qword [0x18007aba0]
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 0x1800443d1
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180044320
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180044433
cmp dword [rbx + 0xc], esi
jbe 0x180044433
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004442c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800447a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800443f0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180045ad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180044950
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800449bf
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800449a8
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 0x18004499c
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 0x180044970
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18007aba0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180044a80
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180044ac0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18007b1c0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180044afe
cmp rsi, r14
jb 0x180044af6
cmp rsi, r15
jae 0x180044af6
cmp qword [rsi + 8], 0
jne 0x180044cc7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180044ae1
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180044b92
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180044b89
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180044b89
cmp dword [rsp + 0x70], 0x10000
je 0x180044c0b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180044b89
sub rbx, rbp
cmp rbx, r14
jae 0x180044b50
test rsi, rsi
jne 0x180044c70
cmp rdi, r15
ja 0x180044caf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180044caf
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180044caf
cmp dword [rsp + 0x70], 0x10000
je 0x180044c41
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180044bc2
jmp 0x180044caf
test rbx, rbx
je 0x180044b89
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180044c70
cmp rbx, r14
jae 0x180044b30
jmp 0x180044b92
test rdi, rdi
je 0x180044caf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180044c70
cmp rdi, r15
jbe 0x180044ba0
jmp 0x180044caf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180044c80
mov rax, qword [0x18007b1c0]
mov qword [rsi], rax
mov qword [0x18007b1c0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x180046964
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 0x1800469e8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180052850]
cmp byte [rcx + rax], 0
je 0x1800469e8
dec r8
sub rdx, 1
jne 0x1800469ce
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001844
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0
mov rax, qword [0x1403ef6b8]
test rax, rax
je 0x14000187a
mov rax, qword [0x1403ef6b8]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [0x1403ef6b8], 0
lea rax, str.HOME
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018b5
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c0109]
mov rcx, rax
call fcn.1400015a4
lea rax, str.LOCALAPPDATA
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018f0
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c0109]
mov rcx, rax
call fcn.1400015a4
lea rax, str.USERPROFILE
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000192b
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, str._s_Local_Settings_Application_Data_s
mov rcx, rax
call fcn.1400015a4
lea rax, str.COMMONPROGRAMFILES
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001966
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c0109]
mov rcx, rax
call fcn.1400015a4
lea rax, [rbp - 0x10]
mov edx, 0
mov rcx, rax
call fcn.140001683
mov rdx, qword [0x1403ef6b0]
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.140001683
mov rax, qword [rbp - 0x10]
mov qword [0x1403ef6b8], rax
mov rax, qword [0x1403ef6b8]
add rsp, 0x30
pop rbp
ret

Function at 0x1400019a2
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
cmp qword [rbp + 0x10], 0
je 0x1400019be
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
lea rax, str.MAGIC
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x1400019de
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
cmp dword [rbp + 0x18], 0
jne 0x1400019eb
call fcn.140001844
jmp 0x1400019f2
lea rax, str._opt_mxe_usr_x86_64_w64_mingw32.static_share_misc_magic
add rsp, 0x20
pop rbp
ret
Function at 0x14000868c
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 4], 0xffffffff
mov edx, 0x30
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400086e9
mov edx, 0x30
mov rcx, qword [rbp + 0x20]
call fcn.14000cce0
jmp 0x1400088a3
mov rax, qword [rbp - 0x20]
mov dword [rax + 0x10], 0
mov rax, qword [rbp + 0x28]
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.140008e21
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14000889c
mov rax, qword [rbp - 0x10]
mov edx, 0x8000
mov rcx, rax
call sub.msvcrt.dll__open
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x14000889f
lea rdx, [rbp - 0x60]
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__fstat64]
call rax
cmp eax, 0xffffffff
jne 0x140008777
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov rdx, qword [rbp - 0x10]
mov r9, rdx
lea r8, [0x1402c1b17]
mov edx, eax
mov rcx, qword [rbp + 0x20]
call fcn.14000cc45
jmp 0x1400088a3
mov rax, qword [rbp - 0x48]
cmp rax, 7
jle 0x14000878f
mov rbx, qword [rbp - 0x48]
call fcn.14000276b
cmp rbx, rax
jle 0x1400087cf
mov rax, qword [rbp - 0x48]
cmp rax, 7
jg 0x1400087a2
lea rax, str.small
jmp 0x1400087a9
lea rax, str.large
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9, rdx
lea r8, str.file___s_is_too__s
mov edx, 0
mov rcx, qword [rbp + 0x20]
call fcn.14000cc45
jmp 0x1400088a3
mov rax, qword [rbp - 0x48]
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x20]
mov dword [rax + 0x10], 1
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
test rax, rax
jne 0x140008825
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.14000cce0
jmp 0x1400088a3
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
mov ecx, eax
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
mov eax, dword [rbp - 4]
mov r8d, ecx
mov ecx, eax
call sub.msvcrt.dll__read_1
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
cmp rdx, rax
je 0x14000885e
mov rcx, qword [rbp + 0x20]
call fcn.14000cd4b
jmp 0x1400088a3
mov eax, dword [rbp - 4]
mov ecx, eax
call sub.msvcrt.dll__close
mov dword [rbp - 4], 0xffffffff
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x20]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.1400088d9
test eax, eax
jne 0x1400088a2
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x20]
jmp 0x1400088cf
nop
jmp 0x1400088a3
nop
jmp 0x1400088a3
nop
cmp dword [rbp - 4], 0xffffffff
je 0x1400088b3
mov eax, dword [rbp - 4]
mov ecx, eax
call sub.msvcrt.dll__close
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.140002f0c
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x18]
add rsp, 0x98
pop rbx
pop rbp
ret