joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017b38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140017858
mov ebx, eax
test eax, eax
jne 0x140017b68
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140017bcb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017bc2
test al, 0x10
je 0x140017bc2
bt eax, 0xa
jae 0x140017bbb
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140017bdc
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140017bb7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140017bb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140017bc2
and dword [rsp + 0x3c], 0
jmp 0x140017bc7
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140018d04
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018d4e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018d4e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018d4e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018d4e
cmp dword [rcx + 0x84], 0xe
jbe 0x140018d4e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140018d50
xor al, al
add rsp, 0x28
ret
Function at 0x140005e90
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x14005a138], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140005eec
movaps xmm0, xmmword [0x14003c8c0]
movaps xmm1, xmmword [0x14003c8d0]
movdqa xmmword [0x140046e10], xmm0
movaps xmm0, xmmword [0x14003c8e0]
movdqa xmmword [0x140046e00], xmm1
movaps xmm1, xmmword [0x14003c8f0]
movdqa xmmword [0x140046df0], xmm0
movdqa xmmword [0x140046de0], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.14002c730
xor r11d, r11d
mov qword [rbx + 0x110], r11
mov byte [rbx + 0x118], r11b
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14003c800]
mov eax, dword [r11 + rax]
mov dword [r11 + rcx], eax
add r11, 4
cmp r11, 0x20
jl 0x140005f0a
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 0x140008708
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov sil, dl
mov rdi, rcx
mov word [rcx + 0x83c2], r13w
mov byte [rcx + 0x83b9], r13b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov bpl, 1
jmp 0x14000876f
cmp bpl, r13b
jne 0x14000875f
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
cmp sil, r13b
je 0x14000875a
call fcn.14000859c
jmp 0x14000875f
call fcn.140008300
mov rcx, qword [rsp + 0x40]
call fcn.14002c548
mov bpl, r13b
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.140006938
mov r12, rax
cmp rax, r13
jne 0x140008741
cmp sil, r13b
jne 0x14000878e
mov rcx, rdi
call fcn.140006cfc
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400087a4
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, [0x14003caf0]
call fcn.14002d2e8
mov rbx, rax
test rax, rax
je 0x140008832
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.140020710
mov rdx, rdi
mov rcx, rsi
call fcn.1400086a0
nop
test rdi, rdi
je 0x140008832
mov rcx, rdi
call fcn.14002c548
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008c28
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140045948]
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.14001e9a0
call fcn.14002d604
add rax, 0x30
cmp rdi, rax
jne 0x140008c78
cmp byte [0x140047e38], 0
jne 0x140008c97
call fcn.14002d604
add rax, 0x60
cmp rdi, rax
jne 0x140008d23
cmp byte [0x140047e39], 0
je 0x140008d23
mov qword [rsp + 0x20], rbx
lea rbx, [0x140049640]
mov esi, 0x1800
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
mov rdx, rsi
call fcn.14002c9dc
mov r8, rsi
lea rsi, [0x140047e40]
mov rdx, rsi
mov rcx, rbx
call fcn.1400206bc
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharToOemA]
call fcn.14002d604
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 0x140008d8a
mov qword [rsp + 0x20], rbx
lea rbx, [0x140049640]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x1800
mov rcx, rbx
call fcn.14002c9dc
call fcn.14002d604
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.14002c700
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret

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

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x14000962f
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 0x1400095fd
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x1400095f4
repz ret
Function at 0x1400096a8
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, [0x14004ee40]
test r8, r8
je 0x1400096f1
test bl, 7
je 0x1400096f1
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 0x1400096cc
cmp r10, 8
jb 0x14000979e
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 0x14000970c
test r10, r10
je 0x1400097c3
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 0x1400097a3
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret

Function at 0x140009934
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x1400099e6
mov eax, 0x1234
add word [r9 + 0x10b8], ax
mov dx, word [r9 + 0x10b8]
mov rax, rdx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba4]
mov rax, rdx
xor word [r9 + 0x10ba], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba6]
sub word [r9 + 0x10bc], cx
movzx eax, word [r9 + 0x10bc]
mov ecx, 1
xor ax, dx
mov word [r9 + 0x10b8], ax
movzx eax, word [r9 + 0x10be]
ror ax, cl
xor ax, word [r9 + 0x10ba]
ror ax, cl
xor word [r9 + 0x10b8], ax
mov word [r9 + 0x10be], ax
movzx eax, word [r9 + 0x10b8]
shr ax, 8
xor byte [r10], al
inc r10
sub r8, 1
jne 0x140009943
repz ret

Function at 0x1400099e8
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 + 0xba4]
xor dword [r8 + 0x10a4], edx
movzx eax, byte [r9]
add r9, 4
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10a8], ecx
movzx eax, byte [r9 - 3]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10ac], ecx
movzx eax, byte [r9 - 2]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10b0], ecx
sub r10, 1
jne 0x1400099f5
repz ret
Function at 0x140009d70
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 [0x140045948]
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 0x140009df4
lea rcx, [rsp + 0x100]
call fcn.14001e07c
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, rsi
call fcn.14001e308
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x100]
call fcn.14001e3cc
lea rsi, [rsp + 0x1b0]
lea ebx, [r14 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140009e26
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 0x140009e0e
cmp rbx, r14
jae 0x140009e3e
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.14002c730
lea rcx, [rsp + 0x20]
call fcn.14001e07c
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
mov r8, r14
call fcn.14001e308
lea rcx, [rsp + 0x20]
mov r8, r13
mov rdx, r12
call fcn.14001e308
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.14001e3cc
lea rcx, [rsp + 0x90]
call fcn.14001e07c
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140009eb5
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 0x140009e9e
cmp rbx, r14
jae 0x140009ecd
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.14002c730
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x90]
mov r8, r14
call fcn.14001e308
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x90]
mov r8d, 0x20
call fcn.14001e308
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.14001e3cc
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140009f34
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 [0x140045948]
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.14002ca30
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.140009d70
mov r14d, 0x20
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov r8, r14
call fcn.14002ca30
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 0x14000a085
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.140009d70
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
mov r8, r14
call fcn.14002ca30
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x58]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x14000a06c
sub rbx, 1
jne 0x14000a031
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.14002ca30
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x14000a02a
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.14001c710
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.14001c710
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.14001c710
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.14001c710
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a4c8
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 + 0x10a4]
mov r11d, dword [rcx + 0x10a8]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x10ac]
xor ebp, dword [rcx + 0x10b0]
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 + 0x10a4]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r12d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r12d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r12d, 8
mov edx, esi
or r12d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
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 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r14, 1
mov r11d, ebp
mov ebp, r8d
jne 0x14000a519
xor ebx, r12d
mov rdx, r9
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x10a8]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x10ac]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x10b0]
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.1400099e8
Function at 0x14000a650
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 [0x140045948]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0x10a4]
mov edi, dword [rdx]
mov r11d, dword [rcx + 0x10a8]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x10ac]
mov r12d, 0x1f
xor edi, ebx
xor ebp, dword [rcx + 0x10b0]
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 + 0x10a4]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r13d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r13d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r13d, 8
mov edx, esi
or r13d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
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 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r12d, 1
mov r11d, ebp
mov ebp, r8d
jns 0x14000a6b5
xor ebx, r13d
lea rdx, [rsp + 0x20]
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x10a8]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x10ac]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x10b0]
mov dword [r9 + 0xc], r11d
call fcn.1400099e8
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002c700
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 0x14000a7f4
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 [0x140045948]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov esi, 0x20
jne 0x14000a873
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.140009d70
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 0x14000a854
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x14000a8a5
lea rax, [rsp + 0x38]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140009d70
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x38]
mov r8, rsi
call fcn.14002ca30
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000ed78
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push r12
mov eax, 0x5070
call fcn.1400398a0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x5098], rbx
mov qword [rsp + 0x50a0], rbp
mov rax, qword [0x140045948]
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 0x14000ef9d
cmp eax, r12d
jae 0x14000ef9d
mov r8d, r12d
lea rdx, [rsp + 0x3060]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x14000ef99
cmp eax, r12d
jae 0x14000ef99
lea rcx, [rsp + 0x4060]
call fcn.1400136bc
mov rsi, rax
lea rcx, [rsp + 0x3060]
call fcn.1400136bc
mov rdi, rax
cmp word [rax], bp
je 0x14000ef95
mov rdx, rax
mov rcx, rsi
call fcn.140020a68
cmp eax, ebp
je 0x14000ef95
mov rcx, rbx
call fcn.1400136bc
mov rcx, rax
mov rdx, rdi
call fcn.140020a68
cmp eax, ebp
jne 0x14000ef95
mov ax, bp
mov word [rsp + 0x1060], ax
mov edi, ebp
cmp ax, bp
jne 0x14000eee2
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x1060]
call fcn.14001e774
lea rcx, [rsp + 0x1060]
call fcn.1400136bc
mov rcx, rax
mov r9d, edi
lea r8, str.rtmp_d
mov rdx, r12
call fcn.140019244
lea rcx, [rsp + 0x1060]
call fcn.14001037c
cmp al, bpl
je 0x14000eec3
mov eax, ebp
mov word [rsp + 0x1060], ax
jmp 0x14000eecb
mov ax, word [rsp + 0x1060]
add edi, 0x7b
cmp edi, 0x2710
jl 0x14000ee6b
cmp ax, bp
jne 0x14000eee2
xor al, al
jmp 0x14000ef9f
mov r8, r12
mov rdx, rbx
lea rcx, [rsp + 0x2060]
call fcn.14001e774
mov r8, r12
mov rdx, rsi
lea rcx, [rsp + 0x2060]
call fcn.1400138a4
lea rdx, [rsp + 0x1060]
lea rcx, [rsp + 0x2060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, ebp
jne 0x14000ef26
xor al, al
jmp 0x14000ef9f
lea rcx, [rsp + 0x30]
call fcn.14000f0f8
nop
mov dil, bpl
mov rcx, rbx
call fcn.14001037c
cmp al, bpl
jne 0x14000ef57
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000f2f4
mov dil, al
lea rdx, [rsp + 0x2060]
lea rcx, [rsp + 0x1060]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dil, bpl
je 0x14000ef87
lea rcx, [rsp + 0x30]
call fcn.14000f454
lea rcx, [rsp + 0x30]
call fcn.14000f4bc
nop
lea rcx, [rsp + 0x30]
call fcn.14000f7d4
mov al, 1
jmp 0x14000ef9f
xor al, al
jmp 0x14000ef9f
xor al, al
jmp 0x14000ef9f
xor al, al
mov rcx, qword [rsp + 0x5060]
xor rcx, rsp
call fcn.14002c700
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 0x14000f4f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor edi, edi
mov rbp, r8
mov r15, rdx
mov rsi, rcx
cmp r8, rdi
jne 0x14000f523
mov al, 1
jmp 0x14000f695
cmp dword [rcx + 0x14], 1
jne 0x14000f538
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsi + 8], rax
mov r12b, dil
mov dword [rsp + 0x70], edi
cmp dword [rsi + 0x14], edi
je 0x14000f595
mov rbx, rdi
cmp rbp, rdi
jbe 0x14000f5bf
mov r8d, 0x4000
mov eax, ebp
mov rcx, rbp
sub rcx, rbx
sub eax, ebx
lea rdx, [rbx + r15]
cmp rcx, r8
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
cmovb r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
je 0x14000f5bf
add rbx, 0x4000
cmp rbx, rbp
jb 0x14000f54c
jmp 0x14000f5b6
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete r12b
cmp r12b, dil
jne 0x14000f68e
cmp byte [rsi + 0x1c], dil
je 0x14000f68e
cmp dword [rsi + 0x14], edi
jne 0x14000f68e
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 r13, rax
call fcn.14000fcc8
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp rbx, rbp
jbe 0x14000f629
mov rcx, r13
mov ebx, 0xffffffff
sub rcx, rbp
cmp rcx, rbx
ja 0x14000f629
lea rax, [r13 + rbp]
cmp rax, rbx
jbe 0x14000f629
lea rdx, [rsi + 0x26]
lea rcx, [0x140050e70]
call fcn.14000b264
lea rdx, [rsi + 0x26]
lea rcx, [0x140050e70]
xor r8d, r8d
call fcn.14000b2a0
xor edi, edi
cmp al, dil
je 0x14000f67c
mov ecx, dword [rsp + 0x70]
mov rax, rcx
cmp rcx, rbp
jae 0x14000f538
cmp ecx, edi
jbe 0x14000f538
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 0x14000f538
lea r8, [rsi + 0x26]
lea rcx, [0x140050e70]
xor edx, edx
call fcn.14000b43c
mov byte [rsi + 0x10], 1
mov al, r12b
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14000f784
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