joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac470
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
jne 0x1400ac4d6
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x140680680]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x1400ac501
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140680680]
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x28]
add rcx, qword [rdx]
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call fcn.1400ad170
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400ac5b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400ac5e0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
add rsp, 0x38
ret

Function at 0x1400ac610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x10]
add rax, 2
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x1400ac690
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1406764b0], 0xffffffff
jne 0x1400ac6bf
call fcn.1400ac250
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400ac640]
call fcn.1401330fc
jmp 0x1400ac6f0
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
jne 0x1400ac6f0
call fcn.1400ad530
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400ac640]
call fcn.1401330fc
add rsp, 0x28
ret

Function at 0x1400ac7a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
add rsp, 0x38
ret
Function at 0x1400ac7d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x1400aca20
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x1400aca50
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x1400acac2
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140680680]
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x1400acb20
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x1400acb20
cmp dword [rsp + 0x20], 0x100000
jge 0x1400acae3
mov dword [rsp + 0x20], 0x100000
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x140680680]
call qword [sym.imp.KERNEL32.DLL_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400acb60
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
xor edx, edx
mov word [rcx + rax], dx
add rsp, 0x38
ret

Function at 0x1400ace80
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret
Function at 0x1400ad0d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x1400ad12b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x1400ad12b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x1400ad12d
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400ad140
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x1400ad1f0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx]
add rsp, 0x38
ret

Function at 0x1400ad530
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x140680680]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x140680680]
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1406764b0]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
add rsp, 0x38
ret

Function at 0x1400ad770
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rsi, rcx
xor r11d, r11d
lea rdi, [rcx + 0x33b8c]
nop dword [rax]
xor r9d, r9d
mov r10d, r11d
lea eax, [r9 + 1]
lea ebx, [rax + 3]
nop dword [rax]
mov ecx, eax
mov r8d, r10d
add eax, eax
movzx edx, word [rsi + rcx*2 + 0x34234]
and r8d, 1
shr r10d, 1
mov ecx, r8d
shr rdx, 4
or eax, r8d
neg ecx
sar rcx, 4
and ecx, 0x7f
xor rdx, rcx
add r9d, dword [rsi + rdx*4 + 0x324dc]
dec ebx
jne 0x1400ad7a0
inc r11d
mov dword [rdi], r9d
add rdi, 4
cmp r11d, 0x10
jb 0x1400ad790
mov rdi, qword [rsp + 0x18]
mov dword [rsi + 0x33bcc], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x1400ad800
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov r12d, 4
mov r10, rcx
lea rbp, [rcx + 0x304e0]
mov edi, r12d
lea rsi, [rsp + 0x10]
nop word [rax + rax]
movzx edx, byte [rbp]
xor ebx, ebx
mov r11d, edi
mov r9d, edx
mov eax, edx
lea r8d, [rbx + 1]
and eax, 1
shr r9d, 1
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
sub r11d, eax
test r9d, r9d
je 0x1400ad8b1
mov r14d, edx
mov r15d, eax
mov eax, r8d
mov edx, r11d
add r8d, r8d
sub rax, r14
and edx, 1
shr r11d, 1
add rax, r15
or r8d, edx
movzx ecx, word [r10 + rax*2 + 0x3414e]
mov eax, edx
neg eax
shr rcx, 4
sar rax, 4
and eax, 0x7f
xor rcx, rax
add ebx, dword [r10 + rcx*4 + 0x324dc]
dec r9d
jne 0x1400ad871
inc edi
mov dword [rsi], ebx
inc rbp
add rsi, r12
cmp edi, 0x80
jb 0x1400ad840
lea rsi, [rsp]
lea rbx, [r10 + 0x32f8c]
lea rdi, [r10 + 0x33f50]
sub rsi, r10
lea r14, [r10 + 0x33394]
sub rsi, 0x3338c
nop word [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x33bd0], r11d
jbe 0x1400ad94e
nop dword [rax]
mov eax, r11d
xor r9d, r9d
or eax, 0x40
cmp eax, 1
je 0x1400ad93e
nop
mov edx, eax
mov ecx, eax
shr eax, 1
and edx, 1
shr rcx, 1
movzx r8d, word [rdi + rcx*2]
neg edx
sar rdx, 4
shr r8, 4
and edx, 0x7f
xor r8, rdx
add r9d, dword [r10 + r8*4 + 0x324dc]
cmp eax, 1
jne 0x1400ad910
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x33bd0]
jb 0x1400ad900
mov edx, 0xe
cmp dword [r10 + 0x33bd0], edx
jbe 0x1400ad97d
nop dword [rax]
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
inc edx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx], eax
cmp edx, dword [r10 + 0x33bd0]
jb 0x1400ad960
mov eax, dword [rbx]
lea r8, [r10 + 0x304e0]
lea rdx, [r14 + 8]
mov dword [r14 - 8], eax
mov eax, dword [rbx + 4]
mov r9d, 0x7c
mov dword [r14 - 4], eax
mov eax, dword [rbx + 8]
mov dword [r14], eax
mov eax, dword [rbx + 0xc]
mov dword [r14 + 4], eax
nop dword [rax + rax]
movzx eax, byte [r8]
lea rdx, [rdx + 4]
lea r8, [r8 + 1]
mov ecx, dword [rbx + rax*4]
add ecx, dword [rdx + rsi - 4]
mov dword [rdx - 4], ecx
dec r9
jne 0x1400ad9b0
sub rdi, 0xffffffffffffff80
add rbx, 0x100
add r14, 0x200
sub rsi, 0x200
dec r12
jne 0x1400ad8f0
lea r11, [rsp + 0x200]
mov dword [r10 + 0x3d348], r12d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400af7a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r11, qword [rsp + 0x48]
movzx r10d, word [rcx]
mov ebp, r8d
movzx r8d, word [rcx + 2]
mov eax, r10d
xor r10, 0x7f0
shr rax, 4
shr r10, 4
mov r13, r9
mov r14d, dword [r11 + rax*4]
mov eax, r8d
xor r8, 0x7f0
shr rax, 4
shr r8, 4
mov r15d, edx
mov r12d, dword [r11 + rax*4]
mov eax, dword [r11 + r8*4]
mov rbx, rcx
add eax, dword [r11 + r10*4]
add r12d, dword [r11 + r10*4]
xor r9d, r9d
mov dword [rsp + 0x48], eax
mov rsi, r13
nop dword [rax + rax]
cmp r9d, ebp
jae 0x1400af981
mov r8d, r9d
xor r10d, r10d
or r8d, 8
cmp r8d, 1
je 0x1400af872
lea edi, [r15*8]
mov ecx, r8d
mov eax, r8d
shr r8d, 1
and ecx, 1
shr rax, 1
neg ecx
add rax, rdi
movzx edx, word [rbx + rax*2 + 4]
sar rcx, 4
shr rdx, 4
and ecx, 0x7f
xor rdx, rcx
add r10d, dword [r11 + rdx*4]
cmp r8d, 1
jne 0x1400af841
lea eax, [r10 + r14]
inc r9d
add rsi, 4
mov dword [rsi - 4], eax
cmp r9d, 8
jb 0x1400af820
cmp r9d, 0x10
jae 0x1400af90c
lea r14, [r9*4]
lea esi, [r9 - 8]
add r14, r13
nop
cmp r9d, ebp
jae 0x1400af981
mov r8d, esi
xor r10d, r10d
or r8d, 8
cmp r8d, 1
je 0x1400af8f5
lea edi, [r15*8]
mov ecx, r8d
mov eax, r8d
shr r8d, 1
and ecx, 1
shr rax, 1
neg ecx
add rax, rdi
movzx edx, word [rbx + rax*2 + 0x104]
sar rcx, 4
shr rdx, 4
and ecx, 0x7f
xor rdx, rcx
add r10d, dword [r11 + rdx*4]
cmp r8d, 1
jne 0x1400af8c1
lea eax, [r10 + r12]
inc r9d
add r14, 4
mov dword [r14 - 4], eax
inc esi
cmp r9d, 0x10
jb 0x1400af8a0
cmp r9d, ebp
jae 0x1400af981
lea rdi, [r9*4]
lea r10d, [r9 - 0x10]
add rdi, r13
sub ebp, r9d
mov esi, ebp
mov ebp, dword [rsp + 0x48]
nop dword [rax]
mov eax, r10d
xor r9d, r9d
bts eax, 8
cmp eax, 1
je 0x1400af96e
nop
mov edx, eax
mov ecx, eax
shr eax, 1
and edx, 1
shr rcx, 1
movzx r8d, word [rbx + rcx*2 + 0x204]
neg edx
sar rdx, 4
shr r8, 4
and edx, 0x7f
xor r8, rdx
add r9d, dword [r11 + r8*4]
cmp eax, 1
jne 0x1400af940
lea eax, [r9 + rbp]
add rdi, 4
inc r10d
mov dword [rdi - 4], eax
dec rsi
jne 0x1400af930
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x1400afbf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
mov rbx, rcx
bts edx, 8
nop
mov ecx, edx
mov eax, edx
add edx, edx
shr ecx, 7
shr rax, 8
movzx r10d, word [rbx + rax*2]
and ecx, 1
neg ecx
shr r10, 4
sar rcx, 4
and ecx, 0x7f
xor r10, rcx
add r11d, dword [r8 + r10*4]
cmp edx, 0x10000
jb 0x1400afc00
mov rbx, qword [rsp + 8]
mov eax, r11d
ret
Function at 0x1400afc40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10d, 0x100
xor ebx, ebx
mov r11d, r8d
or edx, r10d
mov rdi, rcx
nop dword [rax + rax]
add r11d, r11d
mov r8d, edx
mov ecx, edx
shr ecx, 7
shr r8d, 8
mov eax, r10d
and ecx, 1
and eax, r11d
add edx, edx
neg ecx
add eax, r10d
sar rcx, 4
add r8d, eax
movzx r8d, word [rdi + r8*2]
and ecx, 0x7f
shr r8, 4
xor r8, rcx
mov ecx, edx
add ebx, dword [r9 + r8*4]
xor ecx, r11d
not ecx
and r10d, ecx
cmp edx, 0x10000
jb 0x1400afc60
mov rdi, qword [rsp + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 8]
ret

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

Disassembly:
xor eax, eax
mov qword [rcx + 0x60], 4
mov dword [rcx + 0x3c], 0x20
mov qword [rcx + 0x70], 1
lea r8, [rcx + 0x8c]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x28], rax
nop dword [rax + rax]
mov edx, eax
mov ecx, eax
inc eax
shr ecx, 1
and edx, 1
lea r8, [r8 + 4]
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [r8 - 4], ecx
cmp eax, 0x100
jb 0x1400b3320
ret
Function at 0x1400c23a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r15
sub rsp, 8
mov r14, rdx
mov r15, rcx
cmp r8, 5
jae 0x1400c23bf
xor eax, eax
add rsp, 8
pop r15
pop r14
ret
mov r9d, dword [rcx + 0x4df8]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov ebp, dword [rcx + 0x4dfc]
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x4df0]
lea rbx, [r8 - 4]
mov qword [rsp + 0x38], rdi
xor r10d, r10d
mov qword [rsp], r12
lea r12, [0x140000000]
add rbx, rdx
nop dword [rax]
lea rax, [r10 + r14]
cmp rax, rbx
jae 0x1400c2423
nop dword [rax]
movzx ecx, byte [rax]
and cl, 0xfe
cmp cl, 0xe8
je 0x1400c2423
inc rax
cmp rax, rbx
jb 0x1400c2410
mov r10, rax
sub r10, r14
cmp rax, rbx
jae 0x1400c2547
mov rcx, r10
sub rcx, rsi
cmp rcx, 3
jbe 0x1400c2460
xor r9d, r9d
movzx edx, byte [rax + 4]
mov rsi, r10
lea ecx, [rdx - 1]
cmp cl, 0xfd
ja 0x1400c24a6
and r9d, 3
add r9d, r9d
or r9d, 1
inc r10
jmp 0x1400c2400
dec ecx
shl r9d, cl
and r9d, 7
je 0x1400c2441
movzx ecx, byte [r9 + r12 + 0x161ad8]
mov rdx, rax
sub rdx, rcx
cmp byte [r9 + r12 + 0x161ad0], 0
movzx ecx, byte [rdx + 4]
je 0x1400c2490
inc cl
test cl, 0xfe
jne 0x1400c2441
and r9d, 3
mov rsi, r10
add r9d, r9d
or r9d, 1
inc r10
jmp 0x1400c2400
movzx ecx, byte [rax + 3]
movzx r8d, dl
shl r8d, 8
or r8d, ecx
movzx ecx, byte [rax + 2]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [rax + 1]
shl r8d, 8
or r8d, ecx
sub r8d, r10d
sub r8d, ebp
test r9d, r9d
je 0x1400c2518
movzx r11d, byte [r9 + r12 + 0x161ad8]
shl r11d, 3
neg r11d
nop word [rax + rax]
lea ecx, [r11 + 0x18]
mov edx, r8d
shr edx, cl
inc dl
test dl, 0xfe
jne 0x1400c2518
lea ecx, [r11 + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor r8d, edx
sub r8d, r10d
sub r8d, ebp
jmp 0x1400c24f0
mov ecx, r8d
mov byte [rax + 1], r8b
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [rax + 4], cl
mov ecx, r8d
shr ecx, 0x10
mov byte [rax + 3], cl
mov ecx, r8d
shr ecx, 8
add r10, 5
mov byte [rax + 2], cl
jmp 0x1400c2400
add dword [r15 + 0x4dfc], r10d
mov r12, qword [rsp]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov qword [r15 + 0x4df0], rsi
mov rsi, qword [rsp + 0x30]
mov dword [r15 + 0x4df8], r9d
mov rax, r10
add rsp, 8
pop r15
pop r14
ret

Function at 0x1400c8d30
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
or rbx, 0xffffffffffffffff
mov rdi, rdx
mov rdx, qword [str.Fatal_Internal_Error_in_libarchive:]
mov r8, rbx
mov esi, ecx
inc r8
cmp byte [rdx + r8], 0
jne 0x1400c8d52
mov ecx, 2
call fcn.1400d0130
inc rbx
cmp byte [rdi + rbx], 0
jne 0x1400c8d66
mov r8, rbx
mov rdx, rdi
mov ecx, 2
call fcn.1400d0130
mov r8d, 1
lea rdx, [0x140162b54]
lea ecx, [r8 + 1]
call fcn.1400d0130
mov ecx, esi
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1400ca670
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.1400ca180
test rax, rax
jne 0x1400ca698
lea rdx, str.Out_of_memory
lea ecx, [rax + 1]
add rsp, 0x28
jmp fcn.1400c8d30
add rsp, 0x28
ret
Function at 0x1400cfa30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rbx, r8
mov rdi, rdx
cmp r8, rax
cmova rbx, rax
test ecx, ecx
jns 0x1400cfa6b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
jne 0x1400cfa7d
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1400cfb07
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xe8
jne 0x1400cfacc
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0xb
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp eax, 0x6d
je 0x1400cfa70
cmp eax, 5
jne 0x1400cfaf1
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.1400cf660
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400d0130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, 0xffffffff
mov rbx, r8
mov rdi, rdx
cmp r8, rax
cmova rbx, rax
test ecx, ecx
jns 0x1400d016b
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.msvcrt.dll__get_osfhandle]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x1400d01ce
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x1400d01b8
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call fcn.1400cf660
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400d73e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
mov ebp, edx
lea r9, [0x14016a3b0]
mov dword [rcx + rbp*4 + 0x4808], esi
movzx edx, word [rcx]
mov r11, rcx
movzx ecx, word [rcx + 2]
mov eax, edx
xor rdx, 0x7f0
shr rax, 4
shr rdx, 4
lea r12, [r11 + 0x404]
movzx r14d, byte [rax + r9]
movzx r8d, byte [rdx + r9]
mov eax, ecx
shr rax, 4
xor rcx, 0x7f0
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
shr rcx, 4
movzx r13d, byte [rcx + r9]
add r15d, r8d
xor r9d, r9d
imul rax, rbp, 0x440
add r12, rax
add r13d, r8d
test esi, esi
je 0x1400d75da
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x1400d74f0
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x14016a3b0]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x1400d74a0
mov eax, dword [rsp + 0x38]
inc r9d
add rdi, 4
add eax, r10d
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x1400d7478
jmp 0x1400d75d0
cmp r9d, esi
jae 0x1400d75d0
lea rdi, [r12 + r9*4]
lea r14, [0x14016a3b0]
cmp r9d, 0x10
jae 0x1400d756d
xor r10d, r10d
mov r8d, r9d
lea rbx, [rbp*8]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x1400d7520
lea eax, [r10 + r15]
inc r9d
add rdi, 4
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x1400d7504
jmp 0x1400d75d0
cmp r9d, esi
jae 0x1400d75d0
lea rbx, [r12 + r9*4]
nop word [rax + rax]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 1
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x1400d7590
lea eax, [r10 + r13]
inc r9d
add rbx, 4
mov dword [rbx - 4], eax
cmp r9d, esi
jb 0x1400d7580
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret