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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x1400cf666
mov r15, rbx
test r15, r15
je 0x1400cf761
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x1400cf6c2
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x1400cf6b1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14018f480
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x1400cf642
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x1400cf787
lea rcx, [r13*8]
call fcn.140155818
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x1400cf727
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x1400cf761
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x1400cf70c
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x1400cf747
add rbx, 0xfffffffffffffff8
jne 0x1400cf73a
jmp 0x1400cf774
test r12, r12
je 0x1400cf642
mov rcx, r12
call fcn.140155854
mov r15, qword [rsi + 0x10]
jmp 0x1400cf642
lea rcx, [0x140231db2]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140194150
lea rcx, [0x140231db2]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140194150
call fcn.140190760
int3
Function at 0x1400d8800
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400d8810
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x1400d8831
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400d8851
cmp byte [r14 + 0x50], 1
je 0x1400d88dc
or edi, 0x20000000
test dil, 8
jne 0x1400d88e7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1400d886f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x1400d8880
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x1400d890e
cmp byte [r14 + 0x18], 1
je 0x1400d891f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400d892f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400d8904
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x1400d8851
cmp byte [r14 + 0x68], 1
jne 0x1400d88f9
or edi, 0x40000000
jmp 0x1400d885b
or edi, 0x10000000
jmp 0x1400d885b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d88c7
lea rcx, [r14 + 0x20]
call fcn.1400d7ed0
mov r15, rax
jmp 0x1400d888b
mov rcx, r14
call fcn.1400d7ed0
mov r9, rax
jmp 0x1400d8899
cmp ebx, 4
jne 0x1400d893e
mov edx, 6
jmp 0x1400d88a6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400d8950
mov edx, 7
jmp 0x1400d88a6
cmp ebx, 1
jne 0x1400d895f
mov edx, 4
jmp 0x1400d88a6
xor edx, edx
jmp 0x1400d88a6
Function at 0x1400d8810
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400d8810
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x1400d8831
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400d8851
cmp byte [r14 + 0x50], 1
je 0x1400d88dc
or edi, 0x20000000
test dil, 8
jne 0x1400d88e7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1400d886f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x1400d8880
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x1400d890e
cmp byte [r14 + 0x18], 1
je 0x1400d891f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400d892f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x1400d8904
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x1400d8851
cmp byte [r14 + 0x68], 1
jne 0x1400d88f9
or edi, 0x40000000
jmp 0x1400d885b
or edi, 0x10000000
jmp 0x1400d885b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d88c7
lea rcx, [r14 + 0x20]
call fcn.1400d7ed0
mov r15, rax
jmp 0x1400d888b
mov rcx, r14
call fcn.1400d7ed0
mov r9, rax
jmp 0x1400d8899
cmp ebx, 4
jne 0x1400d893e
mov edx, 6
jmp 0x1400d88a6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400d8950
mov edx, 7
jmp 0x1400d88a6
cmp ebx, 1
jne 0x1400d895f
mov edx, 4
jmp 0x1400d88a6
xor edx, edx
jmp 0x1400d88a6

Function at 0x1400d8970
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400d89a8
cmp byte [r15 + 0x50], 1
je 0x1400d8a3f
or edi, 0x20000000
test dil, 8
jne 0x1400d8a4a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x1400d89c6
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x1400d89d7
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 1
je 0x1400d8a71
cmp byte [r15 + 0x18], 1
je 0x1400d8a82
xor r9d, r9d
cmp ebx, 4
jne 0x1400d8a30
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x1400d8a67
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400d8a92
mov edx, 7
jmp 0x1400d89fa
or edi, 0x80000000
jmp 0x1400d89a8
cmp byte [r15 + 0x68], 1
jne 0x1400d8a5c
or edi, 0x40000000
jmp 0x1400d89b2
or edi, 0x10000000
jmp 0x1400d89b2
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400d8a1b
lea rcx, [r15 + 0x20]
call fcn.1400d7ed0
mov r14, rax
jmp 0x1400d89e2
mov rcx, r15
call fcn.1400d7ed0
mov r9, rax
jmp 0x1400d89f0
mov edx, 1
test ebx, ebx
je 0x1400d89fa
cmp ebx, 1
jne 0x1400d8aae
mov edx, 4
jmp 0x1400d89fa
xor edx, edx
jmp 0x1400d89fa
Function at 0x1400d9190
Capabilities:
Delete registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400d925f
mov ebp, r8d
mov rbx, rdx
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], r15
xor eax, eax
mov qword [rsp + 0x38], rax
mov r12d, dword [rsi + 8]
mov r9d, r12d
or r9d, 0x10001
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d923f
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x28], r14
and r12d, 0x300
mov dword [rsp + 0x30], r12d
test bpl, 1
je 0x1400d9266
test r14, r14
je 0x1400d9230
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsi + 8]
mov rcx, qword [rsi]
mov rdx, rbx
call fcn.1400d92d0
mov edi, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140156d40
mov eax, edi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, 6
jmp 0x1400d9241
lea rdi, [rsp + 0x40]
mov qword [rdi], r15
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400d94a0
cmp byte [rdi + 4], 0
jne 0x1400d929c
mov r8d, dword [rsi + 8]
lea rdx, [0x1402363bc]
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x1400d92a0
mov edi, dword [rsp + 0x40]
test r14, r14
je 0x1400d9241
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400d9241
mov edx, 1
call fcn.1400d9810
jmp 0x1400d9241
Function at 0x1400d92d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x14022f060]
movaps xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r9d, r8d
or r9d, 0x10009
lea rax, [rsp + 0x60]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d93c7
lea rbx, [rsp + 0x60]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x40]
mov qword [rcx], rdi
mov eax, esi
and eax, 0x300
mov dword [rcx + 8], eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx], rax
mov rdx, rbx
call fcn.1400d94a0
cmp byte [rbx + 4], 0
jne 0x1400d947f
lea rdx, [0x1402363bc]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x1400d93cf
test rdi, rdi
je 0x1400d9396
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x1400d9488
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140156d40
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp eax, 2
cmovne ebx, eax
jmp 0x1400d9396
mov ecx, 0x200
call fcn.14015588c
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.14018fb20
xorps xmm6, xmm6
lea rbx, [rsp + 0x60]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x60], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x1400d944c
mov eax, dword [rsp + 0x60]
cmp rax, 0x100
jae 0x1400d9497
cmp word [r14 + rax*2], 0
jne 0x1400d949a
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.1400d92d0
test eax, eax
je 0x1400d93fb
jmp 0x1400d9451
mov rdi, qword [rsp + 0x40]
lea rdx, [0x1402363bc]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x1400d9388
mov rcx, r14
call fcn.140155894
jmp 0x1400d9388
mov ebx, dword [rsp + 0x60]
jmp 0x1400d9388
mov edx, 1
call fcn.1400d9810
jmp 0x1400d93a4
int3
int3
Function at 0x1400d94a0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x3c]
mov dword [r9], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SymbolicLinkValue
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1400d9506
mov byte [rsi], 0
xor eax, eax
mov byte [rsi + 4], al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140156d40
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
test eax, eax
jne 0x1400d9554
cmp dword [rsp + 0x3c], 6
jne 0x1400d94e7
mov rcx, qword [rdi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x1400d955a
mov edi, eax
mov eax, dword [0x14026fe08]
mov ecx, dword [0x14026c848]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d9569
mov rax, qword [0x14026fe00]
test rax, rax
je 0x1400d9562
mov ecx, edi
call qword [0x140250b60]
mov dword [rsi], eax
mov al, 1
jmp 0x1400d94ec
mov dword [rsi], 0
jmp 0x1400d9556
mov eax, 5
jmp 0x1400d9554
lea rcx, [0x14026fe08]
call fcn.14015589c
cmp dword [0x14026fe08], 0xffffffff
jne 0x1400d9540
lea rcx, [0x140240360]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14026fe00], rax
lea rcx, [0x14026fe08]
call fcn.140155950
jmp 0x1400d9540

Function at 0x1400d95c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14025e040]
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]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d9648
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400d9632
cmp dword [rsp + 0x38], 4
jne 0x1400d9632
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140156d40
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400d9632
Function at 0x1400d9650
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140156ce0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14018fb20
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
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 0x1400d9703
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400d9707
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400d7380
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140156d40
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400d96e4
cmp eax, 2
jne 0x1400d974f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14018fb20
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 0x1400d9756
lea rdx, [rsp + 0x40]
jmp 0x1400d96da
mov edi, 0x3f4
jmp 0x1400d96e4
mov edi, 0xea
jmp 0x1400d96e4

Function at 0x1400d9760
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.140175a44
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
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 0x1400da9e0
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 0x1400daa27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400daa41
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400daa1f
mov qword [rsi], rdi
call fcn.14012d270
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 0x1400daa57
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14012d270
mov rcx, qword [rsi]
call fcn.140121480
mov qword [rsi], 0
jmp 0x1400daa0d
int3
Function at 0x1400daa90
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 0x1400daaba
call fcn.14012d270
cmp qword [rsi], r14
je 0x1400daae9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400dab0e
cmp r15, 2
jb 0x1400daae1
mov qword [rsi], r14
call fcn.14012d270
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 0x1400dab24
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14012d270
mov rcx, qword [rsi]
call fcn.140121480
mov qword [rsi], 0
jmp 0x1400daad3
mov rcx, rdi
call fcn.14011d4c0
jmp 0x1400daaff
Function at 0x1400dbdf0
Capabilities:
Write 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 [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x14022f060]
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.WriteAtCurrentPos
lea r8, [0x140240654]
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.14012d250
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140124060
test esi, esi
js 0x1400dbef6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.1401416a0
test al, al
jne 0x1400dbefd
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.140141c40
lea rcx, [rsp + 0x50]
call fcn.1401240e0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140156d40
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400dbecb
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1401e0230
jmp 0x1400dbe90

Function at 0x1400dbf20
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14022f060]
lea rdi, [rsp + 0x50]
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, [0x140240654]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xac
call fcn.14012d250
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140124060
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.1401416a0
test al, al
jne 0x1400dbffc
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.140141c40
lea rcx, [rsp + 0x50]
call fcn.1401240e0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140156d40
mov rax, rsi
add rsp, 0x98
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.1401e0230
jmp 0x1400dbfa9
Function at 0x1400dc020
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm0, xmmword [0x14022f060]
lea rbx, [rsp + 0x50]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, [0x140240654]
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xb9
call fcn.14012d250
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140124060
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.1401416a0
test al, al
jne 0x1400dc148
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400dc10f
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400dc10f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400dc144
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.140141c40
lea rcx, [rsp + 0x50]
call fcn.1401240e0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140156d40
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x1400dc10f
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.1401e0230
jmp 0x1400dc0b2
Function at 0x1400dc270
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14025e040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14022f060]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, [0x140240654]
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.14012d250
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140124060
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x1400dc4dc
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x1400dc4ca
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400dc3d3
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x1400dc42d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400dc496
mov rax, r14
inc rax
cmp rax, 2
jb 0x1400dc422
mov qword [rsi], r14
call fcn.14012d270
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400dc484
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x1400dc4af
test bl, 0xa
je 0x1400dc453
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x1400dc4c0
lea rcx, [rsp + 0x60]
call fcn.1401240e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140156d40
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dc170
mov dword [rsi + 0x24], eax
jmp 0x1400dc459
call fcn.14012d270
mov rcx, qword [rsi]
call fcn.140121480
mov qword [rsi], 0
jmp 0x1400dc40e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400dc453
mov rcx, rdi
call fcn.1400ddc30
jmp 0x1400dc459
bt ebx, 0x15
jb 0x1400dc4f8
or r8d, 0x20000000
jmp 0x1400dc351
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1401be250
jmp 0x1400dc459
int3