joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d0780
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d1860
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1182
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f3108]
test eax, eax
je 0x2fc4d121a
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f3110]
mov qword [rbp - 8], rax
jmp 0x2fc4d11fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d11f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d11f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d11b8
lea rax, [0x2fc4f30e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d121b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1320
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d1348
mov eax, 0
jmp 0x2fc4d1396
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d1371
mov eax, 0
jmp 0x2fc4d1396
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d1391
mov eax, 0
jmp 0x2fc4d1396
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d139c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d141a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1411
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1411
mov rax, qword [rbp - 8]
jmp 0x2fc4d142f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d13e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140f0b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f0b1df
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 0x140f0b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f0b06f
add dl, dl
jne 0x140f0b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f0b0f6
xor eax, eax
add dl, dl
jne 0x140f0b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f0b1ad
add dl, dl
jne 0x140f0b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f0b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f0b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f0b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f0b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f0b07e
mov eax, 1
add dl, dl
jne 0x140f0b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f0b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f0b0fb
sub eax, ebx
mov ebx, 1
jne 0x140f0b14c
mov ecx, 1
add dl, dl
jne 0x140f0b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f0b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f0b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f0b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f0b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f0b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f0b15d
cmp eax, 0x7d00
jae 0x140f0b19b
cmp eax, 0x500
jb 0x140f0b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f0b07e
cmp eax, 0x7f
ja 0x140f0b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f0b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f0b1d2
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 0x140f0b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400113c8
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x140050f58]
call fcn.140041d48
test rax, rax
je 0x1400113ed
mov rdx, rax
mov rcx, rbx
call fcn.140010c50
add rsp, 0x20
pop rbx
ret

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

Disassembly:
xor r8d, r8d
lea r9, [0x140061960]
mov r10d, r8d
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 0x1400128df
inc r8d
mov dword [r9], r10d
add r9, 4
cmp r8d, 0x100
jl 0x1400128d6
repz ret

Function at 0x140012914
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, r8
mov rbp, rdx
mov ebx, ecx
cmp dword [0x140061964], esi
jne 0x14001293f
call fcn.1400128cc
lea r9, [0x140061960]
jmp 0x140012969
test bpl, 7
je 0x14001296e
movzx ecx, byte [rbp]
movzx eax, bl
dec rdi
xor rcx, rax
mov eax, ebx
mov ebx, dword [r9 + rcx*4]
shr eax, 8
xor ebx, eax
inc rbp
cmp rdi, rsi
ja 0x140012948
cmp rdi, 8
jb 0x1400129f9
mov r8, rdi
shr r8, 3
mov rax, r8
imul rax, rax, 0xfffffffffffffff8
add rdi, rax
xor ebx, dword [rbp]
add rbp, 8
movzx eax, bl
shr ebx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, ebx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, dword [rbp - 4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov edx, dword [r9 + rax*4]
xor edx, ecx
movzx eax, dl
shr edx, 8
mov ecx, dword [r9 + rax*4]
xor ecx, edx
movzx eax, cl
shr ecx, 8
mov ebx, dword [r9 + rax*4]
xor ebx, ecx
sub r8, 1
jne 0x140012989
cmp rdi, rsi
jbe 0x140012a1b
movzx ecx, byte [rsi + rbp]
movzx eax, bl
inc rsi
xor rcx, rax
mov eax, ebx
mov ebx, dword [r9 + rcx*4]
shr eax, 8
xor ebx, eax
cmp rsi, rdi
jb 0x1400129fe
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
inc rdx
mov r8d, 4
lea r9, [0x140061960]
movzx eax, byte [rdx - 1]
mov eax, dword [r9 + rax*4]
xor dword [rcx + 0x204], eax
movzx eax, byte [rdx]
add rdx, 4
mov eax, dword [r9 + rax*4]
xor dword [rcx + 0x208], eax
movzx eax, byte [rdx - 3]
mov eax, dword [r9 + rax*4]
xor dword [rcx + 0x20c], eax
movzx eax, byte [rdx - 2]
mov eax, dword [r9 + rax*4]
xor dword [rcx + 0x210], eax
sub r8, 1
jne 0x140012a74
repz ret
Function at 0x140012e10
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 + 0x204]
mov r11d, dword [rcx + 0x208]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x20c]
xor ebp, dword [rcx + 0x210]
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 + 0x204]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r12d, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r12d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0x104]
shl r12d, 8
mov edx, esi
or r12d, eax
movzx eax, byte [rcx + r10 + 0x104]
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 + 0x104]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0x104]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0x104]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r14, 1
mov r11d, ebp
mov ebp, r8d
jne 0x140012e61
xor ebx, r12d
mov rdx, r9
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x208]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x20c]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x210]
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.140012a64
Function at 0x140012f98
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 [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0x204]
mov edi, dword [rdx]
mov r11d, dword [rcx + 0x208]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x20c]
mov r12d, 0x1f
xor edi, ebx
xor ebp, dword [rcx + 0x210]
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 + 0x204]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r13d, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r13d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0x104]
shl r13d, 8
mov edx, esi
or r13d, eax
movzx eax, byte [rcx + r10 + 0x104]
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 + 0x104]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0x104]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0x104]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0x104]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r12d, 1
mov r11d, ebp
mov ebp, r8d
jns 0x140012ffd
xor ebx, r13d
lea rdx, [rsp + 0x20]
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x208]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x20c]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x210]
mov dword [r9 + 0xc], r11d
call fcn.140012a64
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400407f0
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 0x1400136e4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r9, dword [rdx]
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp r9d, dword [r8]
jbe 0x140013753
mov r8d, 1
cmp dword [rbx], r8d
jb 0x140013734
mov rcx, rdi
mov r9, rsi
lea rdx, [rbx + 4]
sub rcx, rbx
sub r9, rbx
mov eax, dword [rcx + rdx]
inc r8d
xor eax, dword [rdx]
mov dword [r9 + rdx], eax
add rdx, 4
cmp r8d, dword [rbx]
jbe 0x14001371f
mov ecx, r8d
mov r8d, dword [rdi]
sub r8d, dword [rbx]
lea rdx, [rdi + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.140040980
mov r11d, dword [rdi]
jmp 0x14001379f
jae 0x1400137a4
mov edx, 1
cmp r9d, edx
jb 0x140013783
lea rcx, [r8 + 4]
mov r8, rdi
mov r9, rsi
sub r8, rbx
sub r9, rbx
mov eax, dword [rcx + r8]
inc edx
xor eax, dword [rcx]
mov dword [rcx + r9], eax
add rcx, 4
cmp edx, dword [rdi]
jbe 0x14001376f
mov r8d, dword [rbx]
mov ecx, edx
sub r8d, dword [rdi]
lea rdx, [rbx + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.140040980
mov r11d, dword [rbx]
mov dword [rsi], r11d
jmp 0x1400137ea
or r8d, 0xffffffff
test r9d, r9d
je 0x1400137c4
lea rcx, [rbx + r9*4]
sub rdx, rbx
mov eax, dword [rcx + rdx]
xor eax, dword [rcx]
jne 0x1400137c4
sub rcx, 4
add r9d, r8d
jne 0x1400137b4
mov dword [rsi], r9d
movsxd rax, r9d
test r9d, r9d
je 0x1400137ea
sub rdi, rbx
lea rcx, [rbx + rax*4]
sub rsi, rbx
mov eax, dword [rcx + rdi]
xor eax, dword [rcx]
mov dword [rcx + rsi], eax
sub rcx, 4
add r9d, r8d
jne 0x1400137d9
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400137fc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
cmp dword [rdx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140013919
cmp dword [r8], 0
je 0x140013919
movsxd r9, dword [r8]
mov rbp, qword [0x140062220]
test r9, r9
je 0x14001385c
lea rax, [rax - 0x58]
mov rdx, r8
sub rdx, rax
lea rax, [rdx + r9*4]
sub r9, 1
mov ecx, dword [rsp + rax + 0x20]
mov eax, dword [rbp + rcx*4]
mov dword [rsp + r9*4 + 0x24], eax
jne 0x140013845
xor edx, edx
mov r8d, 0x90
mov rcx, rbx
call fcn.140040cb4
movsxd r9, dword [rsi]
test r9, r9
je 0x1400138cc
mov r11, qword [0x140062218]
mov eax, dword [rsi + r9*4]
mov r10d, dword [rbp + rax*4]
cmp r10d, 0x7fff
je 0x1400138c6
movsxd r8, dword [rdi]
test r8, r8
je 0x1400138c6
mov eax, dword [rsp + r8*4 + 0x20]
cmp eax, 0x7fff
je 0x1400138c0
lea ecx, [rax + r10]
lea rdx, [r8 + r9]
cmp ecx, 0x7fff
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [r11 + rcx*4]
xor dword [rbx + rdx*4 - 4], ecx
sub r8, 1
jne 0x140013895
sub r9, 1
jne 0x14001387b
mov eax, dword [rdi]
mov ecx, dword [rsi]
lea edx, [rcx + rax - 1]
movsxd rax, edx
mov dword [rbx], edx
cmp rax, 0x11
jle 0x1400138fe
lea rcx, [rbx + rax*4 - 0x38]
lea rdx, [rax - 0x11]
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x1400138e8
cmp dword [rbx], 0x11
jbe 0x14001391c
mov dword [rbx], 0x11
mov eax, dword [rbx]
cmp dword [rbx + rax*4], 0
jne 0x14001391c
dec eax
mov dword [rbx], eax
jne 0x140013909
jmp 0x14001391c
and dword [rcx], 0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140013934
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
cmp dword [rdx], 0
mov r9, rdx
mov r8, rcx
je 0x140013a22
movsxd rdx, dword [rdx]
mov r11, qword [0x140062220]
mov rbx, qword [0x140062218]
mov eax, dword [r9 + rdx*4]
mov esi, 0x7fff
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x140013986
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r8 + rdx*8 - 4], ecx
jmp 0x14001398c
and dword [r8 + rdx*8 - 4], 0
mov eax, dword [r9]
sub eax, 1
movsxd rdx, eax
je 0x1400139d0
lea r10, [r8 + rdx*8 - 4]
and dword [r8 + rdx*8], 0
mov eax, dword [r9 + rdx*4]
mov ecx, dword [r11 + rax*4]
cmp ecx, esi
je 0x1400139c2
add ecx, ecx
cmp ecx, esi
lea eax, [rcx - 0x7fff]
cmovae ecx, eax
mov ecx, dword [rbx + rcx*4]
mov dword [r10], ecx
jmp 0x1400139c6
and dword [r10], 0
sub r10, 8
sub rdx, 1
jne 0x14001399c
mov eax, dword [r9]
lea eax, [rax + rax - 1]
movsxd rdx, eax
mov dword [r8], eax
cmp rdx, 0x11
jle 0x140013a02
lea rcx, [r8 + rdx*4 - 0x38]
add rdx, 0xffffffffffffffef
mov eax, dword [rcx + 0x38]
and dword [rcx + 0x38], 0
xor dword [rcx - 0xc], eax
xor dword [rcx], eax
sub rcx, 4
sub rdx, 1
jne 0x1400139ec
cmp dword [r8], 0x11
jbe 0x140013a25
mov dword [r8], 0x11
mov eax, dword [r8]
cmp dword [r8 + rax*4], 0
jne 0x140013a25
dec eax
mov dword [r8], eax
jne 0x140013a0f
jmp 0x140013a25
and dword [rcx], 0
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x1400156d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
xor r9d, r9d
mov qword [rcx], rbx
movzx eax, word [rsi]
mov r8, rdx
mov r10, rcx
mov rdx, r9
mov r15b, 1
mov ecx, r9d
jmp 0x140015724
mov edi, 0xff
cmp ax, di
ja 0x14001572c
inc ecx
inc rdx
mov ax, word [rsi + rdx*2]
cmp ax, r9w
jne 0x140015711
jmp 0x140015734
movsxd rax, ecx
mov r15b, byte [rsi + rax*2 + 1]
mov rax, qword [r10 + 0x18]
or rcx, 0xffffffffffffffff
mov rdi, r8
mov byte [rbx + rax], r15b
mov rax, qword [r10 + 0x18]
mov r11, r9
inc rax
mov qword [r10 + 0x10], rax
inc rax
mov qword [r10 + 0x18], rax
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov qword [rsp + 0x60], rcx
cmp word [rsi], r9w
je 0x1400158ca
lea rdx, [rsi + r11*2]
mov r12b, byte [rdx + 1]
mov r14b, byte [rdx]
cmp r11, rax
jae 0x140015868
lea rbp, [r11 + r8]
mov edi, r9d
xor r13d, r13d
mov r9, rbp
mov r8, rdx
cmp word [r8], r13w
je 0x1400157bb
movzx ecx, word [r8]
movsx eax, byte [r9]
cmp ecx, eax
jne 0x1400157bb
inc edi
add r8, 2
inc r9
cmp edi, 0x81
jl 0x140015798
cmp edi, 2
jl 0x1400157e8
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.1400154f8
mov rax, qword [r10 + 0x18]
sub dil, 2
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
jmp 0x1400158b2
mov r13b, r14b
sub r13b, byte [rbp]
xor r9d, r9d
mov edi, r9d
mov r8w, word [rdx]
cmp r8w, r9w
je 0x14001582f
movzx ecx, r8w
shr cx, 8
cmp cl, r15b
jne 0x14001582f
movsx ecx, byte [rbp]
movzx eax, r13b
add ecx, eax
xor ecx, r8d
cmp cl, r9b
jne 0x14001582f
inc edi
inc rbp
add rdx, 2
cmp edi, 0x81
jl 0x1400157f5
cmp edi, 2
jl 0x140015868
movsxd rax, edi
mov edx, 3
mov rcx, r10
add r11, rax
call fcn.1400154f8
mov rax, qword [r10 + 0x18]
sub dil, 2
or dil, 0x80
mov byte [rbx + rax], dil
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r13b
jmp 0x1400157df
mov rcx, r10
cmp r12b, r9b
jne 0x140015881
xor edx, edx
call fcn.1400154f8
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
jmp 0x1400158ab
cmp r12b, r15b
jne 0x14001588d
mov edx, 1
jmp 0x140015872
mov edx, 2
call fcn.1400154f8
mov rcx, qword [r10 + 0x18]
mov byte [rbx + rcx], r14b
inc qword [r10 + 0x18]
mov rax, qword [r10 + 0x18]
mov byte [rax + rbx], r12b
inc qword [r10 + 0x18]
inc r11
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
xor r9d, r9d
cmp word [rsi + r11*2], r9w
jne 0x140015774
mov dl, byte [r10 + 8]
mov rax, qword [r10 + 0x10]
mov ecx, 8
sub ecx, dword [r10 + 0xc]
shl dl, cl
mov byte [rbx + rax], dl
mov rax, qword [r10 + 0x18]
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015910
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1030
call fcn.14004d4a0
sub rsp, rax
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1400159ce
lea r8, [rsp + 0x20]
mov r9d, 0x400
mov rdx, rbx
mov rcx, rdi
call fcn.140027eec
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea rbx, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.1400291dc
test al, al
jne 0x1400159ad
lea rdx, [rsp + 0x820]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x820]
repne scasw ax, word [rdi]
not rcx
add rbx, rcx
mov edi, 0x104
cmp rbx, rdi
jbe 0x1400159ce
mov ecx, 0xe6e
call fcn.140032268
mov r8d, edi
xor ecx, ecx
mov rdx, rax
call fcn.140012848
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400407f0
mov rbx, qword [rsp + 0x1040]
add rsp, 0x1030
pop rdi
ret
Function at 0x140019a40
Capabilities:
Move file

Disassembly:
push rdi
mov eax, 0x3110
call fcn.14004d4a0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x3128], rbx
mov qword [rsp + 0x3130], rbp
mov qword [rsp + 0x3138], rsi
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x3100], rax
mov rdi, rcx
lea rcx, [rsp + 0xc44]
call fcn.140037b28
lea rcx, [rsp + 0xc68]
call fcn.140037b28
lea rcx, [rsp + 0xc8c]
call fcn.140037b28
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, rdi
xor ecx, ecx
call fcn.14001d2cc
xor esi, esi
cmp al, sil
jne 0x140019acc
xor al, al
jmp 0x140019c8e
cmp word [rsp + 0xcb0], si
je 0x140019c8c
lea rcx, [rsp + 0x430]
call fcn.140028020
mov rcx, rax
lea rdx, [rsp + 0xcb0]
call fcn.140038088
cmp eax, esi
je 0x140019c8c
mov rcx, rdi
call fcn.140028020
mov rcx, rax
lea rdx, [rsp + 0xcb0]
call fcn.140038088
cmp eax, esi
jne 0x140019c8c
mov ax, si
mov word [rsp + 0x2100], ax
mov ebx, esi
mov ebp, 0x400
cmp ax, si
jne 0x140019baa
mov r8, rbp
mov rdx, rdi
lea rcx, [rsp + 0x2100]
call fcn.140036d2c
lea rcx, [rsp + 0x2100]
call fcn.140028020
mov rcx, rax
mov r9d, ebx
lea r8, str.rtmp_d
mov rdx, rbp
call fcn.14001981c
lea rdx, [rsp + 0x2100]
xor ecx, ecx
call fcn.14001b234
cmp al, sil
je 0x140019b8b
mov eax, esi
mov word [rsp + 0x2100], ax
jmp 0x140019b93
mov ax, word [rsp + 0x2100]
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x140019b31
cmp ax, si
jne 0x140019baa
xor al, al
jmp 0x140019c8e
mov r8, rbp
mov rdx, rdi
lea rcx, [rsp + 0x2900]
call fcn.140036d2c
lea rcx, [rsp + 0x430]
call fcn.140028020
mov rbx, rax
lea rcx, [rsp + 0x2900]
call fcn.140028020
movzx ecx, word [rbx]
mov word [rax], cx
add rbx, 2
add rax, 2
cmp cx, si
jne 0x140019bda
lea rdx, [rsp + 0x2100]
lea rcx, [rsp + 0x2900]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, esi
jne 0x140019c0e
xor al, al
jmp 0x140019c8e
lea rcx, [rsp + 0x14d0]
call fcn.14001a0a8
nop
mov bl, sil
mov rdx, rdi
xor ecx, ecx
call fcn.14001b234
cmp al, sil
jne 0x140019c45
mov r9b, 1
mov r8, rdi
xor edx, edx
lea rcx, [rsp + 0x14d0]
call fcn.14001a69c
mov bl, al
lea rdx, [rsp + 0x2900]
lea rcx, [rsp + 0x2100]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
cmp bl, sil
je 0x140019c7b
lea rcx, [rsp + 0x14d0]
call fcn.14001a120
lea rcx, [rsp + 0x14d0]
call fcn.14001a1d8
nop
lea rcx, [rsp + 0x14d0]
call fcn.14001a484
mov al, 1
jmp 0x140019c8e
xor al, al
mov rcx, qword [rsp + 0x3100]
xor rcx, rsp
call fcn.1400407f0
lea r11, [rsp + 0x3110]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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