joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064174
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x80
xor ebp, ebp
mov rdi, rdx
mov rsi, rcx
mov rbx, rbp
cmp rdx, rbp
jne 0x1400641ff
mov qword [rax - 0x58], rbp
mov dword [rax - 0x60], ebp
lea r8d, [rbp + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x68], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
cmove rdi, rbp
mov rbx, rdi
cmp rdi, rbp
jne 0x1400641ff
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 3]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
cmove rdi, rbp
mov rbx, rdi
cmp rdi, 0xffffffffffffffff
je 0x14006429a
cmp rdi, rbp
je 0x14006429a
xor eax, eax
lea rcx, [rsp + 0x54]
xor edx, edx
lea r8d, [rax + 0x24]
mov dword [rsp + 0x40], ebp
mov dword [rsp + 0x44], ebp
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0x50], ebp
call fcn.1400fa680
mov r11d, 0x28
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x98]
lea r8, [rsp + 0x40]
lea r9d, [r11 - 0x1c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r11d
mov edx, 0x2d1400
mov rcx, rdi
mov dword [rsp + 0x54], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, dword [rsp + 0x6c]
cmp rbx, rbp
je 0x140064296
cmp rbx, 0xffffffffffffffff
je 0x140064296
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1400642b1
cmp rbx, rbp
je 0x1400642ae
cmp rbx, 0xffffffffffffffff
je 0x1400642ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400646b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x70
mov rsi, rdx
mov edx, 0x20019
mov dword [rax + 0x18], 0x32
mov dword [rax + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov rdi, rax
test rax, rax
je 0x140064740
lea rax, [rsp + 0x90]
lea r9, [rsp + 0x98]
lea rdx, str.Class
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140064740
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140064740
lea eax, [rbx + 1]
jmp 0x140064742
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400660ec
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x20], 0
and qword [rax + 0x18], 0
mov dword [rax - 0x28], 0x80
mov rbp, rdx
mov rdx, rcx
mov dword [rax - 0x30], 3
and qword [rax - 0x38], 0
lea rcx, [rax + 0x18]
mov r9d, 7
mov r8d, 0x80000000
call fcn.140003798
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14006614c
mov rcx, rbx
call fcn.1400df4d4
mov rsi, rax
test rax, rax
jns 0x14006614e
xor esi, esi
lea rcx, [rsp + 0x78]
call fcn.1400615ec
test rsi, rsi
jle 0x1400661a6
lea eax, [rsi + 5]
lea rcx, [rsp + 0x78]
movsxd rdx, eax
call fcn.1400616cc
mov rdi, qword [rsp + 0x78]
and dword [rsp + 0x70], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov rdx, rdi
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x70]
cmp r11, rsi
cmovg r11d, esi
movsxd rax, r11d
mov byte [rax + rdi], 0
jmp 0x1400661ab
mov rdi, qword [rsp + 0x78]
or rsi, 0xffffffffffffffff
mov rdx, rdi
mov rcx, rbp
mov r9, rsi
mov r8, rsi
call fcn.140061a84
lea rcx, [rsp + 0x78]
call fcn.1400592f8
test rbx, rbx
je 0x1400661dd
cmp rbx, rsi
je 0x1400661dd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400662a4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
cmp rdx, rsi
jne 0x1400662c9
lea rax, [0x1401188a0]
jmp 0x140066356
mov eax, esi
mov edx, 0x26
jmp 0x1400662d8
inc eax
add rdi, 2
cmp dx, word [rdi]
je 0x1400662d2
cmp word [rdi], si
je 0x1400662bd
cmp eax, esi
jne 0x140066323
xor ecx, ecx
lea rbx, [0x1401194e8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [rsp + 0x48]
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
jne 0x140066353
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x140066353
lea rbx, [0x1401188a0]
jmp 0x140066353
cmp eax, 1
mov r8, rsi
mov rdx, rdi
cmovg r8, rcx
or r9d, 0xffffffff
mov qword [rsp + 0x20], rsi
call fcn.140018664
lea rcx, [0x1401194e8]
lea rbx, [0x1401188a0]
cmp rax, rsi
cmovne rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140066554
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x20], 0
mov rbx, rcx
je 0x140066586
cmp qword [rcx + 0x10], 0
jle 0x140066586
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
and qword [rbx + 0x10], 0
lea rcx, [rbx + 8]
call fcn.1400592f8
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400665a8
cmp rcx, 0xffffffffffffffff
je 0x1400665a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
add rsp, 0x30
pop rbx
ret
Function at 0x1400666ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov ebp, r8d
mov r13, rdx
mov r12, rcx
and ebp, 1
call fcn.1400df4d4
xor ebx, ebx
cmp eax, ebx
mov rsi, rax
jle 0x1400668cc
add eax, 0xc
mov rcx, r13
movsxd rdx, eax
call fcn.1400619c8
mov rdi, qword [r13]
or dword [rsp + 0x70], 0xffffffff
lea r9, [rsp + 0x70]
mov rdx, rdi
mov r8d, esi
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rsi, dword [rsp + 0x70]
cmp esi, ebx
jle 0x1400668cc
cmp eax, ebx
je 0x1400668cc
lea rcx, [rdi + rsi]
lea r8d, [rbx + 0xa]
xor edx, edx
call fcn.1400fa680
lea r12d, [rsi + 0xa]
lea r14d, [rbx + 2]
lea rdx, [0x14011c02c]
mov r8, r14
mov rcx, rdi
call fcn.140059328
cmp eax, ebx
jne 0x14006675c
mov edx, esi
mov rcx, rdi
call fcn.14005ebbc
lea rdx, [0x14011c028]
mov r8, r14
mov rcx, rdi
call fcn.140059328
mov ecx, ebx
cmp eax, ebx
sete cl
cmp byte [rdi], bl
je 0x1400667a2
cmp byte [rdi + 1], bl
jne 0x1400667a2
lea rcx, [rdi + 2]
movsxd r8, r12d
mov rdx, rdi
call fcn.14001d2c8
mov r11d, 0xfeff
add esi, r14d
add r12d, r14d
mov ecx, 1
mov word [rdi], r11w
cmp ecx, ebx
jne 0x1400668c4
cmp byte [rdi], bl
jne 0x1400667d7
cmp byte [rdi + 1], bl
je 0x1400667d7
lea rcx, [rdi + 2]
movsxd r8, r12d
mov rdx, rdi
call fcn.14001d2c8
mov r11d, 0xfffe
add esi, r14d
mov word [rdi], r11w
add r12d, r14d
jmp 0x14006673c
mov rax, qword [r13]
movsxd rdx, esi
mov rcx, r13
mov qword [rsp + 0x78], rax
mov qword [r13], rbx
call fcn.1400619c8
movzx eax, word [0x14011c028]
mov r11, qword [r13]
mov r10d, 3
lea rdx, [0x14011c030]
mov r8, r10
mov rcx, rdi
mov word [r11], ax
call fcn.140059328
cmp eax, ebx
je 0x140066821
cmp ebp, ebx
je 0x14006685f
mov r10d, ebx
mov rcx, qword [r13]
lea eax, [rsi + 1]
mov r9d, esi
add rcx, r14
movsxd r8, r10d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
sub r9d, r10d
mov edx, 8
mov ecx, 0xfde9
add r8, rdi
call qword [0x140133970]
movsxd r12, eax
cmp ebp, ebx
je 0x1400668ab
cmp r12, rbx
jg 0x1400668ab
or ebp, r14d
mov rcx, qword [r13]
lea eax, [rsi + 1]
mov r9d, esi
add rcx, r14
mov dword [rsp + 0x28], eax
mov r8, rdi
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov edx, 8
call qword [0x140133970]
mov r10d, ebx
movsxd r12, eax
cmp r12, rbx
jg 0x140066894
cmp ebp, ebx
je 0x140066821
lea rcx, [rsp + 0x78]
call fcn.1400592f8
lea ecx, [r12 + 1]
cmp r12, rbx
cmovg ebx, ecx
jmp 0x1400668c0
lea rcx, [rsp + 0x78]
call fcn.1400592f8
lea eax, [r12 + 1]
cmp r12, rbx
cmovg ebx, eax
mov eax, ebx
jmp 0x1400668ce
movsxd rax, esi
shr rax, 1
jmp 0x1400668ce
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140066998
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
xor edi, edi
mov rdx, rcx
lea rcx, [rax + 0x18]
mov qword [rax - 0x30], rdi
mov dword [rax - 0x38], edi
mov dword [rax - 0x40], 3
lea r9d, [rdi + 7]
mov r8d, 0x80000000
mov byte [rax - 0x28], dil
mov dword [rax + 0x10], edi
mov qword [rax + 0x18], rdi
mov qword [rax - 0x48], rdi
call fcn.140003798
cmp qword [rsp + 0x80], rdi
jne 0x1400669e3
xor al, al
jmp 0x140066a36
mov rcx, qword [rsp + 0x80]
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x40]
mov r8d, 0x20
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x78]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.14005d40c
cmp qword [rsp + 0x80], 0xffffffffffffffff
mov dil, al
je 0x140066a33
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, dil
add rsp, 0x60
pop rdi
ret

Function at 0x140067178
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
or dword [rax - 0x28], 0xffffffff
xor r13d, r13d
lea rax, [rax - 0x20]
mov qword [rax], r13
mov rsi, r9
mov r12, r8
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov ebp, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rbx, qword [rsp + 0x80]
mov edi, eax
cmp eax, r13d
jne 0x1400672a0
mov edx, 0x1000
mov rcx, rsi
mov dword [rbx], 0xffa
call fcn.1400616cc
mov r11, qword [rsi]
lea r9, [rsp + 0x30]
mov byte [r11], r13b
mov rax, qword [rsi]
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp eax, 0xea
jne 0x14006724b
add dword [rbx], 0xa
mov eax, dword [rbx]
mov rcx, rsi
add eax, 6
movsxd rdx, eax
call fcn.1400616cc
mov r11, qword [rsi]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebp, 0xffffffff
cmp edi, r13d
jne 0x1400672a0
cmp dword [rbx], r13d
jge 0x140067266
mov dword [rbx], r13d
movsxd rcx, dword [rbx]
mov rax, qword [rsi]
mov byte [rcx + rax], r13b
movsxd rax, dword [rbx]
inc rax
shr rax, 1
movsxd rcx, eax
mov rax, qword [rsi]
mov word [rax + rcx*2 + 2], r13w
mov word [rax + rcx*2], r13w
mov eax, dword [rbx]
add eax, 5
mov rcx, rsi
movsxd rdx, eax
call fcn.1400616cc
mov eax, dword [rsp + 0x30]
jmp 0x1400672b5
mov rax, qword [rsp + 0x88]
mov dword [rbx], r13d
cmp rax, r13
je 0x1400672b2
mov dword [rax], edi
lea eax, [rbp - 1]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x14006756c
Capabilities:
Get disk information via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
push rdi
sub rsp, 0x1e0
and qword [rax + 0x18], 0
mov rdi, r8
mov rsi, rdx
test r8, r8
je 0x14006758f
or qword [r8], 0xffffffffffffffff
and qword [rsp + 0x38], 0
mov rdx, rcx
mov r9d, 3
mov dword [rsp + 0x30], 0x20000000
mov dword [rsp + 0x28], r9d
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x200]
mov r8d, 0x100080
call fcn.140003798
cmp qword [rsp + 0x200], 0
jne 0x1400675d7
or eax, 0xffffffff
jmp 0x140067673
and qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0x200]
or dword [rsp + 0x44], 0xffffffff
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x2d1080
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14006763b
cmp qword [rsp + 0x200], 0xffffffffffffffff
je 0x1400675cf
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400675cf
test rsi, rsi
je 0x140067646
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov esi, dword [rsp + 0x44]
test rdi, rdi
je 0x140067658
mov ecx, dword [rsp + 0x48]
mov dword [rdi + 4], esi
mov dword [rdi], ecx
cmp qword [rsp + 0x200], 0xffffffffffffffff
je 0x140067671
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rsi, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
Function at 0x140067970
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
and qword [rsp + 0x78], 0
mov r14, qword [rsp + 0x90]
mov ebx, 1
lea rax, [r14 + 1]
lea rdi, [rsp + 0x78]
mov ebp, r9d
cmp rax, rbx
mov r12, rdx
mov rsi, rcx
cmova rbx, r14
cmp qword [rsp + 0x98], 0
cmovne rdi, qword [rsp + 0x98]
test r9d, r9d
jg 0x1400679d5
mov rcx, qword [rcx]
mov edx, 0x200
call fcn.14005da1c
mov ebp, eax
mov eax, dword [rsp + 0x80]
xor edx, edx
movsxd r13, ebp
shl rax, 7
mov rcx, r12
lea rax, [rax + r13 - 1]
div r13
xor edx, edx
add eax, 2
mov qword [rsp + 0x90], rax
lea r8d, [rax + 2]
imul r8d, ebp
call fcn.1400fa680
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsi]
and dword [rsp + 0x88], 0
xor r8d, r8d
call fcn.14005a860
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test r14, r14
jne 0x140067a64
mov eax, 0x1c2
cmp byte [rax + r12], 0xee
jne 0x140067a58
mov ebx, dword [rax + r12 + 4]
add rax, 0x10
cmp rax, 0x1f2
jle 0x140067a4c
mov rcx, qword [rsi]
mov rdx, r13
xor r8d, r8d
imul rdx, rbx
add rdx, qword [rsp + 0xa0]
call fcn.14005a860
mov r8, qword [rsp + 0x90]
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
inc r8d
lea r14, [r13 + r12]
imul r8d, ebp
lea r9, [rsp + 0x88]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp qword [rsp + 0x98], 0
lea eax, [rbp + rbp]
cdqe
lea r12, [rax + r12 + 0x10000]
je 0x140067b16
mov r8, r13
xor edx, edx
mov rcx, r12
call fcn.1400fa680
cmp qword [rdi], 2
jae 0x140067adf
mov rax, qword [r14 + 0x20]
mov qword [rdi], rax
mov rdx, qword [rdi]
mov rcx, qword [rsi]
xor r8d, r8d
imul rdx, r13
add rdx, qword [rsp + 0xa0]
call fcn.14005a860
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, ebp
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rax, rbx
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140068ed0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
cmp byte [rcx], 0x23
mov r12, rdx
mov esi, ebx
sete sil
mov rdi, rcx
cmp esi, ebx
je 0x140068f00
inc rdi
cmp byte [rdi], 0x23
mov bpl, bl
jne 0x140068f1e
mov bpl, byte [rdi + 1]
cmp bpl, bl
jne 0x140068f18
xor eax, eax
jmp 0x140068fc4
inc esi
add rdi, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
lea ecx, [rax + rax*2]
movsxd rdx, ecx
mov rcx, r12
call fcn.1400616cc
mov r11, qword [r12]
mov r8d, ebx
mov byte [r11], bl
mov r13, r11
mov cl, bl
jmp 0x140068f64
mov al, byte [rdi]
cmp al, 0x3d
jne 0x140068fdd
cmp cl, bl
jle 0x140068f61
mov byte [r11], r8b
mov cl, bl
inc r11
mov r8d, ebx
inc rdi
cmp byte [rdi], bl
jne 0x140068f48
mov rcx, r13
mov byte [r11], bl
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp esi, ebx
je 0x140068fc0
movsxd r8, eax
mov r9, rbx
cmp r8, rbx
jle 0x140068fc0
mov eax, 0x66666667
imul ebx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebx
inc ebx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
lea rax, [0x14011ccf8]
mov al, byte [rcx + rax]
xor al, byte [r9 + r13]
xor al, bpl
mov byte [r9 + r13], al
inc r9
cmp r9, r8
jl 0x140068f83
mov rax, qword [r12]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
cmp al, 0x2b
jne 0x140068fe5
mov al, bl
jmp 0x140069003
cmp al, 0x2f
jne 0x140068fed
mov al, 1
jmp 0x140069003
cmp al, 0x39
ja 0x140068ff5
add al, 0xd2
jmp 0x140069003
cmp al, 0x5a
ja 0x140068ffd
add al, 0xcb
jmp 0x140069003
cmp al, 0x7a
ja 0x140069008
add al, 0xc5
movzx edx, al
jmp 0x14006900b
or edx, 0xffffffff
cmp edx, ebx
jl 0x140068f11
shl edx, cl
or r8d, edx
add cl, 6
cmp cl, 8
jge 0x140069030
cmp cl, bl
jle 0x140068f61
cmp byte [rdi], bl
jne 0x140068f61
mov byte [r11], r8b
inc r11
shr r8d, 8
add cl, 0xf8
jmp 0x14006901b
Function at 0x140069040
Capabilities:
Encode data using base64
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14b, r8b
mov r15, rdx
mov r12, rcx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x50]
mov ebp, eax
mov r13d, eax
xor sil, sil
call fcn.1400615ec
test r14b, r14b
jne 0x140069176
mov eax, 0x14
lea rcx, [rsp + 0x50]
cmp ebp, eax
cmovl r13d, eax
lea eax, [r13 + 4]
movsxd rbx, eax
mov rdx, rbx
call fcn.1400616cc
mov rdi, qword [rsp + 0x50]
mov r8, rbx
mov rcx, rdi
xor edx, edx
call fcn.1400fa680
lea r11d, [rbp + 1]
mov rdx, r12
movsxd r8, r11d
mov rcx, rdi
call fcn.14001d310
test ebp, ebp
jle 0x1400690e3
mov rax, rbp
add sil, sil
add sil, byte [r12]
inc r12
sub rax, 1
jne 0x1400690d3
mov al, sil
mov ecx, ebp
xor r12d, r12d
shr al, 5
sar ecx, 2
lea r11, [0x140000000]
add cl, al
mov al, sil
shr sil, 2
shl al, 3
movsxd r10, r13d
mov r9d, r12d
add cl, al
mov r8, r12
add cl, sil
add cl, bpl
movzx eax, cl
cdq
and edx, 0x3f
add eax, edx
and eax, 0x3f
sub eax, edx
cmp r10, r12
movsxd rcx, eax
mov sil, byte [rcx + r11 + 0x11ccb0]
jle 0x140069171
mov eax, 0x66666667
imul r9d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r9d
inc r9d
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
mov al, byte [rcx + r11 + 0x11ccf8]
xor al, byte [r8 + rdi]
xor al, sil
mov byte [r8 + rdi], al
inc r8
cmp r8, r10
jl 0x140069133
mov ebp, r13d
jmp 0x140069179
xor r12d, r12d
lea eax, [rbp + rbp*2 + 0x10]
mov rcx, r15
movsxd rdx, eax
call fcn.1400619c8
mov rbx, qword [r15]
mov word [rbx], r12w
add rbx, 2
mov word [rbx], r12w
cmp byte [rdi], r12b
je 0x14006928c
cmp r14b, r12b
jne 0x1400691bd
mov eax, 0x23
mov word [rbx], ax
mov word [rbx + 2], ax
movzx eax, sil
mov word [rbx + 4], ax
add rbx, 6
movsxd r8, r13d
mov r9b, 8
mov word [rbx], r12w
movzx edx, byte [rdi]
add r8, rdi
lea r10, [0x140000000]
inc rdi
mov cl, r9b
cmp cl, 6
jge 0x1400691e9
cmp cl, r12b
jle 0x140069246
cmp rdi, r8
jne 0x140069249
mov al, dl
and al, 0x3f
cmp r14b, r12b
je 0x1400691ff
movzx eax, al
mov al, byte [rax + r10 + 0x11ccb0]
jmp 0x140069226
cmp al, r12b
jne 0x140069208
mov al, 0x2b
jmp 0x140069226
cmp al, 1
jne 0x140069210
mov al, 0x2f
jmp 0x140069226
cmp al, 0xc
jae 0x140069218
add al, 0x2e
jmp 0x140069226
cmp al, 0x26
jae 0x140069220
add al, 0x35
jmp 0x140069226
cmp al, 0x40
jae 0x140069226
add al, 0x3b
movzx eax, al
shr edx, 6
mov word [rbx], ax
add rbx, 2
add cl, 0xfa
jns 0x1400691da
mov eax, 0x3d
mov word [rbx], ax
add rbx, 2
jmp 0x1400691da
cmp rdi, r8
jae 0x14006927c
movzx eax, byte [rdi]
inc rdi
shl eax, cl
add cl, r9b
or edx, eax
cmp rdi, r8
jae 0x14006927c
movzx eax, byte [rdi]
inc rdi
shl eax, cl
add cl, r9b
or edx, eax
cmp rdi, r8
jae 0x14006927c
movzx eax, byte [rdi]
inc rdi
shl eax, cl
or edx, eax
add cl, r9b
cmp cl, r12b
jg 0x1400691da
mov word [rbx], r12w
mov rbx, qword [r15]
lea rcx, [rsp + 0x50]
call fcn.1400592f8
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400694e4
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x380
mov r12, rcx
lea rcx, [rax + 0x10]
call fcn.1400592c8
xor r13d, r13d
lea rdx, [rsp + 0x3b8]
lea r8d, [r13 + 5]
lea rcx, [0x14011e500]
call fcn.1400612f8
lea ecx, [r13 + 1]
movzx ebx, r13b
cmp al, r13b
cmovne ebx, ecx
lea rcx, [rsp + 0x3c8]
call fcn.1400618c8
mov rax, qword [rsp + 0x3b8]
lea edi, [r13 + 0x3d]
lea rsi, [0x1401151f8]
cmp di, word [rax]
je 0x140069585
lea r8, [rsp + 0x3c8]
lea rdx, [rsp + 0x3b8]
mov r9d, edi
mov rcx, r12
mov word [rsp + 0x20], r13w
call fcn.140052a90
mov qword [rsp + 0x3b8], rax
cmp di, word [rax]
jne 0x14006959c
add rax, 2
mov rcx, rax
mov qword [rsp + 0x3b8], rax
call fcn.14001b86c
mov rsi, rax
mov rcx, qword [rsp + 0x3c8]
cmp word [rcx], r13w
je 0x14006965f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x134]
xor edx, edx
mov r8d, 0x24c
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x130], r13d
movsxd rbp, eax
call fcn.1400fa680
cmp ebp, r13d
jle 0x140069685
mov eax, 0x5c
cmp ax, word [rsi + rbp*2 - 2]
je 0x140069601
mov eax, 0x2f
cmp ax, word [rsi + rbp*2 - 2]
jne 0x140069685
mov rdi, qword [rsp + 0x3b8]
cmp ebp, 0x20e
jge 0x14006961c
mov rcx, rsi
call fcn.140069324
mov rdi, rax
lea rcx, [rsp + 0x60]
mov rdx, rdi
mov word [rsp + 0x60], r13w
call fcn.1400df90c
mov rdx, qword [rsp + 0x3c8]
lea r8, [rsp + 0x60]
mov rcx, r12
call fcn.140060cec
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x14006965a
cmp rcx, 0xffffffffffffffff
je 0x14006965a
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rsp + 0x40], r13
lea rcx, [rsp + 0x3c8]
call fcn.1400592f8
mov rbx, qword [rsp + 0x3b0]
xor eax, eax
add rsp, 0x380
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rsp + 0x130]
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400f9a10
mov rdi, r13
cmp qword [rsp + 0x40], r13
je 0x14006961c
test byte [rsp + 0x130], 0x10
jne 0x140069609
bt dword [rsp + 0x130], 0xa
jae 0x140069739
cmp bl, r13b
jle 0x140069739
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0x50]
mov r9d, 7
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x20], r13
call fcn.140003798
mov rbx, qword [rsp + 0x50]
cmp rbx, r13
je 0x140069609
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov qword [rsp + 0x48], r13
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, qword [rsp + 0x48]
cmp rbx, 0xffffffffffffffff
je 0x14006961c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006961c
mov edi, dword [rsp + 0x14c]
mov eax, dword [rsp + 0x150]
shl rdi, 0x20
or rdi, rax
jmp 0x14006961c
Function at 0x14006aeec
Capabilities:
Clear file content

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
xor r8d, r8d
call fcn.14005a860
mov rcx, qword [rbx]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEndOfFile]