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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140232c58
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140232c61
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140232c48
mov qword [rdi], rsi
call fcn.14026d530
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
call fcn.14026d530
mov rcx, qword [rdi]
call fcn.140252540
mov qword [rdi], 0
jmp 0x140232c36
Function at 0x140251d00
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp rdx, 1
jne 0x140251d6b
mov rbx, qword [rsi + 8]
mov edi, 2
cmp rbx, 2
jae 0x140251d99
lea rbx, [rsi + 8]
lea rcx, [rdi*8]
call fcn.1402dd130
mov rcx, qword [rsi]
mov qword [rsi], rax
test rcx, rcx
jne 0x140251d64
mov qword [rbx], rdi
xor eax, eax
mov rcx, qword [rsi]
mov qword [rcx + rax*8], 0
inc rax
cmp rdi, rax
jne 0x140251d40
mov r8, qword [rsi + 0x10]
test r8, r8
jne 0x140251dc5
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1402dd16c
jmp 0x140251d3b
mov rdi, rdx
lea rax, [rdx - 1]
test rdx, rax
je 0x140251d82
mov rcx, rdi
call fcn.14024d970
mov rdi, rax
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x140251d99
mov rax, rdi
shr rax, 0x3d
je 0x140251d1f
call fcn.14031db10
cmp rdi, rbx
jae 0x140251d5c
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x140251ec7
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140251ecc
lea r10, [rsi + 0x10]
mov rcx, qword [r8 + 8]
mov rax, rdi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rdi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x140251e41
cmp rcx, rdi
jb 0x140251e48
mov rax, rcx
xor edx, edx
div rdi
mov rcx, rdx
jmp 0x140251e48
lea rax, [rdi - 1]
and rcx, rax
mov rax, qword [rsi]
mov qword [rax + rcx*8], r10
mov r10, qword [r8]
test r10, r10
je 0x140251d5c
lea r11, [rdi - 1]
jmp 0x140251eae
mov qword [rdx + rax*8], r8
jmp 0x140251e9c
and rax, r11
cmp rax, rcx
je 0x140251e99
mov rdx, qword [rsi]
cmp qword [rdx + rax*8], 0
je 0x140251e61
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [rsi]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x140251d5c
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x140251e67
cmp rax, rdi
jb 0x140251e6a
xor edx, edx
div rdi
mov rax, rdx
jmp 0x140251e6a
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1402ff7c8
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x14048cf10]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x140251f7f
mov rcx, rbx
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rbx
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x140251f7f
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x140251f8a
mov rcx, rax
call fcn.14024d970
mov rdx, rax
cmp rdi, rdx
cmova rdx, rdi
cmp rdx, rbx
jae 0x140251d5c
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1403771c0
Function at 0x1402523d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14053d970]
mov ecx, dword [0x14052f0f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140252430
mov rsi, qword [0x14053d968]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1402ddd70
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14053d970]
call fcn.1402dd290
cmp dword [0x14053d970], 0xffffffff
jne 0x14025240c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1402e0d10
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1402dd130
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14053d9b8]
mov ecx, dword [0x14052f0f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402524f0
lea r8, [0x14053d988]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140140150
mov qword [0x14053d968], rsi
lea rcx, [0x14053d970]
call fcn.1402dd328
jmp 0x14025240c
lea rcx, [0x14053d9b8]
call fcn.1402dd290
cmp dword [0x14053d9b8], 0xffffffff
jne 0x1402524c1
xorps xmm0, xmm0
movups xmmword [0x14053d9a8], xmm0
movups xmmword [0x14053d998], xmm0
movups xmmword [0x14053d988], xmm0
lea rcx, [0x14053d988]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14053d9b8]
call fcn.1402dd328
jmp 0x1402524c1
Function at 0x140252d50
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x14053da38]
mov ecx, dword [0x14052f0f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140252f3c
mov rsi, qword [0x14053da30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140252f82
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x14053d9e0], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x14053d9e4]
mov dword [0x14053d9e4], ebx
cmovne ebp, ecx
mov eax, dword [0x14053d9e8]
cmp ebp, eax
je 0x140252f1b
test eax, eax
je 0x140252eac
mov rax, qword [0x14052dcf0]
lea rcx, [0x140253030]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140252fa0
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x140252fc9
imul rax, rcx, 0xf4240
cqo
idiv qword [0x14053da50]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x14053da40]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x14053d9f0]
cmp r8, 2
jb 0x140252fb1
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x14053d9f0], rax
mov ecx, dword [0x14053d9e8]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x14053d9e8], ebp
test ebx, ebx
je 0x140252f1b
mov rax, qword [0x14052dcf0]
lea rcx, [0x140253030]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140252f8f
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x140252ffa
imul rax, rcx, 0xf4240
cqo
idiv qword [0x14053da50]
mov qword [0x14053da40], rax
mov ecx, dword [0x14053d9e8]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1402ddd70
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14053da38]
call fcn.1402dd290
cmp dword [0x14053da38], 0xffffffff
jne 0x140252d8e
mov ecx, 8
call fcn.1402dd130
mov rsi, rax
mov rcx, rax
call fcn.1402386c0
mov qword [0x14053da30], rsi
lea rcx, [0x14053da38]
call fcn.1402dd328
jmp 0x140252d8e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140252da6
mov rcx, rdi
call qword [case.0x14012d181.0]
mov rax, qword [rdi]
jmp 0x140252f08
mov rcx, rdi
call qword [case.0x14012d181.0]
mov rax, qword [rdi]
jmp 0x140252e40
cmp rcx, rax
je 0x140252e99
add rcx, rdx
cmp rcx, 1
ja 0x140252e99
jmp 0x14025302b
mov r8, qword [0x14053da50]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x140252e3b
mov r8, qword [0x14053da50]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x140252f08
int3
Function at 0x1402530d0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140253420
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14053da00]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14025312e
jnp 0x140253194
ucomisd xmm0, xmm6
jne 0x140253136
jnp 0x140253190
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x14048ca50]
subpd xmm1, xmmword [0x14048ca60]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1404a0078]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402ddd70
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140253168
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x14053da10]
mov ecx, dword [0x14052f0f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402532a9
mov eax, dword [0x14053da20]
mov ecx, dword [0x14052f0f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402532e3
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x14053da18]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1404ade70]
ucomisd xmm2, xmm1
ja 0x14025312e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14053da08]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x14048ca50]
subpd xmm0, xmmword [0x14048ca60]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14053da00], xmm0
jmp 0x14025312e
lea rcx, [0x14053da10]
call fcn.1402dd290
cmp dword [0x14053da10], 0xffffffff
jne 0x1402531dd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14053da08], rdx
lea rcx, [0x14053da10]
call fcn.1402dd328
jmp 0x1402531dd
lea rcx, [0x14053da20]
call fcn.1402dd290
cmp dword [0x14053da20], 0xffffffff
jne 0x140253202
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14053da18], rax
lea rcx, [0x14053da20]
call fcn.1402dd328
jmp 0x140253202
Function at 0x1402536d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x14025376a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140253754
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140253731
mov qword [rsi], rdi
call fcn.14026d530
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14025376e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14026d530
mov rcx, qword [rsi]
call fcn.140252540
mov qword [rsi], 0
jmp 0x14025371f
mov byte [rsi + 8], 0
int3
Function at 0x140258ed0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, qword [rdx]
lea rax, [r14 + 1]
cmp rax, 1
jbe 0x14025913d
mov rbx, r9
test r9, r9
je 0x14025913d
mov rax, rbx
shr rax, 0x1f
jne 0x14025913d
mov ebp, r8d
mov eax, dword [0x14053dab8]
mov ecx, dword [0x14052f0f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402590cf
mov rax, qword [0x1404ae2c8]
lea r15, [rsp + 0x40]
mov qword [r15 + 0x10], rax
movups xmm0, xmmword [0x1404ae2b8]
movaps xmmword [r15], xmm0
mov rax, qword [0x14053dab0]
mov qword [rsp + 0x20], 0
xor r12d, r12d
mov rcx, r14
xor edx, edx
mov r8, r15
mov r9d, SafeArrayCopy
call qword [case.0x14012d181.0]
mov ecx, 0x1000000
and ecx, dword [r15 + 8]
or ecx, eax
jne 0x14025913d
mov r14, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
movabs rcx, 0xaaaaaaaaaaaaaaaa
lea r9, [rsp + 0x40]
mov qword [r9], rcx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 2
mov rcx, rax
mov rdx, r14
mov r8, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r14d, eax
test eax, eax
je 0x140258fe8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
sete al
test ebp, ebp
setne cl
xor cl, al
je 0x14025917c
mov r15, qword [rdi]
mov qword [rdi], 0
test r15, r15
je 0x14025914a
cmp r15, 0xffffffffffffffff
je 0x140259152
call fcn.14026d530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
call fcn.14026d530
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsi], 0
lea r13, [r15 + 1]
cmp r13, 2
jb 0x140259136
call fcn.14026d530
mov rax, qword [rsi]
mov r12, qword [rsp + 0xd0]
cmp rax, r15
je 0x14025908e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14025911d
cmp r13, 2
jb 0x140259085
mov qword [rsi], r15
call fcn.14026d530
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 8], ebp
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [r12]
movups xmmword [rsi + 0x18], xmm0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140259163
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402ddd70
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14053dab8]
call fcn.1402dd290
cmp dword [0x14053dab8], 0xffffffff
jne 0x140258f47
lea rcx, [0x1404ade3e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14053dab0], rax
lea rcx, [0x14053dab8]
call fcn.1402dd328
jmp 0x140258f47
call fcn.14026d530
mov rcx, qword [rsi]
call fcn.140252540
mov qword [rsi], 0
jmp 0x140259077
xor eax, eax
jmp 0x140259051
mov rcx, rsi
call fcn.14026cac0
jmp 0x14025909e
xor r15d, r15d
jmp 0x140259034
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x14025902b
call fcn.14026d530
mov rcx, qword [rdi]
call fcn.140252540
mov qword [rdi], 0
jmp 0x1402590ae
int3
Function at 0x1402592e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x14047fb40]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.14026d510
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14025d230
mov ebp, 0xffffffff
test r14, r14
js 0x1402593dc
test esi, esi
js 0x1402593dc
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140286080
test al, al
jne 0x140259422
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14025940a
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x14025941d
lea rcx, [rsp + 0x30]
call fcn.140286110
lea rcx, [rsp + 0x60]
call fcn.14025d470
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1402ddd70
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x1402593d2
int3
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1403d6a30
jmp 0x140259394

Function at 0x140259440
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14047fb40]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.14026d510
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14025d230
test esi, esi
js 0x140259549
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140286080
test al, al
jne 0x140259568
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140259555
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x140259550
lea rcx, [rsp + 0x30]
call fcn.140286110
lea rcx, [rsp + 0x50]
call fcn.14025d470
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1402ddd70
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14025951e
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140259514
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1403d6a30
jmp 0x1402594e4
Function at 0x140259590
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x14047fb40]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7f
call fcn.14026d510
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14025d230
mov ebp, 0xffffffff
test r14, r14
js 0x140259689
test esi, esi
js 0x140259689
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140286080
test al, al
jne 0x1402596b7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140286110
lea rcx, [rsp + 0x60]
call fcn.14025d470
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1402ddd70
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1403d6a30
jmp 0x140259640
Function at 0x140261e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
mov rdx, qword [rcx + 8]
test rdx, rdx
je 0x140261ea5
mov rcx, qword [rcx]
xor r10d, r10d
lea rdi, [0x1404aebaf]
nop dword [rax + rax]
lea r8, [r10 + 1]
movzx eax, byte [rcx + r10]
test al, al
js 0x140261eaa
mov r10, r8
cmp r8, rdx
jb 0x140261e90
mov al, 1
pop rdi
pop rsi
ret
mov r9d, 0xffffffff
cmp r8, rdx
je 0x140261f8a
cmp al, 0xe0
jae 0x140261f1f
cmp al, 0xc2
jae 0x140261efc
cmp r9d, 0xd800
jb 0x140261e9d
lea eax, [r9 - 0xe000]
cmp eax, 0x1dcf
jbe 0x140261e9d
lea r10d, [r9 - 0xfdf0]
xor eax, eax
cmp r10d, 0x10020f
ja 0x140261ea7
and r9d, 0xfffe
cmp r9d, 0xfffe
je 0x140261ea7
jmp 0x140261e9d
and eax, 0x1f
mov r10d, eax
movzx eax, byte [rcx + r8]
xor eax, 0x80
cmp al, 0x3f
ja 0x140261ec1
shl r10d, 6
or r10d, eax
inc r8
mov r9d, r10d
jmp 0x140261ec1
cmp al, 0xef
ja 0x140261f5f
and eax, 0xf
lea r10, str._000000000000
movzx r10d, byte [rax + r10]
movzx r11d, byte [rcx + r8]
mov esi, r11d
shr esi, 5
bt r10d, esi
jae 0x140261ec1
and r11b, 0x3f
inc r8
cmp r8, rdx
je 0x140261f8a
shl eax, 6
movzx r10d, r11b
or r10d, eax
jmp 0x140261f02
cmp al, 0xf4
ja 0x140261ec1
lea esi, [rax - 0xf0]
movzx eax, byte [rcx + r8]
mov r11d, eax
shr r11d, 4
movsx r11d, byte [r11 + rdi]
bt r11d, esi
jae 0x140261ec1
jmp 0x140261f92
mov r8, rdx
jmp 0x140261ec1
add r10, 2
cmp r10, rdx
je 0x140261f8a
mov r11b, byte [rcx + r10]
add r11b, 0x80
cmp r11b, 0x3f
ja 0x140261fb6
shl esi, 6
and eax, 0x3f
or eax, esi
mov r8, r10
jmp 0x140261f4b
mov r8, r10
jmp 0x140261ec1

Function at 0x14026cae0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14026cb11
call fcn.14026d530
cmp qword [rsi], r14
je 0x14026cb40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14026cb5f
cmp r15, 2
jb 0x14026cb38
mov qword [rsi], r14
call fcn.14026d530
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14026d530
mov rcx, qword [rsi]
call fcn.140252540
mov qword [rsi], 0
jmp 0x14026cb2a
Function at 0x14026cb80
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14026cbaa
call fcn.14026d530
cmp qword [rsi], r14
je 0x14026cbd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14026cbf8
cmp r15, 2
jb 0x14026cbd1
mov qword [rsi], r14
call fcn.14026d530
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14026d530
mov rcx, qword [rsi]
call fcn.140252540
mov qword [rsi], 0
jmp 0x14026cbc3