joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800547b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x1800753ac]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800547f7
mov rax, qword [0x1800753a0]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180054804
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x1800547e0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800547f7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180054c10
mov edi, eax
test eax, eax
jne 0x1800548ed
mov r9d, dword [0x1800753ac]
cmp ebx, r9d
jae 0x18005487c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x1800753a0]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180054875
mov edx, esi
mov ecx, ebx
call fcn.180054ac0
mov edi, eax
test eax, eax
jne 0x18005487c
mov r9d, dword [0x1800753ac]
inc ebx
cmp ebx, r9d
jb 0x180054840
cmp qword [rsp + 0x20], 0
je 0x1800548eb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800548d7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800548c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800548a0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180074bb0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180054ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800753a0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180054b24
mov eax, 0xa
jmp 0x180054bb3
test esi, esi
je 0x180054b46
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180054b69
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180054b69
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180054b62
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180054b69
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180054c10
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1800742a0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r15d, r15d
mov r14d, edx
xor edx, edx
mov qword [rcx], r15
mov rbx, rcx
mov qword [rcx + 8], r15
mov ebp, r8d
mov esi, r15d
lea ecx, [rdx + 4]
call fcn.18001fa73
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180054d5e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call fcn.18001fdde
test eax, eax
je 0x180054d84
lea esi, [r15 + 1]
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180054d10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180054d10
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180054d10
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180054cd2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180074bb0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180054d38
jmp 0x180054d03
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180054d03
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rbx + 8], eax
mov rcx, qword [0x180074bb0]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180054d38
mov qword [rbx], rax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call fcn.18001f235
test eax, eax
jne 0x180054c80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180054d84
mov r8, qword [rbx]
mov esi, r15d
test r8, r8
je 0x180054d84
mov rcx, qword [0x180074bb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
mov qword [rbx], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18001faaa
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180054d5e
cmp qword [rbx], r15
je 0x180054de3
mov edi, r15d
cmp dword [rbx + 0xc], r15d
jbe 0x180054de3
nop
mov rax, qword [rbx]
xor edx, edx
mov ecx, edi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180054ddc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180055a20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x180054da0
mov eax, r15d
jmp 0x180054d63
Function at 0x180055db0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rdi, rcx
test r8, r8
je 0x180055e21
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180055e0d
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180055dfe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180055dd2
mov r8, qword [rdi]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [0x180074bb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180055f20
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x180055f5b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180075388]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x180055f9d
cmp rsi, r14
jb 0x180055f95
cmp rsi, r15
jae 0x180055f95
cmp qword [rsi + 8], 0
jne 0x18005615d
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180055f80
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
cmp rdi, r14
jb 0x180056022
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180056019
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180056019
cmp dword [rsp + 0x70], 0x10000
je 0x18005609b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180056019
sub rbx, rbp
cmp rbx, r14
jae 0x180055fe0
test rsi, rsi
jne 0x180056106
cmp rdi, r15
ja 0x18005614d
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18005614d
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18005614d
cmp dword [rsp + 0x70], 0x10000
je 0x1800560d4
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180056052
jmp 0x18005614d
test rbx, rbx
je 0x180056019
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180056106
cmp rbx, r14
jae 0x180055fc0
jmp 0x180056022
test rdi, rdi
je 0x18005614d
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180056106
cmp rdi, r15
jbe 0x180056030
jmp 0x18005614d
xor eax, eax
lea rcx, [rsi + 0x40]
mov rdx, rcx
mov qword [rsi + 8], rax
sub rdx, rsi
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x180056120
mov rax, qword [0x180075388]
mov qword [rsi], rax
mov qword [0x180075388], rsi
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1400012f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0xb0
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov r14d, r15d
xor eax, eax
lock cmpxchg qword [0x1400035e0], rbx
je 0x140001359
cmp rax, rbx
jne 0x14000134c
mov edi, 1
mov r14d, edi
jmp 0x14000135e
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001330
mov edi, 1
mov eax, dword [0x1400035e8]
cmp eax, edi
jne 0x140001376
mov esi, 0x1f
mov ecx, esi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013e7
mov eax, dword [0x1400035e8]
test eax, eax
jne 0x1400013dc
mov dword [0x1400035e8], edi
lea r12, [0x1400021b0]
lea rbx, [0x140002198]
mov qword [rsp + 0x30], rbx
mov eax, r15d
mov dword [rsp + 0x24], eax
cmp rbx, r12
jae 0x1400013ce
test eax, eax
jne 0x1400013d2
mov rsi, qword [rbx]
test rsi, rsi
je 0x1400013c3
mov rcx, rsi
mov rax, qword [0x140002170]
call rax
call rsi
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400013a0
test eax, eax
je 0x1400013e2
mov eax, 0xff
jmp 0x140001543
mov dword [0x140003024], edi
mov esi, 0x1f
mov eax, dword [0x1400035e8]
cmp eax, edi
jne 0x14000140e
lea rdx, [0x140002190]
lea rcx, [0x140002180]
call sub.msvcrt.dll__initterm
mov dword [0x1400035e8], 2
test r14d, r14d
jne 0x14000141d
mov rax, r15
xchg qword [0x1400035e0], rax
cmp qword [0x1400035f0], r15
je 0x140001454
lea rcx, [0x1400035f0]
call fcn.140001750
test eax, eax
je 0x140001454
mov rbx, qword [0x1400035f0]
mov rcx, rbx
mov rax, qword [0x140002170]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rdx, qword [rax]
test rdx, rdx
jne 0x14000146d
mov eax, 0xff
jmp 0x140001543
mov qword [rsp + 0x28], rdx
mov ecx, dword [rsp + 0x20]
cmp word [rdx], 0x20
ja 0x1400014f4
cmp word [rdx], r15w
je 0x140001486
test ecx, ecx
jne 0x1400014f4
movzx eax, word [rdx]
sub ax, di
cmp ax, si
ja 0x14000149c
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x140001486
mov ecx, dword [rsp + 0x7c]
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
and cl, dil
cmovne r9d, eax
mov r8, rdx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001010
mov dword [0x140003020], eax
cmp dword [0x140003040], r15d
jne 0x1400014dd
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003024], r15d
jne 0x1400014f2
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003020]
jmp 0x140001543
cmp word [rdx], 0x22
jne 0x140001508
mov eax, r15d
test ecx, ecx
sete al
mov ecx, eax
mov dword [rsp + 0x20], eax
add rdx, 2
mov qword [rsp + 0x28], rdx
jmp 0x140001476
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
sub rsp, 0x28
call fcn.140133000
add rsp, 0x28
jmp 0x1400012f0
Function at 0x140002724
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x48]
call fcn.1400026bc
nop
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rdx, eax
inc rdx
lea rcx, [rsp + 0x28]
call fcn.140001da4
nop
lea rcx, [rsp + 0x28]
call fcn.140001aec
mov r8, rax
lea rcx, [rsp + 0x28]
call fcn.140001adc
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x28]
call fcn.140001adc
mov rdx, rax
mov rcx, rdi
call fcn.1400020b4
nop
lea rcx, [rsp + 0x28]
call fcn.140001af8
nop
lea rcx, [rsp + 0x48]
call fcn.140002254
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400292d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140008b58
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140059354], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008b7d
call fcn.140007710
call fcn.1400091b0
xor r9d, r9d
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14004d330]
mov eax, dword [r9 + rax]
mov dword [r9 + rcx], eax
add r9, 4
cmp r9, 0x20
jl 0x140008b85
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret
Function at 0x14000a858
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, qword [rbp + 0x190]
mov rax, r8
mov rdi, qword [rbp + 0x198]
mov r12, rdx
mov rsi, qword [rbp + 0x1a0]
mov r15, rcx
mov rdx, rax
lea rcx, [rbp + 0xb0]
mov r8d, 0x10
call fcn.14002b4b0
xor r14d, r14d
mov dword [rbp + 0xc0], 0x1000000
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0x68]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0xb0]
mov qword [rsp + 0x30], r14
mov rdx, r12
mov qword [rsp + 0x28], r14
lea r9d, [r14 + 0x14]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14000a53c
lea r13d, [r14 + 0x20]
mov r8d, r13d
lea rdx, [rbp + 0x68]
lea rcx, [rbp + 0x88]
call fcn.14002b4b0
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rsi
lea rdi, [rbp + 0x40]
mov byte [rsp + 0x51], r14b
lea rsi, [rbp + 0x50]
mov byte [rsp + 0x50], r14b
lea r14d, [r13 - 0x1d]
mov dword [rbp + 0x40], eax
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov qword [rbp + 0x50], rbx
cmp dword [rdi], 0
jbe 0x14000a9e2
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.14000a53c
mov r8, r13
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.14002b4b0
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000a9b5
sub rbx, 1
jne 0x14000a958
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, r13
call fcn.14002b4b0
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000a94d
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.1400186c8
lea rcx, [rbp + 0x88]
mov rdx, r13
call fcn.1400186c8
lea rcx, [rbp + 0x68]
call fcn.1400186c8
lea rcx, [rbp + 0x100]
call fcn.1400186c8
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1400292d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ad3c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x14000adda
mov ecx, dword [rbx]
lea rdx, [rsp + 0x50]
call fcn.1400091a8
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
lea r9d, [r14 - 0x1c]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov edx, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a53c
xor r8d, r8d
lea r9, [rsp + 0x58]
xor edx, edx
movzx eax, byte [r9]
mov ecx, edx
and ecx, 3
inc edx
shl ecx, 3
inc r9
shl eax, cl
xor r8d, eax
cmp edx, r14d
jb 0x14000adbc
mov dword [rbx], r8d
cmp dword [rdi], 3
jne 0x14000ae22
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000a53c
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.14002b4b0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400292d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140010980
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x14], 0
mov rbx, rcx
jne 0x1400109b7
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400109a3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140044528]
cmp byte [rbx + 0x21], 0
je 0x1400109b7
lea rcx, [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp fcn.1400119b0
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400109c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x1400109f3
mov al, 1
jmp 0x140010b22
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140010a0b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140010a66
xor ebx, ebx
test rsi, rsi
je 0x140010a8f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140010a86
add rbx, r13
cmp rbx, rsi
jb 0x140010a26
jmp 0x140010a86
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140010b1b
cmp byte [rdi + 0x22], 0
je 0x140010b1b
cmp dword [rdi + 0x14], 0
jne 0x140010b1b
lea rdx, [rdi + 0x40]
call fcn.14000b6f8
test al, al
je 0x140010af0
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140010a11
test ecx, ecx
je 0x140010a11
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140044528]
mov rdx, rax
mov eax, dword [rsp + 0x30]
sub rdx, rax
xor r8d, r8d
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140044528]
jmp 0x140010a11
lea rdx, [0x14004d2d0]
lea rcx, [rsp + 0x38]
call fcn.1400020b4
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
call fcn.14000b6d8
nop
lea rcx, [rsp + 0x38]
call fcn.140002254
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400292d0
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140010cc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x14], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jne 0x140010cfa
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010d77
mov rcx, rbx
call fcn.140011194
test al, al
je 0x140010d3d
mov r8d, 0x4e20
cmp rsi, r8
jbe 0x140010d3d
mov rdx, rbp
mov rcx, rbx
call fcn.140010cc8
jmp 0x140010d7b
cmp dword [rbx + 0x14], 1
jne 0x140010d52
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140010d52
xor eax, eax
jmp 0x140010d7b
cmp dword [rbx + 0x14], 0
jne 0x140010d72
mov edi, 0x8000
cmp rsi, rdi
jbe 0x140010d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x140010d72
mov r8d, edi
jmp 0x140010d30
or eax, 0xffffffff
jmp 0x140010d7b
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140011018
Capabilities:
Clear file content

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

Function at 0x1400111c4
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14d, r8d
mov bpl, dl
mov rdi, rcx
call fcn.14001348c
cmp ax, 0x2e
je 0x14001121c
cmp ax, 0x20
je 0x14001121c
mov rcx, rdi
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
xor ebx, ebx
test eax, eax
jne 0x14001126d
jmp 0x140011220
xor ebx, ebx
mov esi, ebx
mov rcx, rdi
call fcn.1400115e4
test al, al
jne 0x140011281
lea rcx, [rsp + 0x20]
call fcn.1400026bc
nop
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140014360
test al, al
je 0x14001125f
lea rcx, [rsp + 0x20]
call fcn.14000128c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
lea rcx, [rsp + 0x20]
call fcn.140002254
test esi, esi
je 0x140011281
test bpl, bpl
je 0x14001127d
mov edx, r14d
mov rcx, rdi
call fcn.1400116a4
xor eax, eax
jmp 0x14001129c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140011297
cmp eax, 3
sete bl
lea eax, [rbx + 1]
jmp 0x14001129c
mov eax, 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400292d0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret