joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401d28a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r12, r8
mov rsi, rcx
mov r13, qword [rcx]
mov rax, qword [rcx + 8]
mov qword [rsp + 0x30], rax
mov rdi, qword [rcx + 0x18]
lea rax, [rdi + r13]
test rdi, rdi
jle 0x1401d2903
movdqa xmm0, xmmword [0x1403c1ac0]
movdqa xmm1, xmmword [0x1403c1ad0]
mov rcx, r13
movdqu xmm2, xmmword [rcx]
pxor xmm3, xmm3
pcmpgtb xmm3, xmm2
pand xmm3, xmm0
pxor xmm3, xmm1
movdqu xmmword [rcx], xmm3
add rcx, 0x10
cmp rcx, rax
jb 0x1401d28e2
mov rcx, qword [r13]
mov r8, qword [r13 + 7]
mov qword [rax + 8], r8
mov qword [rax + 1], rcx
mov byte [r13 + rdi], 0xff
test rdi, rdi
je 0x1401d2a6b
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0x20], rax
xor ebp, ebp
mov r15, qword [rsp + 0x30]
cmp byte [r13 + rbp], 0xfe
jne 0x1401d29be
mov rcx, rsi
mov rdx, r15
mov rax, rbx
call qword [case.0x1402ceac0.0]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 0x18]
mov r9, rax
shr r9, 7
mov r8, rcx
shr r8, 0xc
xor r8, r9
and r8, rdx
movdqu xmm0, xmmword [rcx + r8]
pcmpeqd xmm1, xmm1
pcmpgtb xmm1, xmm0
pmovmskb r11d, xmm1
mov r10, r8
test r11d, r11d
je 0x1401d29d2
tzcnt r9d, r11d
add r9, r10
and r9, rdx
mov r10, r9
sub r10, r8
mov r11, rbp
sub r11, r8
xor r11, r10
and r11, rdi
cmp r11, 0xf
ja 0x1401d29ff
and al, 0x7f
mov byte [rcx + rbp], al
lea r8, [rbp - 0xf]
and r8, rdx
and edx, 0xf
add rdx, r8
mov byte [rcx + rdx], al
inc rbp
add r15, r14
cmp rbp, rdi
jne 0x1401d2939
jmp 0x1401d2a6b
mov r9d, 0x10
mov r10, r8
add r10, r9
and r10, rdx
movdqu xmm0, xmmword [rcx + r10]
pcmpeqd xmm1, xmm1
pcmpgtb xmm1, xmm0
pmovmskb r11d, xmm1
add r9, 0x10
test r11d, r11d
jne 0x1401d2986
jmp 0x1401d29db
mov qword [rsp + 0x28], r12
mov r12, r9
imul r12, r14
add r12, qword [rsp + 0x30]
and al, 0x7f
lea r8, [r9 - 0xf]
and r8, rdx
and edx, 0xf
add rdx, r8
cmp byte [r13 + r9], 0x80
mov byte [rcx + r9], al
mov byte [rcx + rdx], al
mov rcx, rsi
jne 0x1401d2a92
mov rdx, r12
mov r8, r15
mov rax, qword [rsp + 0x20]
call qword [case.0x1402ceac0.0]
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x18]
mov r8b, 0x80
mov byte [rax + rbp], r8b
lea rdx, [rbp - 0xf]
and rdx, rcx
and ecx, 0xf
add rcx, rdx
mov byte [rax + rcx], r8b
mov r12, qword [rsp + 0x28]
jmp 0x1401d29be
mov rax, qword [rsi + 0x18]
mov rcx, rax
shr rcx, 3
add rcx, qword [rsi + 0x10]
sub rax, rcx
mov qword [rsi + 0x20], rax
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x28]
mov r8, r12
mov rax, qword [rsp + 0x20]
call qword [case.0x1402ceac0.0]
mov rcx, rsi
mov rdx, r12
mov r12, qword [rsp + 0x28]
mov r8, r15
mov rax, qword [rsp + 0x20]
call qword [case.0x1402ceac0.0]
mov rcx, rsi
mov rdx, r15
mov r8, r12
mov rax, qword [rsp + 0x20]
call qword [case.0x1402ceac0.0]
dec rbp
sub r15, r14
jmp 0x1401d29be
Function at 0x1401d62e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x1401d63de
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1403c44a0]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x1401d6350
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1403c44b0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x1401d646d
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x1401d6443
movdqa xmm1, xmmword [0x1403c44b0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1403c44c0], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1401d6ca0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov r14, qword [rsi + 8]
sub r14, rcx
sar r14, 3
lea rdx, [r14 + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1401d6e00
movabs rax, 0x1fffffffffffffff
movabs rbx, 0x7ffffffffffffff8
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r15, r8
sar r15, 2
cmp r15, rdx
cmovbe r15, rdx
cmp r8, rbx
cmovae r15, rax
test r15, r15
je 0x1401d6df9
cmp r15, rax
ja 0x1401d6e05
lea rcx, [r15*8]
call fcn.14024abdc
shl r14, 3
add r14, rax
je 0x1401d6e0a
lea rax, [rax + r15*8]
mov rcx, qword [rdi]
mov qword [r14], rcx
mov qword [rdi], 0
lea rcx, [r14 + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x1401d6dca
mov r8, qword [rdx - 8]
mov qword [r14 - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add r14, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x1401d6d4d
mov rdi, qword [rsi]
mov r15, qword [rsi + 8]
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r15, rdi
je 0x1401d6dd5
add r15, 0xfffffffffffffff8
add rbx, 7
test r15, r15
je 0x1401d6e36
mov rcx, qword [r15]
and rcx, rbx
mov rax, qword [0x140433360]
and rax, rcx
cmp rax, qword [0x140433348]
je 0x1401d6dc3
mov qword [r15], 0
lea rax, [r15 - 8]
cmp r15, rdi
mov r15, rax
jne 0x1401d6d8c
jmp 0x1401d6dd5
call fcn.1401f09e0
jmp 0x1401d6dae
mov qword [rsi], r14
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x1401d6de6
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14024ac18
xor eax, eax
jmp 0x1401d6d1f
call fcn.140264f20
call fcn.1402885d0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.14028c680
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.14028c680
int3
Function at 0x1401f0290
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 0x1401f02ba
call fcn.1401ee3c0
cmp qword [rsi], r14
je 0x1401f02e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1401f0308
cmp r15, 2
jb 0x1401f02e1
mov qword [rsi], r14
call fcn.1401ee3c0
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.1401ee3c0
mov rcx, qword [rsi]
call fcn.140201a20
mov qword [rsi], 0
jmp 0x1401f02d3

Function at 0x1401fb720
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140431c64]
cmp ecx, 0xffffffff
je 0x1401fb745
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1401fb740

Function at 0x1401fb750
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140431c64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401fb784
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1401fb784
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1401fb77e

Function at 0x1401fb790
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140431c64]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401fb7ce
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x1401fb7c7
call fcn.1400f9800
jmp 0x1401fb7ae
Function at 0x1401fce00
Capabilities:
Get file version info

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x4d
call fcn.1401ee3a0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fb430
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rdi + 0x17], 0
jns 0x1401fce92
mov rdi, qword [rdi]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1401fcf9f
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.14024abdc
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r14
mov qword [rsp + 0x40], rax
xor ecx, ecx
nop word cs:[rax + rax]
mov rdx, rbx
add rdx, rcx
je 0x1401fcfa8
mov byte [rdx], 0
inc rcx
cmp r14, rcx
jne 0x1401fced0
mov qword [rsp + 0x38], rax
mov edx, dword [rsp + 0x2c]
mov rcx, rdi
mov r8d, ebp
mov r9, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1401fcfd4
lea r8, [rsp + 0x58]
mov qword [r8], 0
lea r9, [rsp + 0x54]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401fcfd4
mov r14, qword [rsp + 0x58]
test r14, r14
je 0x1401fcfd4
mov ecx, 0x38
call fcn.14024abdc
mov rdi, rax
movzx r8d, word [r14]
movzx r9d, word [r14 + 2]
lea rbx, [rsp + 0x30]
mov rcx, rax
mov rdx, rbx
call fcn.1400fc290
mov qword [rsi], rdi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1401fcfdd
lea rcx, [rsp + 0x60]
call fcn.1401fb490
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14024c3c0
mov rax, rsi
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov qword [rsi], 0
jmp 0x1401fcf74
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.14028c680
mov qword [rsi], 0
jmp 0x1401fcf6f
mov rcx, rbx
call fcn.14024ac18
jmp 0x1401fcf74
Function at 0x1401fd110
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x60]
mov qword [r12 + 0x50], r13
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [r12 + 0x40], xmm0
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, 0x3e
call fcn.1401ee3a0
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.1401fb430
mov ebp, 0xffffffff
test r14, r14
js 0x1401fd219
test esi, esi
js 0x1401fd219
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
call fcn.140209d40
test al, al
jne 0x1401fd25c
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 0x1401fd249
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x1401fd278
lea rcx, [rsp + 0x30]
call fcn.140209dd0
lea rcx, [rsp + 0x60]
call fcn.1401fb490
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x1401fd20f
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1403152d0
jmp 0x1401fd1d1
int3
Function at 0x1401fd280
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x50], r12
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [r14 + 0x40], xmm0
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, 0x5b
call fcn.1401ee3a0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fb430
test esi, esi
js 0x1401fd38e
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140209d40
test al, al
jne 0x1401fd395
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 0x1401fd3b1
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x1401fd3c4
lea rcx, [rsp + 0x30]
call fcn.140209dd0
lea rcx, [rsp + 0x50]
call fcn.1401fb490
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14024c3c0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1401fd361
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1403152d0
jmp 0x1401fd327
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x1401fd357
int3
Function at 0x1401fd3d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x60]
mov qword [r12 + 0x50], r13
movaps xmm0, xmmword [0x1403be790]
movaps xmmword [r12 + 0x40], xmm0
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, 0x7b
call fcn.1401ee3a0
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.1401fb430
mov ebp, 0xffffffff
test r14, r14
js 0x1401fd4d6
test esi, esi
js 0x1401fd4d6
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
call fcn.140209d40
test al, al
jne 0x1401fd506
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.140209dd0
lea rcx, [rsp + 0x60]
call fcn.1401fb490
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14024c3c0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1403152d0
jmp 0x1401fd48d

Function at 0x140201c80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov al, byte [0x1404485cc]
test al, 1
je 0x140201cb2
call fcn.1402192f0
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140219310
test rsi, rsi
je 0x140201cdf
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140201ce9
add rdi, rbx
sub rsi, rbx
jne 0x140201cbd
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1402020d0
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 [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140201a00
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1404485f8]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14020212e
jnp 0x140202194
ucomisd xmm0, xmm6
jne 0x14020213a
jnp 0x1402022a9
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1403cb740]
subpd xmm1, xmmword [0x1403cb750]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1403cc9c0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14024c3c0
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
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 [0x140448608]
mov ecx, dword [0x140441a2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402022b0
mov eax, dword [0x140448618]
mov ecx, dword [0x140441a2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402022ea
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 [0x140448610]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1403cc9b8]
ucomisd xmm2, xmm1
ja 0x14020212e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140448600]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1403cb740]
subpd xmm0, xmmword [0x1403cb750]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1404485f8], xmm0
jmp 0x14020212e
xor eax, eax
jmp 0x14020216c
lea rcx, [0x140448608]
call fcn.14024ad30
cmp dword [0x140448608], 0xffffffff
jne 0x1402021dd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140448600], rdx
lea rcx, [0x140448608]
call fcn.14024adc8
jmp 0x1402021dd
lea rcx, [0x140448618]
call fcn.14024ad30
cmp dword [0x140448618], 0xffffffff
jne 0x140202202
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140448610], rax
lea rcx, [0x140448618]
call fcn.14024adc8
jmp 0x140202202
Function at 0x140206a50
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140206a81
call fcn.1401ee3c0
cmp qword [rsi + 8], rbx
je 0x140206ab3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140206ac0
cmp r14, 2
jb 0x140206aab
mov qword [rsi + 8], rbx
call fcn.1401ee3c0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401ee3c0
mov rcx, qword [rsi + 8]
call fcn.140201a20
mov qword [rsi + 8], 0
jmp 0x140206a9c

Function at 0x140206ae0
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 dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140206b12
call fcn.1401ee3c0
cmp qword [rsi + 8], r14
je 0x140206b44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140206b5f
cmp r15, 2
jb 0x140206b3c
mov qword [rsi + 8], r14
call fcn.1401ee3c0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140206b77
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401ee3c0
mov rcx, qword [rsi + 8]
call fcn.140201a20
mov qword [rsi + 8], 0
jmp 0x140206b2d
call fcn.1401ee3c0
mov rcx, qword [rdi]
call fcn.140201a20
mov qword [rdi], 0
jmp 0x140206b50
Function at 0x140206e20
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14042f038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14044aee0]
mov ecx, dword [0x140441a2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140206e80
mov rsi, qword [0x14044aed8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14024c3c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14044aee0]
call fcn.14024ad30
cmp dword [0x14044aee0], 0xffffffff
jne 0x140206e5c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14024e4f0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.14024abdc
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14044af28]
mov ecx, dword [0x140441a2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140206f40
lea r8, [0x14044aef8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140135510
mov qword [0x14044aed8], rsi
lea rcx, [0x14044aee0]
call fcn.14024adc8
jmp 0x140206e5c
lea rcx, [0x14044af28]
call fcn.14024ad30
cmp dword [0x14044af28], 0xffffffff
jne 0x140206f11
xorps xmm0, xmm0
movups xmmword [0x14044af18], xmm0
movups xmmword [0x14044af08], xmm0
movups xmmword [0x14044aef8], xmm0
lea rcx, [0x14044aef8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14044af28]
call fcn.14024adc8
jmp 0x140206f11