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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r9
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400f3ad0
test rbx, rbx
je 0x1400f3ad0
mov rcx, rdx
call fcn.1400f3af0
cmp rbp, rax
jb 0x1400f3ad0
xor edx, edx
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r9d, edx
cmp rsi, 2
jbe 0x1400f3a39
lea r8, [rdi + 2]
nop dword [rax]
movzx eax, byte [r8 - 2]
add rdx, 4
shr rax, 2
add r9, 3
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8 - 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx ecx, byte [r8 - 1]
movzx eax, byte [r8]
and ecx, 0xf
shr rax, 6
shl rcx, 2
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 2], al
movzx eax, byte [r8]
add r8, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rbx + 3], al
mov rax, r8
sub rax, rdi
add rbx, 4
cmp rax, rsi
jb 0x1400f39c0
add rdi, r9
sub rsi, r9
test sil, 2
je 0x1400f3a94
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx ecx, byte [rdi]
movzx eax, byte [rdi + 1]
and ecx, 3
shr rax, 4
shl rcx, 4
or rcx, rax
movzx eax, byte [rcx + r10]
mov byte [rbx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rbx + 2], al
mov byte [rbx + 3], 0x3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x1400f3ad2
test sil, 1
je 0x1400f3ac7
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rbx], al
movzx eax, byte [rdi]
and eax, 3
add rax, rax
movzx eax, byte [r10 + rax*8]
mov byte [rbx + 1], al
mov word [rbx + 2], 0x3d3d
add rbx, 4
add rdx, 4
mov byte [rbx], 0
lea rax, [rdx + 1]
jmp 0x1400f3ad2
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f3ca0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x1400f3cd9
xor eax, eax
jmp 0x1400f3d7f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401a2a40]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x1400f3d08
mov edi, ebp
jmp 0x1400f3d6e
mov r9, rsi
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.1400f3b30
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400f3d5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140028fb0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x1400f3d7c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140122510
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400f3ca0

Function at 0x1400f3da0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x1400f3cd9
xor eax, eax
jmp 0x1400f3d7f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401a2a40]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x1400f3d08
mov edi, ebp
jmp 0x1400f3d6e
mov r9, rsi
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.1400f3b30
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400f3d5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140028fb0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x1400f3d7c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140122510
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400f3ca0

Function at 0x1400f4aa0
Capabilities:
Delete registry key

Disassembly:
lea rax, vtable.CoreTech::internal::CRegKeyImpl.0
mov qword [rcx], rax
jmp fcn.1400f4b00
Function at 0x1400f4b00
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400f4b48
cmp byte [rbx + 0x14], 0
je 0x1400f4b2d
lea rdx, [0x140194f20]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rbx + 8]
mov byte [rbx + 0x14], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], 0
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov dword [rbx + 0x10], eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400f4e00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x1400f4ea7
test rdx, rdx
je 0x1400f4ea7
cmp byte [0x1401da040], 0
jne 0x1400f4e6f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f4e5f
lea rdx, [0x14017fde8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401da048], rax
mov byte [0x1401da040], 1
jmp 0x1400f4e76
mov rax, qword [0x1401da048]
mov byte [0x1401da040], 1
jmp 0x1400f4e76
mov rax, qword [0x1401da048]
mov rcx, qword [rbx + 8]
mov rdx, rdi
test rax, rax
je 0x1400f4e96
mov r8d, dword [rbx + 0x10]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov eax, 0x57
add rsp, 0x20
pop rdi
ret

Function at 0x1400f4f00
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
mov r10d, edx
test rcx, rcx
jne 0x1400f4f18
lea eax, [rcx + 0x57]
add rsp, 0x48
ret
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
test rax, rax
cmovne rdx, rax
xor eax, eax
mov qword [rsp + 0x38], rdx
mov edx, r10d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x1400f5740
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x1400f5770
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
test rbx, rbx
jne 0x1400f57a8
lea eax, [rbx + 0x57]
jmp 0x1400f5898
lea rcx, [rsp + 0x48]
call fcn.1400f4a40
nop
mov r9d, dword [rdi + 0x10]
or r9d, 0x2001f
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400f51f0
mov ebx, eax
test eax, eax
jne 0x1400f588c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400f5871
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400f5770
mov ebx, eax
test eax, eax
jne 0x1400f588c
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400f5820
lea rcx, [rsp + 0x48]
call fcn.1400f4b00
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0xd0]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1400f4aa0
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140122510
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f5a80
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebp, r8d
mov rsi, rdx
mov r12, rcx
mov edx, ebp
mov rcx, rsi
mov r8, r9
mov r14, r9
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov r15d, dword [rsp + 0x2d0]
test r15d, r15d
je 0x1400f5bbc
test eax, eax
jne 0x1400f5bbc
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x270], rdi
mov qword [rsp + 0x268], r13
xor r13d, r13d
mov edi, r13d
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.140124d50
mov qword [rsp + 0x38], r13
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400f5b8d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r13
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400f5b94
mov rdx, qword [rsp + 0x48]
mov r9, r14
mov r8d, ebp
mov dword [rsp + 0x20], r15d
mov rcx, r12
call fcn.1400f5a80
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400f5b94
cmp eax, 0x103
je 0x1400f5ba2
inc edi
test ebx, ebx
je 0x1400f5af3
mov eax, ebx
jmp 0x1400f5ba4
xor eax, eax
mov rdi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x278]
mov r13, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140122510
add rsp, 0x280
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret

Function at 0x1400f5c60
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
test r9, r9
je 0x1400f5c90
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x1400f5c90
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
mov eax, 0x57
add rsp, 0x38
ret
Function at 0x1400f7f20
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rbx, rdx
mov rsi, rcx
jne 0x1400f7ff0
cmp qword [rdx + 0x18], 8
mov rcx, rdx
mov dword [rsp + 0x50], 0
jb 0x1400f7f4d
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x1400f7ff0
mov r9, qword [rsi + 0x10]
mov edx, ebp
mov r8, qword [rsi + 8]
mov rcx, r9
sub rcx, r8
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x40], 0
cmp rbp, rcx
jae 0x1400f7f86
lea rax, [r8 + rbp]
jmp 0x1400f7fb3
jbe 0x1400f7fb7
mov rax, qword [rsi + 0x18]
sub rax, r8
cmp rdx, rax
jbe 0x1400f7fa4
lea r8, [rsp + 0x40]
lea rcx, [rsi + 8]
call fcn.140081d20
jmp 0x1400f7fb7
sub rdx, rcx
lea r8, [rsi + 8]
mov rcx, r9
call fcn.140081e20
mov qword [rsi + 0x10], rax
mov rcx, qword [rsi + 8]
call fcn.1400254c0
cmp qword [rbx + 0x18], 8
mov rdi, qword [rsp + 0x48]
jb 0x1400f7fcf
mov rbx, qword [rbx]
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
sete al
mov byte [rsi + 0x20], al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret

Function at 0x14012ff20
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14012fda7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012fda7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14012fda7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14012fda7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14012fda7
cmp dword [rcx + 0x84], 0xe
jbe 0x14012fda7
cmp dword [rcx + 0xf8], 0
je 0x14012fda7
mov ecx, ebx
call fcn.14012fe48
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14012fc38
cmp dword [rbp + 0x20], 0
je 0x14012fdf4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14012fdfc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14012fd40
Function at 0x14014a134
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140149e5a
call fcn.140129b90
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1401297a0
jmp 0x140149fa5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140149fa5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140149fa5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140149e89
lock or dword [rcx + 0x14], 0x10
jmp 0x140149fa5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140149e9d
call fcn.14014d278
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140149ead
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140149eb0
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401468d8
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401498b0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140149f93
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140149f41
mov rcx, rbx
call fcn.1401468d8
cmp eax, 0xffffffff
je 0x140149f2c
mov rcx, rbx
call fcn.1401468d8
cmp eax, 0xfffffffe
je 0x140149f2c
mov rcx, rbx
call fcn.1401468d8
movsxd rdi, eax
lea r14, [0x1401dba30]
mov rcx, rbx
sar rdi, 6
call fcn.1401468d8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140149f33
lea rdx, [0x1401c77c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140149f41
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140149f65
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140149f65
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140149f65
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140149f83
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140149f8e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140149faa
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140149e24

Function at 0x14014defc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14014df1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140129b1c
or eax, 0xffffffff
jmp 0x14014df1e
xor eax, eax
add rsp, 0x28
ret
Function at 0x18062f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18062f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18062f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18062f06f
add dl, dl
jne 0x18062f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18062f0f6
xor eax, eax
add dl, dl
jne 0x18062f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18062f1ad
add dl, dl
jne 0x18062f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18062f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18062f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18062f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18062f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18062f07e
mov eax, 1
add dl, dl
jne 0x18062f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18062f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18062f0fb
sub eax, ebx
mov ebx, 1
jne 0x18062f14c
mov ecx, 1
add dl, dl
jne 0x18062f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18062f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18062f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18062f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18062f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18062f15d
cmp eax, 0x7d00
jae 0x18062f19b
cmp eax, 0x500
jb 0x18062f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062f07e
cmp eax, 0x7f
ja 0x18062f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18062f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18062f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6e7426e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rdx, rdx
jle 0x6e742844
mov r12, qword [fcn.6e7666a0]
lea r14, [rcx + rdx*8]
mov rdi, rcx
lea r13, [0x6e768158]
lea rbp, [0x6e768159]
mov rbx, qword [rdi]
mov ecx, 1
call r12
mov rsi, rax
test rbx, rbx
je 0x6e7427e0
cmp qword [rbx], 0
lea r8, [rbx + 0x10]
mov rdx, rbp
mov rcx, rax
cmove r8, r13
call sub.msvcrt.dll_fprintf
mov r15d, eax
movsxd rax, r15d
cmp rax, qword [rbx]
jge 0x6e74276f
cmp byte [rbx + rax + 0x10], 0
jne 0x6e7427c0
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x6e74276f
add r15d, 1
movsxd rax, r15d
cmp rax, qword [rbx]
jl 0x6e74274e
add rdi, 8
cmp rdi, r14
jne 0x6e742715
mov ecx, 1
call r12
mov r8d, 1
mov edx, 1
lea rcx, [0x6e76815c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call r12
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.msvcrt.dll_fflush
lea r8, [rbx + rax + 0x10]
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x6e74276f
add r15d, eax
jmp 0x6e742746
mov r8, r13
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov ebx, eax
test ebx, ebx
jns 0x6e74276f
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x6e742829
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x6e74276f
add ebx, 1
test ebx, ebx
jns 0x6e74276f
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x6e742802
add r8, 0x10
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x6e74276f
add ebx, eax
jmp 0x6e7427f0
mov r12, qword [fcn.6e7666a0]
jmp 0x6e742778

Function at 0x6e7428d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x6e7428ef
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x6e742b00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.6e7666a0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
ret
Function at 0x6e74a570
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
mov rbp, rsp
sub rsp, 0x150
cmp qword [0x6e79bde0], 0
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov byte [rbp - 0x111], 1
je 0x6e74a668
mov rax, qword [0x6e792080]
lea rcx, [rbp - 0x110]
mov rdx, rbp
mov qword [0x6e792080], rcx
add rcx, 0x10
mov qword [rbp - 0x110], rax
call sub.msvcrt.dll__setjmp
cdqe
test rax, rax
mov qword [rbp - 0x108], rax
jne 0x6e74a682
xor ebx, ebx
cmp qword [rbp + 0x20], 0
je 0x6e74a639
mov rcx, qword [rbp + 0x20]
call sub.msvcrt.dll_strlen
mov edx, 0x18
mov qword [rbp - 0x128], 7
cmp rax, 6
mov rsi, rax
jbe 0x6e74a60a
lea rdx, [rax + 0x11]
mov qword [rbp - 0x128], rax
lea rcx, section..data
call fcn.6e7491d0
mov rdx, qword [rbp + 0x20]
movq xmm0, rsi
lea rcx, [rax + 0x10]
movhps xmm0, qword [rbp - 0x128]
mov rbx, rax
movups xmmword [rax], xmm0
lea r8, [rsi + 1]
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [0x6e79bde0]
mov rax, qword [0x6e792080]
mov byte [rbp - 0x111], 0
cmp qword [rbp - 0x108], 0
mov rax, qword [rax]
mov qword [0x6e792080], rax
jne 0x6e74a6f6
movzx eax, byte [rbp - 0x111]
test al, al
jne 0x6e74a700
add rsp, 0x150
pop rbx
pop rsi
pop rbp
ret
mov rax, qword [0x6e792080]
mov rax, qword [rax]
mov qword [rbp - 0x108], 0
mov qword [0x6e792080], rax
mov rax, qword [0x6e79bd48]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x6e74a6bf
add qword [rbx - 0x10], 8
mov rax, qword [0x6e79bd48]
test rax, rax
je 0x6e74a6e1
mov rsi, qword [rax - 0x10]
lea rdx, [rax - 0x10]
lea rcx, [rsi - 8]
cmp rcx, 7
mov qword [rax - 0x10], rcx
ja 0x6e74a6e1
lea rcx, [0x6e798f18]
call fcn.6e745e20
cmp qword [rbp - 0x108], 0
mov qword [0x6e79bd48], rbx
je 0x6e74a668
call fcn.6e74ae80
jmp 0x6e74a668
mov ecx, 2
call qword [fcn.6e7666a0]
mov rcx, qword [rbp + 0x20]
mov edx, 1
mov r8, qword [rbp + 0x28]
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
jmp 0x6e74a677