joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f9d00
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400f9d30
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400f9d3e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401f4a80
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400f9d54
mov rdi, rdx
jmp 0x1400f9d15
jae 0x1400f9e41
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400f9d61
cvtsi2ss xmm0, rax
jmp 0x1400f9d76
mov rcx, rdx
call fcn.1401efc30
mov rdi, rax
jmp 0x1400f9d15
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.140279380
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1403c47b8]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400f9e29
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400f9e29
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400f9e31
mov rcx, rdx
call fcn.1401efc30
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1400f9d1e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400fc680
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x1400fc730
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor ebp, ebp
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x1400fc7a3
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14025a610
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x90]
mov qword [rax], 0
mov r9d, esi
or r9d, 8
mov qword [rsp + 0x20], rax
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x1400fc775
mov ebp, eax
test eax, eax
jne 0x1400fc775
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x70]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14029a900
movzx eax, byte [r14 + 0x17]
test al, al
jns 0x1400fc811
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400fc82a
lea rcx, [rsp + 0x70]
call fcn.1402cfc10
cmp word [rax], 0x5c
jne 0x1400fc946
movzx r15d, byte [rsp + 0x87]
test r15b, r15b
jns 0x1400fc83d
mov r15, qword [rsp + 0x78]
xorps xmm6, xmm6
lea r12, [rsp + 0x50]
movaps xmmword [r12], xmm6
mov qword [r12 + 0x10], 0
lea r13, [rsp + 0x4c]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x4c], 0x104
mov edx, 0x104
mov rcx, r12
call fcn.1400fe440
mov rcx, qword [rsp + 0x90]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, rax
mov r9, r13
call rbp
test eax, eax
jne 0x1400fc8f6
mov edx, dword [rsp + 0x4c]
mov rcx, r12
xor r8d, r8d
call fcn.1401f3020
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401f3020
movzx r8d, byte [rsp + 0x67]
mov rdx, r12
test r8b, r8b
jns 0x1400fc8c9
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call fcn.1400e4b90
cmp byte [rsp + 0x87], 0
mov rdx, r14
jns 0x1400fc8e3
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
mov r8d, esi
call fcn.1400fc730
test eax, eax
je 0x1400fc85f
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
jns 0x1400fc929
mov rcx, qword [rsp + 0x50]
call fcn.140258e54
cmp byte [rsp + 0x87], 0
jns 0x1400fc775
mov rcx, qword [rsp + 0x70]
call fcn.140258e54
jmp 0x1400fc775
lea rcx, [rsp + 0x70]
mov dx, 0x5c
call fcn.1401f2e00
jmp 0x1400fc82a
Function at 0x1400fc970
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400fc9f9
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400fc9e3
cmp dword [rsp + 0x38], 4
jne 0x1400fc9e3
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14025a610
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400fc9e3

Function at 0x1400fca00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14025a5b0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14025c760
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400fcac4
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400fcac8
lea rcx, [rsp + 0x840]
call fcn.1402831c4
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.1400e47e0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14025a610
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400fcaa5
cmp eax, 2
jne 0x1400fcb1d
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14025c760
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400fcb24
lea rcx, [rsp + 0x40]
call fcn.1402831c4
lea rdx, [rsp + 0x40]
jmp 0x1400fca98
mov edi, 0x3f4
jmp 0x1400fcaa5
mov edi, 0xea
jmp 0x1400fcaa5

Function at 0x1400fcb30
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14025a610
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x1400fcb90
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.1402831c4
lea eax, [rax*2 + 2]
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400fcdf0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx], 0
je 0x1400fcedf
cmp dword [rsi + 8], 0xffffffff
je 0x1400fcedf
lea rdi, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400fcf37
mov ebp, dword [rsi + 0x20]
dec ebp
lea rbx, [rsp + 0x44]
mov dword [rbx], ebp
mov eax, dword [rsi + 0x30]
mov r12, qword [rsi + 0x28]
sub eax, r12d
and eax, 0xfffffffe
add eax, 0xfffffffe
lea r14, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r15, [rsi + 0x44]
mov edx, ebp
mov rcx, rdi
call fcn.1400fe440
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x1400fcf41
test eax, eax
jne 0x1400fcedf
mov eax, dword [rsi + 0x40]
inc rax
shr rax, 1
mov rcx, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x30]
sub rdx, rcx
sar rdx, 1
cmp rdx, rax
jbe 0x1400fcf0b
mov word [rcx + rax*2], 0
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14025a610
mov eax, esi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400fceec
mov rax, qword [rax]
mov word [rax], 0
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
je 0x1400fcf0b
mov word [rax], 0
mov dword [rsi + 0x40], 0
xor esi, esi
jmp 0x1400fcec1
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x5b5
call fcn.14029ef60
mov ebp, 0xa
jmp 0x1400fce37
mov edx, dword [rsi + 0x40]
inc rdx
shr rdx, 1
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
mov rcx, rax
sar rcx, 1
sub rdx, rcx
jb 0x1400fcf82
lea rcx, [rsi + 0x28]
lea r8, [rsp + 0x42]
mov word [r8], 0
inc rdx
call fcn.1400fd310
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
and eax, 0xfffffffe
add eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rbx, [rsp + 0x44]
cmp dword [rbx], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rbx], edx
mov rcx, rdi
call fcn.1400fe440
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1400fce98

Function at 0x1400fd050
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
je fcn.1400fcdf0
dec eax
mov dword [rcx + 8], eax
jmp fcn.1400fcdf0
Function at 0x1400fd090
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x70], rax
or r9d, 0x20019
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400fd16e
lea rdi, [rsp + 0x64]
mov dword [rdi], 0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x58], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400fd165
mov edx, dword [rsp + 0x64]
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400fd175
test al, al
jne 0x1400fd175
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x6c]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400fd17b
jmp 0x1400fd175
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsi], 0
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14025a610
nop
add rsp, 0x78
pop rdi
pop rsi
ret

Function at 0x1400fd210
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, dword [rcx + 8]
cmp edx, 0xffffffff
je 0x1400fd286
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400fd286
test al, al
jne 0x1400fd286
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x54]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r10, [rsp + 0x4c]
mov qword [r10], rax
mov qword [rsp + 0x38], r10
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400fd28c
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14025a610
nop
add rsp, 0x60
pop rsi
ret
Function at 0x1400fd990
Capabilities:
Create thread

Disassembly:
jmp 0x1400fd990
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140258e18
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14045f348]
je 0x1400fda5e
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400fde40]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400fda68
test r14, r14
je 0x1400fdaac
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14025a610
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.1401d5d30
jmp 0x1400fd9f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400fda81
mov ebp, eax
cmp eax, 0x5af
je 0x1400fda81
cmp ebp, 0xe
jne 0x1400fdab7
mov rcx, rbx
call fcn.1403275f0
test rsi, rsi
je 0x1400fda38
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14045f348]
jne 0x1400fdaa2
call fcn.1401d5e80
mov rcx, rsi
call fcn.140258e54
jmp 0x1400fda38
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400fda38
mov eax, dword [0x140466c98]
mov ecx, dword [0x14046184c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fdb2a
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14010b7f0
movzx eax, byte [rbx + 0x17]
test al, al
mov rcx, qword [rbx]
cmovns rcx, rbx
cmovs rax, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x140466c90]
call fcn.1402180c0
cmp byte [rbx + 0x17], 0
jns 0x1400fda89
mov rcx, qword [rsp + 0x38]
call fcn.140258e54
jmp 0x1400fda89
lea rcx, [0x140466c98]
call fcn.140258f70
cmp dword [0x140466c98], 0xffffffff
jne 0x1400fdad8
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14014d570
mov qword [0x140466c90], rax
lea rcx, [0x140466c98]
call fcn.140259008
jmp 0x1400fdad8

Function at 0x1400ff6e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1400ff727
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ff741
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400ff71f
mov qword [rsi], rdi
call fcn.140209cc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400ff757
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 0x1400ff70d
int3
Function at 0x1400ff790
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 0x1400ff7ba
call fcn.140209cc0
cmp qword [rsi], r14
je 0x1400ff7e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ff824
cmp r15, 2
jb 0x1400ff7e1
mov qword [rsi], r14
call fcn.140209cc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400ff80e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140209cc0
mov rcx, qword [rdi]
call fcn.1401f5320
mov qword [rdi], 0
jmp 0x1400ff7ff
call fcn.140209cc0
mov rcx, qword [rsi]
call fcn.1401f5320
mov qword [rsi], 0
jmp 0x1400ff7d3

Function at 0x1400ffc30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
test rdx, rdx
je 0x1400ffcdd
mov rdi, rdx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0x400
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [rbx]
cmp qword [rsi], rbx
je 0x1400ffcdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ffcf9
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400ffcd5
mov qword [rsi], rbx
call fcn.140209cc0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14025a610
mov rax, rsi
add rsp, 0x50
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 0x1400ffcc3
Function at 0x140100a60
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1401556d0
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1403d9938]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140100ad5
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140100ae0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140100acd
mov qword [rsi + 0x18], rdi
call fcn.140209cc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140209cc0
mov rcx, qword [rsi + 0x18]
call fcn.1401f5320
mov qword [rsi + 0x18], 0
jmp 0x140100aba

Function at 0x140101010
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x1403db8a0]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.140209ca0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401fe1a0
mov rcx, rsi
call fcn.1401fa910
test al, al
je 0x14010118d
mov rcx, rsi
call fcn.1400ba710
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x14010110b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x1401011b6
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1401010ff
mov qword [rsi + 0x40], rdi
call fcn.140209cc0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1401011d1
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
movabs rbx, 0xfffffffc00000000
mov rax, rcx
and rax, rbx
cmp rax, qword [0x14045f348]
je 0x1401011d5
and rbx, rdi
cmp rbx, qword [0x14045f348]
je 0x1401011df
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x1401011d1
lea rax, fcn.1402ac8b0
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
call fcn.14014d560
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1401fe3e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14025a610
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140209cc0
mov rcx, qword [rsi + 0x40]
call fcn.1401f5320
mov qword [rsi + 0x40], 0
jmp 0x1401010ea
xor edi, edi
jmp 0x14010118d
call fcn.1401d6230
jmp 0x140101156
mov rcx, rdi
call fcn.1401d5d30
jmp 0x140101162
Function at 0x1401015a0
Capabilities:
Write 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.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, ILFree
call fcn.140209ca0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401fe1a0
test esi, esi
js 0x1401016aa
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14021c280
test al, al
jne 0x1401016b1
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
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 0x14010167d
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140341970
jmp 0x140101642

Function at 0x1401016d0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14044f038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x40], r14
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.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xac
call fcn.140209ca0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401fe1a0
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.14021c280
test al, al
jne 0x1401017b0
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
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 rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140341970
jmp 0x14010175d