joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f5ae0
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 [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1401f5e40
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140466c28]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1401f5b3e
jnp 0x1401f5ba4
ucomisd xmm0, xmm6
jne 0x1401f5b4a
jnp 0x1401f5cb9
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1403ea310]
subpd xmm1, xmmword [0x1403ea320]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1403ea330]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14025a610
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 [0x140466c38]
mov ecx, dword [0x14046184c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401f5cc0
mov eax, dword [0x140466c48]
mov ecx, dword [0x14046184c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401f5cfa
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 [0x140466c40]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1403ea308]
ucomisd xmm2, xmm1
ja 0x1401f5b3e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140466c30]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1403ea310]
subpd xmm0, xmmword [0x1403ea320]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140466c28], xmm0
jmp 0x1401f5b3e
xor eax, eax
jmp 0x1401f5b7c
lea rcx, [0x140466c38]
call fcn.140258f70
cmp dword [0x140466c38], 0xffffffff
jne 0x1401f5bed
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140466c30], rdx
lea rcx, [0x140466c38]
call fcn.140259008
jmp 0x1401f5bed
lea rcx, [0x140466c48]
call fcn.140258f70
cmp dword [0x140466c48], 0xffffffff
jne 0x1401f5c12
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140466c40], rax
lea rcx, [0x140466c48]
call fcn.140259008
jmp 0x1401f5c12
Function at 0x1401f65a0
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 [0x140466cb0]
test al, 1
je 0x1401f65d2
call fcn.1402182f0
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140218830
test rsi, rsi
je 0x1401f65ff
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 0x1401f6609
add rdi, rbx
sub rsi, rbx
jne 0x1401f65dd
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x1401faa60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x60]
mov qword [r12 + 0x40], r13
movaps xmm0, xmmword [0x1403db8a0]
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.140209ca0
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.1401fe1a0
mov ebp, 0xffffffff
test r14, r14
js 0x1401fab63
test esi, esi
js 0x1401fab63
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
call fcn.14021c280
test al, al
jne 0x1401faba6
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 0x1401fab93
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x1401fabc2
lea rcx, [rsp + 0x30]
call fcn.14021c310
lea rcx, [rsp + 0x60]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14025a610
mov eax, ebp
add rsp, 0xb8
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 0x1401fab59
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140341970
jmp 0x1401fab1b
int3
Function at 0x1401fabd0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x1403db8a0]
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.140209ca0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fe1a0
test esi, esi
js 0x1401facd9
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14021c280
test al, al
jne 0x1401face0
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 0x1401facfc
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x1401fad0f
lea rcx, [rsp + 0x30]
call fcn.14021c310
lea rcx, [rsp + 0x50]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14025a610
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1401facac
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140341970
jmp 0x1401fac72
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x1401faca2
int3

Function at 0x1401fad20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x60]
mov qword [r12 + 0x40], r13
movaps xmm0, xmmword [0x1403db8a0]
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.140209ca0
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.1401fe1a0
mov ebp, 0xffffffff
test r14, r14
js 0x1401fae20
test esi, esi
js 0x1401fae20
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
call fcn.14021c280
test al, al
jne 0x1401fae50
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.14021c310
lea rcx, [rsp + 0x60]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14025a610
mov eax, ebp
add rsp, 0xb8
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.140341970
jmp 0x1401fadd7
Function at 0x1401fae70
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x38]
mov rcx, r14
mov r9d, 0x4d
call fcn.140209ca0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.1401fe1a0
mov dword [rsp + 0x34], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x1401faf02
mov rbx, qword [rbx]
lea rdx, [rsp + 0x34]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1401fb076
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.140258e18
mov rdi, rax
lea r15, [rax + r14]
xor eax, eax
nop dword [rax]
mov rcx, rdi
add rcx, rax
je 0x1401fb07f
mov byte [rcx], 0
inc rax
cmp r14, rax
jne 0x1401faf30
mov edx, dword [rsp + 0x34]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1401fb0ab
lea r8, [rsp + 0x38]
mov qword [r8], 0
lea r9, [rsp + 0x5c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401fb0ab
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x1401fb0ab
mov ecx, 0x38
call fcn.140258e18
mov rbx, rax
movzx r12d, word [r14]
movzx ebp, word [r14 + 2]
lea rax, fcn.1401053f0
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
movabs r14, 0xfffffffc00000000
mov rax, rdi
and rax, r14
cmp rax, qword [0x14045f348]
jne 0x1401fafeb
mov rcx, rdi
call fcn.1401d5d30
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r12w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x38]
mov qword [r8], 0
lea r9, [rsp + 0x5c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1403eaca2]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401fb0c1
mov rdi, qword [rsp + 0x38]
and r14, rdi
cmp r14, qword [0x14045f348]
jne 0x1401fb040
mov rcx, rdi
call fcn.1401d5d30
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
lea rcx, [rsp + 0x60]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsi], 0
jmp 0x1401fb047
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, 0x25
call fcn.14029ef60
mov qword [rsi], 0
test rdi, rdi
je 0x1401fb047
mov rcx, rdi
call fcn.140258e54
jmp 0x1401fb047
int3
Function at 0x140208d30
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 0x140208d5a
call fcn.140209cc0
cmp qword [rsi], r14
je 0x140208d89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140208da8
cmp r15, 2
jb 0x140208d81
mov qword [rsi], r14
call fcn.140209cc0
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.140209cc0
mov rcx, qword [rsi]
call fcn.1401f5320
mov qword [rsi], 0
jmp 0x140208d73

Function at 0x14020c9d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1401fa920
mov qword [rsi], 0
test rax, rax
je 0x14020ca23
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14020ca57
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14020ca1b
mov qword [rsi], rbx
call fcn.140209cc0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14020a540
lea rcx, [rsi + 0x20]
call fcn.14021c2a0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140209cc0
mov rcx, qword [rsi]
call fcn.1401f5320
mov qword [rsi], 0
jmp 0x14020ca09
Function at 0x14020d1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [0x140466fc8]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x14020d2d7
mov rsi, rcx
lea r14, [0x1403ec2a0]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1403db8a0]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov rax, r12
shl rax, 4
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rax + r14]
test rdx, rdx
je 0x14020d30a
mov r13, qword [rax + r14 + 8]
mov byte [rsp + 0x47], r13b
cmp rbx, rdx
ja 0x14020d23c
lea rax, [rsp + r13*2]
add rax, 0x30
cmp rax, rdx
ja 0x14020d336
lea r8, [r13*2]
mov rcx, rbx
call fcn.14025c0b0
mov word [rsp + r13*2 + 0x30], 0
movzx eax, byte [rsp + 0x47]
mov rcx, qword [rsp + 0x30]
mov r8, rbx
mov rdx, rax
test al, al
jns 0x14020d270
mov rdx, qword [rsp + 0x38]
mov r8, rcx
mov r9, qword [rsi + 8]
cmp r9, rdx
mov r10, rdx
cmovb r10, r9
test r10, r10
js 0x14020d362
cmp rdx, r9
ja 0x14020d2d3
mov bpl, 1
test rdx, rdx
je 0x14020d2ff
mov r9, qword [rsi]
xor r10d, r10d
movzx r11d, word [r9 + r10*2]
cmp r11w, word [r8 + r10*2]
jne 0x14020d2d3
inc r10
cmp rdx, r10
jne 0x14020d29a
mov rdi, rdx
test al, al
js 0x14020d303
test bpl, bpl
jne 0x14020d2d9
inc r12
movzx eax, byte [0x140466fc8]
xor rax, 3
cmp r12, rax
jb 0x14020d1fe
jmp 0x14020d2d7
xor ebp, ebp
jmp 0x14020d2b1
xor edi, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14025a610
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edi, edi
jmp 0x14020d2b1
call fcn.140258e54
jmp 0x14020d2b5
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x136
call fcn.14029ef60
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0x138
call fcn.14029ef60
int3

Function at 0x1402156a0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov ecx, dword [rdx]
mov dword [rsi], ecx
mov dword [rdx], eax
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1402156d1
call fcn.140209cc0
cmp qword [rsi + 8], rbx
je 0x140215703
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140215710
cmp r14, 2
jb 0x1402156fb
mov qword [rsi + 8], rbx
call fcn.140209cc0
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.140209cc0
mov rcx, qword [rsi + 8]
call fcn.1401f5320
mov qword [rsi + 8], 0
jmp 0x1402156ec
Function at 0x140215730
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 0x140215761
call fcn.140209cc0
cmp qword [rsi + 8], rbx
je 0x140215793
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1402157a0
cmp r14, 2
jb 0x14021578b
mov qword [rsi + 8], rbx
call fcn.140209cc0
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.140209cc0
mov rcx, qword [rsi + 8]
call fcn.1401f5320
mov qword [rsi + 8], 0
jmp 0x14021577c

Function at 0x1402157c0
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 0x1402157f2
call fcn.140209cc0
cmp qword [rsi + 8], r14
je 0x140215824
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14021583f
cmp r15, 2
jb 0x14021581c
mov qword [rsi + 8], r14
call fcn.140209cc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140215857
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140209cc0
mov rcx, qword [rsi + 8]
call fcn.1401f5320
mov qword [rsi + 8], 0
jmp 0x14021580d
call fcn.140209cc0
mov rcx, qword [rdi]
call fcn.1401f5320
mov qword [rdi], 0
jmp 0x140215830

Function at 0x140216380
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 0x14021641a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140216404
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1402163e1
mov qword [rsi], rdi
call fcn.140209cc0
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 0x14021641e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140209cc0
mov rcx, qword [rsi]
call fcn.1401f5320
mov qword [rsi], 0
jmp 0x1402163cf
mov byte [rsi + 8], 0
int3
Function at 0x140216620
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1404695b0]
mov ecx, dword [0x14046184c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140216680
mov rsi, qword [0x1404695a8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1404695b0]
call fcn.140258f70
cmp dword [0x1404695b0], 0xffffffff
jne 0x14021665c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14025c760
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.140258e18
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1404695f8]
mov ecx, dword [0x14046184c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140216740
lea r8, [0x1404695c8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140149630
mov qword [0x1404695a8], rsi
lea rcx, [0x1404695b0]
call fcn.140259008
jmp 0x14021665c
lea rcx, [0x1404695f8]
call fcn.140258f70
cmp dword [0x1404695f8], 0xffffffff
jne 0x140216711
xorps xmm0, xmm0
movups xmmword [0x1404695e8], xmm0
movups xmmword [0x1404695d8], xmm0
movups xmmword [0x1404695c8], xmm0
lea rcx, [0x1404695c8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1404695f8]
call fcn.140259008
jmp 0x140216711

Function at 0x140218530
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x1402185a1
xor r11d, r11d
mov rdi, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rbx, rsi
xor rbx, rdi
mov r14d, eax
lea rax, [rbx - 1]
mov r15, rsi
sub r15, rdi
xor r15, rsi
or r15, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
mov rsi, r15
not r15
and r15d, 1
or r15, rsi
mov rsi, rax
and r14d, esi
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x14021854b
cmp rdx, r9
jb 0x1402185b0
ja 0x1402185dc
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x1402185b2
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
mov rdx, rcx
and edx, eax
not rcx
or ecx, edx
mov eax, ecx
jmp 0x1402185a8
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x1402185df
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
mov rcx, r8
and ecx, eax
not r8
and r8d, 1
or r8d, ecx
mov eax, r8d
jmp 0x1402185a8
Function at 0x140218610
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rdx
movsxd rdx, dword [rdx + 8]
test rdx, rdx
je 0x140218748
mov rsi, rcx
mov rax, qword [rdi]
xor ecx, ecx
xor r8d, r8d
or r8, qword [rax + rcx*8]
inc rcx
cmp rdx, rcx
jne 0x140218632
test r8, r8
je 0x140218748
test edx, edx
jle 0x14021876d
mov rax, qword [rdi]
test byte [rax], 1
je 0x14021876d
cmp dword [rdi + 0x10], 0
jne 0x1402187c4
cmp edx, 0x401
jae 0x1402187e4
lea rbx, [rsi + 0x18]
cmp rbx, rdi
je 0x1402186b5
mov rcx, rbx
call fcn.14014ed50
test eax, eax
je 0x14021878d
movsxd r8, dword [rdi + 8]
test r8, r8
je 0x140218824
shl r8, 3
mov rcx, qword [rbx]
mov rdx, qword [rdi]
call fcn.14025c0b0
mov eax, dword [rdi + 8]
mov dword [rsi + 0x20], eax
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x28], eax
mov rdi, rbx
test rdi, rdi
je 0x14021878d
mov eax, dword [rsi + 0x20]
test eax, eax
jle 0x1402187ad
mov rdx, qword [rbx]
lea rcx, [rax - 1]
cmp qword [rdx + rax*8 - 8], 0
mov rax, rcx
je 0x1402186c1
inc ecx
mov dword [rsi + 0x20], ecx
mov rax, qword [rbx]
mov rax, qword [rax]
mov r9d, 1
mov edx, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
mov r10d, r9d
and r10d, 1
neg r10
mov r11, rax
and r11, r10
mov rdi, r11
xor rdi, r9
shr rdi, 1
and r11, r9
add r11, rdi
and r10, r8
shr rcx, 1
or rcx, r10
mov r9, r11
dec rdx
jne 0x1402186fd
mov qword [rsi + 0x30], rcx
mov qword [rsi + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov dword [rsp + 0x20], 0xa4
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.140369ec0
jmp 0x14021873e
mov dword [rsp + 0x20], 0xa8
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x140218766
mov dword [rsp + 0x20], 0xb6
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x140218766
mov dword [rsi + 0x20], eax
test eax, eax
jne 0x1402186e0
mov dword [rsi + 0x28], 0
jmp 0x1402186e0
mov dword [rsp + 0x20], 0xac
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x140218766
mov r8d, 0x400
xor ecx, ecx
or rcx, qword [rax + r8*8]
inc r8
cmp rdx, r8
jne 0x1402187ec
test rcx, rcx
je 0x140218671
mov dword [rsp + 0x20], 0xb0
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x140218766
xor eax, eax
jmp 0x1402186a9