joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180600058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806001df
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 0x180600089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18060006f
add dl, dl
jne 0x180600096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806000f6
xor eax, eax
add dl, dl
jne 0x1806000a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806001ad
add dl, dl
jne 0x1806000b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806000c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806000d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806000dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806000ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18060007e
mov eax, 1
add dl, dl
jne 0x180600106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180600113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806000fb
sub eax, ebx
mov ebx, 1
jne 0x18060014c
mov ecx, 1
add dl, dl
jne 0x18060012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18060013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180600123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18060007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180600168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180600175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18060015d
cmp eax, 0x7d00
jae 0x18060019b
cmp eax, 0x500
jb 0x180600196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18060007e
cmp eax, 0x7f
ja 0x18060019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18060007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806001d2
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 0x18060007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.x__]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [str.t__]
mov dword [rax], 1
mov rax, qword [str.p__]
mov dword [rax], 1
mov rax, qword [0x140233890]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1402338d0]
mov dword [0x14023600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1402339a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140233980]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140233840]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140105da0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140105e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402360a4]
mov rbx, rcx
test esi, esi
jle 0x140105f40
mov rax, qword [0x1402360a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140105e5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140105ee5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140105e40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140105f62
mov rax, qword [0x1402360a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402360a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140105f47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140105ede
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140105ef0
add dword [0x1402360a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402360a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140105ede
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140105e68
mov rax, qword [0x1402360a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401064d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140236100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402360e0]
test rbx, rbx
je 0x14010652c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140106523
test rsi, rsi
je 0x140106523
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140106508
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140106740
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140106758
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140106760
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140106770
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1401067bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1401067b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1401067bf
add rax, 0x28
cmp rax, r9
jne 0x1401067a0
xor eax, eax
ret

Function at 0x1401067c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140106850
mov rdx, qword [0x140233890]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14010683e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14010683e
cmp word [rax + 0x18], 0x20b
jne 0x14010683e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140106850
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140106829
add rbx, 0x28
cmp rbx, rdi
je 0x140106850
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140106820
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140106860
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140233890]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140106880
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140106888
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140106880
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401068dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401068d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140106880
add rax, 0x28
cmp rax, r9
jne 0x1401068c0
xor eax, eax
ret

Function at 0x1401068e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140233890]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401068ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140106908
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401068ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140106920
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140233890]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140106940
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140106948
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140106940
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140106990
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140106987
test rcx, rcx
je 0x140106940
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140106978
xor eax, eax
ret

Function at 0x1401069a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140233890]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1401069bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1401069c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1401069e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140233890]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140106a00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140106a08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140106a00
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140106a00
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140106a54
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140106a60
add rdx, 0x28
cmp r9, rdx
jne 0x140106a40
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140106a70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140233890]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140106a92
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140106aa0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140106a92
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140106a92
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140106a92
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140106af5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140106b08
add rdx, 0x28
cmp rdx, r10
jne 0x140106ae0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140106b17
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140106b27
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140106afe
test ecx, ecx
jg 0x140106b10
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140e351b8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e3533f
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 0x140e351e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e351cf
add dl, dl
jne 0x140e351f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e35256
xor eax, eax
add dl, dl
jne 0x140e35205
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e3530d
add dl, dl
jne 0x140e35216
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e35223
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e35230
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e3523d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e3524a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e351de
mov eax, 1
add dl, dl
jne 0x140e35266
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e35273
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e3525b
sub eax, ebx
mov ebx, 1
jne 0x140e352ac
mov ecx, 1
add dl, dl
jne 0x140e3528e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e3529b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e35283
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e351de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e352c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e352d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e352bd
cmp eax, 0x7d00
jae 0x140e352fb
cmp eax, 0x500
jb 0x140e352f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e351de
cmp eax, 0x7f
ja 0x140e352fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e351de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e35332
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 0x140e351de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x70004038
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x70006100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], r8
xor r8d, r8d
mov r12, rcx
lea ebx, [r8 + 4]
lea r15d, [r8 + 1]
lea r10, [r11 - 0x48]
xor r9d, r9d
lea r11, [r8 + rdx]
mov al, byte [r11]
add r11, rbx
mov byte [r10 + r9], al
add r9, r15
cmp r9, rbx
jl 0x70004081
add r8, r15
add r10, rbx
cmp r8, rbx
jl 0x7000407a
xor ecx, ecx
lea r8, [r12 + 0x208]
lea rdx, [rsp + rcx + 0x30]
mov r9, r8
mov r10, rbx
mov al, byte [r9]
add r9, rbx
xor byte [rdx], al
add rdx, rbx
sub r10, r15
jne 0x700040b3
add rcx, r15
add r8, r15
cmp rcx, rbx
jl 0x700040a8
mov rsi, r15
lea rbp, [r12 + 0x218]
lea r8, [rsp + 0x30]
mov r9, rbx
xor edx, edx
movzx eax, byte [r8 + rdx]
mov cl, byte [rax + r12 + 8]
mov byte [r8 + rdx], cl
add rdx, r15
cmp rdx, rbx
jl 0x700040e3
add r8, rbx
sub r9, r15
jne 0x700040e1
mov r10d, r15d
mov r8, rbx
xor r9d, r9d
mov r11d, r10d
mov eax, r11d
add r11d, r15d
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
movsxd rcx, eax
add rcx, r8
mov al, byte [rsp + rcx + 0x30]
mov byte [rsp + r9 + 0x24], al
add r9, r15
cmp r9, rbx
jl 0x7000410d
mov eax, dword [rsp + 0x24]
add r10d, r15d
mov dword [rsp + r8 + 0x30], eax
add r8, rbx
cmp r8, 0x10
jl 0x70004107
cmp rsi, 0xa
je 0x70004220
xor edi, edi
lea r13, [rsp + rdi + 0x30]
xor ecx, ecx
mov rdx, r13
mov al, byte [rdx]
add rdx, rbx
mov byte [rsp + rcx + 0x20], al
add rcx, r15
cmp rcx, rbx
jl 0x70004160
xor r15d, r15d
lea r14d, [r15 + 2]
lea eax, [r14 - 1]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov dl, 3
movsxd rcx, eax
mov r8b, byte [rsp + rcx + 0x20]
mov rcx, r12
call fcn.70004438
mov r11b, al
lea eax, [r14 + 1]
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov dl, 1
movsxd rcx, eax
mov r8b, byte [rsp + rcx + 0x20]
mov rcx, r12
call fcn.70004438
xor r11b, al
mov eax, r14d
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
mov dl, 1
movsxd rcx, eax
mov r8b, byte [rsp + rcx + 0x20]
mov rcx, r12
call fcn.70004438
mov r8b, byte [rsp + r15 + 0x20]
mov dl, 2
mov rcx, r12
xor r11b, al
call fcn.70004438
mov ebx, 4
inc r15
xor r11b, al
inc r14d
mov byte [r13], r11b
add r13, rbx
cmp r15, rbx
jl 0x70004178
lea r15d, [rbx - 3]
add rdi, r15
cmp rdi, rbx
jl 0x70004156
xor ecx, ecx
mov r8, rbp
lea rdx, [rsp + rcx + 0x30]
mov r9, r8
mov r10, rbx
mov al, byte [r9]
add r9, rbx
xor byte [rdx], al
add rdx, rbx
sub r10, r15
jne 0x70004230
add rcx, r15
add r8, r15
cmp rcx, rbx
jl 0x70004225
add rsi, r15
add rbp, 0x10
cmp rsi, 0xa
jle 0x700040d9
mov r14, qword [rsp + 0x28]
xor edx, edx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea r10, [rdx + r14]
mov cl, byte [r9 + r8]
add r8, r15
mov byte [r10], cl
add r10, rbx
cmp r8, rbx
jl 0x7000426f
add rdx, r15
add r9, rbx
cmp rdx, rbx
jl 0x70004268
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.700048f0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x700042c0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rax, qword [0x70006100]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov r13d, 1
mov r12, rcx
mov rbp, r8
mov byte [r11 - 0x30], r13b
mov r10, rdx
xor ecx, ecx
mov byte [rsp + 9], 2
mov byte [rsp + 0xa], 4
mov byte [rsp + 0xb], 8
mov byte [rsp + 0xc], 0x10
mov byte [rsp + 0xd], 0x20
mov byte [rsp + 0xe], 0x40
mov byte [rsp + 0xf], 0x80
mov byte [rsp + 0x10], 0x1b
mov byte [rsp + 0x11], 0x36
xor edx, edx
lea r9, [rcx + r10]
mov al, byte [r9]
add r9, 4
mov byte [r8 + rdx], al
add rdx, r13
cmp rdx, 4
jl 0x7000432f
add rcx, r13
add r8, 4
cmp rcx, 4
jl 0x70004329
lea r10, [rsp + 8]
mov r9, r13
sub r10, r13
mov r11, r9
xor r8d, r8d
add r11, r11
xor edx, edx
lea rax, [rdx + r9*4]
test r8, r8
je 0x70004379
lea rcx, [r8 + rax*4]
mov al, byte [rcx + rbp - 1]
jmp 0x7000437d
mov al, byte [rbp + rax*4 - 0xd]
mov byte [rsp + rdx], al
add rdx, r13
cmp rdx, 4
jl 0x70004366
test r8, r8
jne 0x700043d3
mov dil, byte [rsp]
xor ebx, ebx
mov esi, r13d
mov eax, esi
add esi, r13d
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
movsxd rcx, eax
movzx eax, byte [rsp + rcx]
mov cl, byte [rax + r12 + 8]
mov byte [rsp + rbx], cl
add rbx, r13
cmp rbx, 3
jl 0x70004397
movzx eax, dil
mov cl, byte [rax + r12 + 8]
mov al, byte [r10 + r9]
xor byte [rsp], al
mov byte [rsp + 3], cl
lea rcx, [r8 + r11*8]
xor edx, edx
add rcx, rbp
mov al, byte [rsp + rdx]
add rdx, r13
xor al, byte [rcx - 0x10]
mov byte [rcx], al
add rcx, 4
cmp rdx, 4
jl 0x700043dc
add r8, r13
cmp r8, 4
jl 0x70004364
add r9, r13
cmp r9, 0xa
jle 0x7000435b
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.700048f0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x700048f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x70006100]
jne 0x7000490b
rol rcx, 0x10
test cx, 0xffff
jne 0x70004907
ret 0
ror rcx, 0x10
jmp 0x70004b84
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x70006510]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x70006608]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x70004c09
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x70006510]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x70004c2b
mov rax, qword [rsp + 0x88]
mov qword [0x70006608], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x700065a8], rax
mov rax, qword [0x70006608]
mov qword [0x70006480], rax
mov rax, qword [rsp + 0x90]
mov qword [0x70006590], rax
mov dword [0x70006470], 0xc0000409
mov dword [0x70006474], 1
mov rax, qword [0x70006100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x70006108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x70001168]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140951108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14095128f
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 0x140951139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095111f
add dl, dl
jne 0x140951146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409511a6
xor eax, eax
add dl, dl
jne 0x140951155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095125d
add dl, dl
jne 0x140951166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140951173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140951180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14095118d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14095119a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14095112e
mov eax, 1
add dl, dl
jne 0x1409511b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409511c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409511ab
sub eax, ebx
mov ebx, 1
jne 0x1409511fc
mov ecx, 1
add dl, dl
jne 0x1409511de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409511eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409511d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095112e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140951218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140951225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095120d
cmp eax, 0x7d00
jae 0x14095124b
cmp eax, 0x500
jb 0x140951246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095112e
cmp eax, 0x7f
ja 0x14095124e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095112e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140951282
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 0x14095112e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20