joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62

Function at 0x141105000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x14110500a
jmp 0x14110700f
jmp fcn.140b4f1b8
Function at 0x140005e8c
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140059608], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140005ee8
movaps xmm0, xmmword [0x14003b8c0]
movaps xmm1, xmmword [0x14003b8d0]
movdqa xmmword [0x140045e10], xmm0
movaps xmm0, xmmword [0x14003b8e0]
movdqa xmmword [0x140045e00], xmm1
movaps xmm1, xmmword [0x14003b8f0]
movdqa xmmword [0x140045df0], xmm0
movdqa xmmword [0x140045de0], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.14002c1a0
xor r11d, r11d
mov qword [rbx + 0x110], r11
mov byte [rbx + 0x118], r11b
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14003b800]
mov eax, dword [r11 + rax]
mov dword [r11 + rcx], eax
add r11, 4
cmp r11, 0x20
jl 0x140005f06
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400086c4
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x30
mov dil, dl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov r12b, 1
jmp 0x14000872f
mov bpl, 1
test r12b, r12b
jne 0x140008715
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
test dil, dil
je 0x140008710
call fcn.14000853c
mov bpl, al
jmp 0x140008715
call fcn.1400082a8
mov rcx, qword [rsp + 0x20]
call fcn.14002bfbc
test dil, dil
je 0x140008729
test bpl, bpl
je 0x140008741
xor r12b, r12b
mov rcx, r13
lea rdx, [rsp + 0x20]
call fcn.140006934
mov r13, rax
test rax, rax
jne 0x1400086f1
test dil, dil
jne 0x14000874e
mov rcx, rsi
call fcn.140006d00
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret

Function at 0x14000876c
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rcx
lea rcx, [0x14003baf0]
call fcn.14002cd58
mov rbx, rax
test rax, rax
je 0x1400087fa
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
and qword [rsp + 0x28], rax
and qword [rsp + 0x30], rax
and qword [rsp + 0x38], rax
and qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400011ec
nop
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.1400201a0
mov rdx, rdi
mov rcx, rsi
call fcn.14000865c
nop
test rdi, rdi
je 0x1400087fa
mov rcx, rdi
call fcn.14002bfbc
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008acc
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rax, rdx
mov rbx, r8
mov rdi, rcx
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rax
call fcn.14001e4b0
call fcn.14002d074
add rax, 0x30
cmp rdi, rax
jne 0x140008b1c
cmp byte [0x140046e38], 0
jne 0x140008b3b
call fcn.14002d074
add rax, 0x60
cmp rdi, rax
jne 0x140008bc7
cmp byte [0x140046e39], 0
je 0x140008bc7
mov qword [rsp + 0x20], rbx
lea rbx, [0x140048640]
mov esi, 0x1800
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
mov rdx, rsi
call fcn.14002c44c
mov r8, rsi
lea rsi, [0x140046e40]
mov rdx, rsi
mov rcx, rbx
call fcn.14002014c
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharToOemA]
call fcn.14002d074
add rax, 0x30
sub rdi, rax
neg rdi
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r11, rax
xor eax, eax
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
mov rdx, rsi
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140008c2e
mov qword [rsp + 0x20], rbx
lea rbx, [0x140048640]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x1800
mov rcx, rbx
call fcn.14002c44c
call fcn.14002d074
xor ecx, ecx
add rax, 0x60
cmp rdi, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov r11, rax
xor eax, eax
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], rax
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14002c170
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000948c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x1400094d3
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x1400094a1
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x140009498
repz ret
Function at 0x14000954c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x14004de40]
test r8, r8
je 0x140009595
test bl, 7
je 0x140009595
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140009570
cmp r10, 8
jb 0x140009642
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x1400095b0
test r10, r10
je 0x140009667
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140009647
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret

Function at 0x1400097d8
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x14000988a
mov eax, 0x1234
add word [r9 + 0xc04], ax
mov dx, word [r9 + 0xc04]
mov rax, rdx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0x6f0]
mov rax, rdx
xor word [r9 + 0xc06], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0x6f2]
sub word [r9 + 0xc08], cx
movzx eax, word [r9 + 0xc08]
mov ecx, 1
xor ax, dx
mov word [r9 + 0xc04], ax
movzx eax, word [r9 + 0xc0a]
ror ax, cl
xor ax, word [r9 + 0xc06]
ror ax, cl
xor word [r9 + 0xc04], ax
mov word [r9 + 0xc0a], ax
movzx eax, word [r9 + 0xc04]
shr ax, 8
xor byte [r10], al
inc r10
sub r8, 1
jne 0x1400097e7
repz ret

Function at 0x14000988c
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, rcx
lea r9, [rdx + 1]
mov r10d, 4
movzx eax, byte [r9 - 1]
mov edx, dword [r8 + rax*4 + 0x6f0]
xor dword [r8 + 0xbf0], edx
movzx eax, byte [r9]
add r9, 4
mov ecx, dword [r8 + rax*4 + 0x6f0]
xor dword [r8 + 0xbf4], ecx
movzx eax, byte [r9 - 3]
mov ecx, dword [r8 + rax*4 + 0x6f0]
xor dword [r8 + 0xbf8], ecx
movzx eax, byte [r9 - 2]
mov ecx, dword [r8 + rax*4 + 0x6f0]
xor dword [r8 + 0xbfc], ecx
sub r10, 1
jne 0x140009899
repz ret
Function at 0x140009c78
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x200
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbp, qword [rsp + 0x260]
mov r14d, 0x40
mov r13, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, r14
jbe 0x140009cfc
lea rcx, [rsp + 0x100]
call fcn.14001db8c
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, rsi
call fcn.14001de18
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x100]
call fcn.14001dedc
lea rsi, [rsp + 0x1b0]
lea ebx, [r14 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140009d2e
lea rax, [rsp + 0x170]
mov r9, rsi
sub r9, rax
lea rcx, [rsp + r8 + 0x170]
inc r8
mov al, byte [r9 + rcx]
xor al, dl
mov byte [rcx], al
cmp r8, rbx
jb 0x140009d16
cmp rbx, r14
jae 0x140009d46
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.14002c1a0
lea rcx, [rsp + 0x20]
call fcn.14001db8c
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
mov r8, r14
call fcn.14001de18
lea rcx, [rsp + 0x20]
mov r8, r13
mov rdx, r12
call fcn.14001de18
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.14001dedc
lea rcx, [rsp + 0x90]
call fcn.14001db8c
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140009dbd
lea rax, [rsp + 0x170]
sub rsi, rax
lea rcx, [rsp + rdi + 0x170]
inc rdi
mov al, byte [rsi + rcx]
xor al, dl
mov byte [rcx], al
cmp rdi, rbx
jb 0x140009da6
cmp rbx, r14
jae 0x140009dd5
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.14002c1a0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x90]
mov r8, r14
call fcn.14001de18
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x90]
mov r8d, 0x20
call fcn.14001de18
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.14001dedc
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14002c170
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009e3c
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x190]
mov rax, r8
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
mov r13, rdx
lea rcx, [rsp + 0xa0]
cmovb r8, r9
mov rdx, rax
mov rbx, r9
call fcn.14002c4a0
lea rax, [rsp + 0x58]
lea r9, [rbx + 4]
lea r8, [rsp + 0xa0]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
mov byte [rsp + rbx + 0xa0], 0
mov byte [rsp + rbx + 0xa1], 0
mov byte [rsp + rbx + 0xa2], 0
mov byte [rsp + rbx + 0xa3], 1
call fcn.140009c78
mov r14d, 0x20
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov r8, r14
call fcn.14002c4a0
mov r11d, dword [rsp + 0x198]
lea eax, [r14 - 0x10]
dec r11d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r11d
lea rsi, [rsp + 0x40]
lea rdi, [rsp + 0x30]
lea ebp, [rax - 0xd]
cmp dword [rdi], 0
jbe 0x140009f8d
mov ebx, dword [rdi]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x58]
mov r9, r14
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140009c78
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
mov r8, r14
call fcn.14002c4a0
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x58]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x140009f74
sub rbx, 1
jne 0x140009f39
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.14002c4a0
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x140009f32
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14001c23c
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14001c23c
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.14001c23c
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14001c23c
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002c170
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a384
Capabilities:
Encode data using add xor sub operations
Encode data using xor

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 r12
push r13
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0xbf0]
mov r11d, dword [rcx + 0xbf4]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0xbf8]
xor ebp, dword [rcx + 0xbfc]
mov edi, ebx
mov r9, rdx
xor edi, dword [rdx]
xor r13d, r13d
mov r10, rcx
lea r14d, [r13 + 0x20]
mov rax, r13
mov edx, ebp
inc r13
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0xbf0]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r12d, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r12d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xaf0]
shl r12d, 8
mov edx, esi
or r12d, eax
movzx eax, byte [rcx + r10 + 0xaf0]
shl r12d, 8
or r12d, eax
xor r12d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r12d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xaf0]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xaf0]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r14, 1
mov r11d, ebp
mov ebp, r8d
jne 0x14000a3d5
xor ebx, r12d
mov rdx, r9
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0xbf4]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0xbf8]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0xbfc]
mov dword [r9 + 0xc], r11d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
jmp fcn.14000988c
Function at 0x14000a50c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0xbf0]
mov edi, dword [rdx]
mov r11d, dword [rcx + 0xbf4]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0xbf8]
mov r12d, 0x1f
xor edi, ebx
xor ebp, dword [rcx + 0xbfc]
mov r9, rdx
mov r10, rcx
mov r14, r12
mov rax, r14
mov edx, ebp
dec r14
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0xbf0]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r13d, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r13d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xaf0]
shl r13d, 8
mov edx, esi
or r13d, eax
movzx eax, byte [rcx + r10 + 0xaf0]
shl r13d, 8
or r13d, eax
xor r13d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r13d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xaf0]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xaf0]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xaf0]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r12d, 1
mov r11d, ebp
mov ebp, r8d
jns 0x14000a571
xor ebx, r13d
lea rdx, [rsp + 0x20]
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0xbf4]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0xbf8]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0xbfc]
mov dword [r9 + 0xc], r11d
call fcn.14000988c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14000a6b0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov esi, 0x20
jne 0x14000a72f
mov eax, dword [rcx + 4]
lea r9d, [rsi - 0x1c]
lea r8, [r11 - 0x38]
mov dword [rsp + 0x30], eax
lea rax, [r11 - 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [r11 - 0x48], rax
call fcn.140009c78
xor r11d, r11d
lea r8, [rsp + 0x38]
mov dword [rbx + 4], r11d
mov edx, r11d
movzx eax, byte [r8]
mov ecx, r11d
inc r11d
and ecx, 3
inc r8
shl ecx, 3
shl eax, cl
xor edx, eax
cmp r11d, esi
jb 0x14000a710
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x14000a761
lea rax, [rsp + 0x38]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140009c78
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x38]
mov r8, rsi
call fcn.14002c4a0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ea48
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x5070
call fcn.1400394c0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5098], rbx
mov qword [rsp + 0x50a0], rbp
mov rax, qword [0x140044948]
xor rax, rsp
mov qword [rsp + 0x5060], rax
mov rbx, rcx
mov r12d, 0x800
mov r8d, r12d
lea rdx, [rsp + 0x4060]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor ebp, ebp
cmp eax, ebp
je 0x14000ec6d
cmp eax, r12d
jae 0x14000ec6d
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x14000ec69
cmp eax, r12d
jae 0x14000ec69
lea rcx, [rsp + 0x4060]
call fcn.140013174
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.140013174
mov rdi, rax
cmp word [rax], bp
je 0x14000ec65
mov rdx, rax
mov rcx, rsi
call fcn.1400204f8
cmp eax, ebp
je 0x14000ec65
mov rcx, rbx
call fcn.140013174
mov rcx, rax
mov rdx, rdi
call fcn.1400204f8
cmp eax, ebp
jne 0x14000ec65
mov ax, bp
mov word [rsp + 0x1060], ax
mov edi, ebp
cmp ax, bp
jne 0x14000ebb2
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x1060]
call fcn.14001e284
lea rcx, [rsp + 0x1060]
call fcn.140013174
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.1400024a4
lea rcx, [rsp + 0x1060]
call fcn.14000ff48
cmp al, bpl
je 0x14000eb93
mov eax, ebp
mov word [rsp + 0x1060], ax
jmp 0x14000eb9b
mov ax, word [rsp + 0x1060]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000eb3b
cmp ax, bp
jne 0x14000ebb2
xor al, al
jmp 0x14000ec6f
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.14001e284
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.14001335c
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x14000ebf6
xor al, al
jmp 0x14000ec6f
lea rcx, [rsp + 0x30]
call fcn.14000edd0
nop
mov dil, bpl
mov rcx, rbx
call fcn.14000ff48
cmp al, bpl
jne 0x14000ec27
mov r8d, 0xa
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000efc4
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x1060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x14000ec57
lea rcx, [rsp + 0x30]
call fcn.14000f104
lea rcx, [rsp + 0x30]
call fcn.14000f16c
nop
lea rcx, [rsp + 0x30]
call fcn.14000f464
mov al, 1
jmp 0x14000ec6f
xor al, al
jmp 0x14000ec6f
xor al, al
jmp 0x14000ec6f
xor al, al
mov rcx, qword [rsp + 0x5060]
xor rcx, rsp
call fcn.14002c170
lea r11, [rsp + 0x5070]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14000f1a0
Capabilities:
Write file on windows

Disassembly:
test r8, r8
je 0x14000f343
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x14000f1dd
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
and dword [rsp + 0x70], 0
cmp dword [rsi + 0x14], 0
je 0x14000f237
xor ebx, ebx
test rbp, rbp
je 0x14000f260
mov r8d, 0x4000
mov eax, ebp
mov rcx, rbp
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r14]
cmp rcx, r8
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
cmovb r8d, eax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
je 0x14000f260
add rbx, 0x4000
cmp rbx, rbp
jb 0x14000f1ef
jmp 0x14000f258
mov rcx, qword [rsi + 8]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete al
test al, al
jne 0x14000f329
cmp byte [rsi + 0x1c], 0
je 0x14000f329
cmp dword [rsi + 0x14], 0
jne 0x14000f329
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsi]
mov rcx, rsi
mov edi, eax
call qword [rdx + 0x20]
lea rcx, [rsi + 0x26]
mov r12, rax
call fcn.14000f964
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x14000f2ca
mov rcx, r12
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x14000f2ca
lea rax, [r12 + rbp]
cmp rax, rbx
jbe 0x14000f2ca
lea rdx, [rsi + 0x26]
lea rcx, [0x140050340]
call fcn.14000b0d0
lea rdx, [rsi + 0x26]
lea rcx, [0x140050340]
xor r8d, r8d
call fcn.14000b10c
test al, al
je 0x14000f317
mov ecx, dword [rsp + 0x70]
cmp rcx, rbp
jae 0x14000f1dd
test ecx, ecx
je 0x14000f1dd
mov rbx, qword [rsi]
mov rcx, rsi
call qword [rbx + 0x20]
mov ecx, dword [rsp + 0x70]
xor r8d, r8d
sub rax, rcx
mov rcx, rsi
mov rdx, rax
call qword [rbx + 0x18]
jmp 0x14000f1dd
lea r8, [rsi + 0x26]
lea rcx, [0x140050340]
xor edx, edx
call fcn.14000b2a8
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov byte [rsi + 0x10], 1
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14000f414
Capabilities:
Clear file content

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sete al
add rsp, 0x28
ret