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

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x28
mov ebp, r9d
mov edi, edx
mov rsi, rcx
test r8, r8
je 0x1400896ba
movzx r15d, word [r8]
test r15w, r15w
je 0x1400896ba
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
xor r13d, r13d
test edx, edx
mov qword [rsp + 0x20], r14
cmovs edi, r13d
test rcx, rcx
je 0x14008963d
cmp word [rcx], r13w
je 0x14008963d
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rcx + rbx*2], r13w
jne 0x140089625
cmp ebx, edi
cmovg ebx, edi
sub edi, ebx
jns 0x140089640
mov edi, r13d
jmp 0x140089640
mov ebx, r13d
call fcn.14008c2f0
lea ecx, [rbx + rdi]
mov edx, ebp
mov r12d, eax
call fcn.14008bf20
mov r14, rax
test r12d, r12d
je 0x140089665
mov ecx, r12d
call fcn.14008c360
mov rsi, rax
mov r12, qword [rsp + 0x58]
test ebx, ebx
je 0x140089683
movsxd rcx, edi
movsxd r8, ebx
mov rdx, rsi
lea rcx, [r14 + rcx*2]
add r8, r8
call sub.msvcrt.dll_memmove
test edi, edi
je 0x140089699
mov edx, edi
mov rdi, r14
movzx eax, r15w
mov ecx, edx
lea r14, [r14 + rdx*2]
rep stosw word [rdi], ax
movsxd rax, ebx
mov rbx, qword [rsp + 0x50]
mov word [r14 + rax*2], r13w
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x60]
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
ret
mov ecx, r9d
add rsp, 0x28
pop r15
pop rdi
pop rsi
pop rbp
jmp fcn.14008c060

Function at 0x140089720
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp edx, 0xd
jne 0x14008976d
mov ebx, IsNetDrive
mov edx, r8d
mov ecx, ebx
call fcn.14008bf20
mov rdx, rdi
mov rcx, rax
call fcn.140103978
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140089750
sub ebx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14008c0a0
cmp edx, 1
je 0x14008978b
cmp edx, 0x18
je 0x14008978b
cmp edx, 3
je 0x140089786
cmp edx, 0x19
je 0x140089786
cmp edx, 0xb
jne 0x14008978e
movzx edi, cx
jmp 0x14008978e
movzx edi, cl
mov ebx, 0x20
mov edx, r8d
mov ecx, ebx
call fcn.14008bf20
lea rdx, [0x140130aa8]
mov r8d, edi
mov rcx, rax
call fcn.140104330
sub ebx, eax
mov ecx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14008c0a0

Function at 0x14008a4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1402c61e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x14008a551
mov r8, qword [0x1402c61d8]
mov rcx, qword [0x1402c2ee4]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402c61e0]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x1402c61d0]
jmp 0x14008a53d
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14008a53a
mov rcx, qword [rbx + 0x10]
add rcx, rdi
call rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14008a528
lea rcx, [0x14008a434]
mov rdx, rdi
call fcn.140103ae8
mov rbx, qword [rsp + 0x30]
lea rax, [rdi + rsi]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008a568
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
mov rdi, rdx
and ecx, 7
je 0x14008a592
mov eax, 8
sub eax, ecx
add ebx, eax
mov rcx, qword [0x1402c61d8]
test rcx, rcx
jne 0x14008a5d5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, qword [0x1402c2ee4]
movsxd r8, ebx
mov edx, 8
mov dword [0x1402c61e0], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1402c61e0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1402c61d8]
mov rsi, rcx
movsxd rax, ebx
add rcx, rax
mov qword [0x1402c61d8], rcx
mov ecx, dword [0x1402c61e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, qword [0x1402c61d8]
mov rcx, qword [0x1402c2ee4]
mov r8, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [0x1402c61e0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
jne 0x14008a629
test rbp, rbp
je 0x14008a650
lea rcx, [0x1402c61d0]
mov edx, 0x28
call fcn.14008b2fc
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbp
test rdi, rdi
je 0x14008a650
lea rcx, [rbx + rsi]
call rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14008b3b0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r8d, r8d
mov edx, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1402c7120], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402bc9c0], eax
call fcn.14008c750
add rsp, 0x28
ret

Function at 0x14008b510
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [0x1402bc9c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14008b5d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008b636
movsxd rax, dword [rsp + 0x20]
add rax, 0xa
mov r8, rax
xor edx, edx
mov rcx, qword [0x1402c7120]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
jmp 0x14008b661
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 [0x1402c7120]
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.14008c3c0
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x14008b710
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008b740
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008b770
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008b7f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1402bc9c0], 0xffffffff
jne 0x14008b81f
call fcn.14008b3b0
mov ecx, dword [0x1402bc9c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14008b7a0]
call fcn.140103ae8
jmp 0x14008b850
mov ecx, dword [0x1402bc9c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14008b850
call fcn.14008c750
mov ecx, dword [0x1402bc9c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x14008b7a0]
call fcn.140103ae8
add rsp, 0x28
ret

Function at 0x14008b8d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008b930
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008bf20
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1402bc9c0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x14008bf50
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 0x14008bfc2
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 [0x1402c7120]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x14008c020
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0x100000
jle 0x14008c020
cmp dword [rsp + 0x20], 0x100000
jge 0x14008bfe3
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 [0x1402c7120]
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 0x14008c060
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008c0a0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008c2f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008c34b
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 0x14008c34b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x14008c34d
xor eax, eax
add rsp, 0x38
ret

Function at 0x14008c360
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008c390
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1402bc9c0]
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 0x14008c750
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, SafeArrayPutElement
xor edx, edx
mov rcx, qword [0x1402c7120]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
mov rcx, qword [0x1402c7120]
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], reloc.WS2_32.dll_recv
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1402bc9c0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x14008c950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
lea rbx, [rcx + 0x588]
lea rsi, [rcx + 0x1c58]
xor edi, edi
lea r14, [rcx + 0x1018]
lea r15, [rcx + 0x1038]
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rsi + 2]
mov r8d, edi
mov r10d, edi
shr rax, 4
and r8d, 1
shr r10d, 1
mov edx, r10d
mov ecx, r8d
add r8d, 2
neg ecx
and edx, 1
shr r10d, 1
shr rcx, 4
lea r9d, [rdx + r8*2]
and r10d, 1
and ecx, 0x7f
inc edi
lea r15, [r15 + 4]
xor rcx, rax
mov eax, edx
lea r14, [r14 + 4]
mov r11d, dword [rbx + rcx*4]
movzx ecx, word [rsi + r8*2]
neg eax
shr rax, 4
shr rcx, 4
and eax, 0x7f
xor rcx, rax
mov eax, r10d
add r11d, dword [rbx + rcx*4]
movzx ecx, word [rsi + r9*2]
neg eax
shr rax, 4
shr rcx, 4
and eax, 0x7f
xor rcx, rax
lea eax, [r10 + r9*2]
add r11d, dword [rbx + rcx*4]
movzx eax, word [rsi + rax*2]
mov edx, eax
shr rax, 4
mov ecx, dword [rbx + rax*4]
xor rdx, 0x7f0
add ecx, r11d
shr rdx, 4
mov dword [r14 - 4], ecx
mov ecx, dword [rbx + rdx*4]
add ecx, r11d
mov dword [r15 - 4], ecx
cmp edi, 8
jb 0x14008c990
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
pop r15
ret
Function at 0x14008ecf0
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
shr 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 0x14008ed10
mov rdi, qword [rsp + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 8]
ret

Function at 0x140090280
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
cmp dword [rcx + 0xcc], 0
mov rbp, rcx
jne 0x1400902ad
call fcn.14008ca60
mov rcx, rbp
call fcn.14008c950
mov ecx, dword [rbp + 0xc4]
mov eax, dword [rbp + 0x48]
mov ebx, 1
dec eax
mov edx, ebx
lea r8, [rbp + 0x22d8]
shl edx, cl
lea r9, [rbp + 0x588]
lea rcx, [rbp + 0x6ad8]
mov dword [rbp + 0xaedc], eax
mov dword [rbp + 0x6ad8], eax
mov dword [rbp + 0xec], IsNetDrive
call fcn.14008e960
mov ecx, dword [rbp + 0xc4]
lea r8, [rbp + 0x26d8]
shl ebx, cl
lea r9, [rbp + 0x588]
lea rcx, [rbp + 0xaedc]
mov edx, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14008e960

Function at 0x140090b80
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
mov rbx, r9
mov rdi, r8
mov ebp, edx
mov rsi, rcx
xor r11d, r11d
mov r9d, r11d
mov r10d, r11d
add r11d, 2
shr r9d, 2
shr r10d, 1
lea rdi, [rdi + 8]
lea eax, [r9 + 2]
mov ecx, r10d
movzx edx, word [rsi + rax*2]
movzx eax, word [rsi + 2]
and ecx, 1
neg ecx
shr rdx, 4
shr rax, 4
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
mov ecx, r9d
mov r8d, dword [rbx + rdx*4]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rcx, rax
lea eax, [r10 + 4]
add r8d, dword [rbx + rcx*4]
movzx eax, word [rsi + rax*2]
add r8d, ebp
mov edx, eax
shr rax, 4
mov ecx, dword [rbx + rax*4]
xor rdx, 0x7f0
add ecx, r8d
shr rdx, 4
mov dword [rdi - 8], ecx
mov ecx, dword [rbx + rdx*4]
add ecx, r8d
mov dword [rdi - 4], ecx
cmp r11d, 8
jb 0x140090ba2
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x1400932b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov qword [rcx + 0x480], 0xffffffffffffffff
mov dword [rcx + 0x3c], 0x20
mov byte [rcx + 0x21], 1
mov dword [rcx + 0x5c], 4
lea r8, [rcx + 0x78]
mov qword [rcx + 0x40], rdx
mov word [rcx + 0x22], dx
mov qword [rcx + 0x28], rdx
nop
mov ecx, edx
mov eax, edx
inc edx
shr eax, 1
and ecx, 1
lea r8, [r8 + 4]
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x1400932e0
ret
Function at 0x140099490
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
mov r11d, edx
mov r10, rcx
mov r8d, 0x80000000
test rcx, rcx
je 0x1400994ff
mov qword [rsp], rbx
lea rbx, [0x140133e50]
test r10b, 1
je 0x1400994f3
mov ecx, r11d
mov eax, r8d
mov edx, 0x80000000
and ecx, 0x1f
xor r8d, r8d
mov r9d, dword [rbx + rcx*4]
nop dword [rax + rax]
test r9d, edx
je 0x1400994e0
lea ecx, [rdx - 1]
xor r8d, eax
test r9d, ecx
je 0x1400994f3
shr edx, 1
test al, 1
je 0x1400994ef
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400994d0
shr eax, 1
jmp 0x1400994d0
inc r11d
sar r10, 1
jne 0x1400994b0
mov rbx, qword [rsp]
mov eax, r8d
add rsp, 8
ret
Function at 0x1400a2fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r15
sub rsp, 8
mov r14, rdx
mov r15, rcx
cmp r8, 5
jae 0x1400a2fef
xor eax, eax
add rsp, 8
pop r15
pop r14
ret
mov r9d, dword [rcx + 0x4e00]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov ebp, dword [rcx + 0x4e04]
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x4df8]
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 0x1400a3053
nop dword [rax]
movzx ecx, byte [rax]
and cl, 0xfe
cmp cl, 0xe8
je 0x1400a3053
inc rax
cmp rax, rbx
jb 0x1400a3040
mov r10, rax
sub r10, r14
cmp rax, rbx
jae 0x1400a3177
mov rcx, r10
sub rcx, rsi
cmp rcx, 3
jbe 0x1400a3090
xor r9d, r9d
movzx edx, byte [rax + 4]
mov rsi, r10
lea ecx, [rdx - 1]
cmp cl, 0xfd
ja 0x1400a30d6
and r9d, 3
add r9d, r9d
or r9d, 1
inc r10
jmp 0x1400a3030
dec ecx
shl r9d, cl
and r9d, 7
je 0x1400a3071
movzx ecx, byte [r9 + r12 + 0x1347b8]
mov rdx, rax
sub rdx, rcx
cmp byte [r9 + r12 + 0x1347b0], 0
movzx ecx, byte [rdx + 4]
je 0x1400a30c0
inc cl
test cl, 0xfe
jne 0x1400a3071
and r9d, 3
mov rsi, r10
add r9d, r9d
or r9d, 1
inc r10
jmp 0x1400a3030
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 0x1400a3148
movzx r11d, byte [r9 + r12 + 0x1347b8]
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 0x1400a3148
lea ecx, [r11 + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor r8d, edx
sub r8d, r10d
sub r8d, ebp
jmp 0x1400a3120
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 0x1400a3030
add dword [r15 + 0x4e04], r10d
mov r12, qword [rsp]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov qword [r15 + 0x4df8], rsi
mov rsi, qword [rsp + 0x30]
mov dword [r15 + 0x4e00], r9d
mov rax, r10
add rsp, 8
pop r15
pop r14
ret

Function at 0x1400a9ce0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, 0x24
mov rbx, rdx
mov edi, ecx
lea ecx, [r8 - 0x22]
lea rdx, str.Fatal_Internal_Error_in_libarchive:
call fcn.1400b1150
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1400a9d10
mov rdx, rbx
mov ecx, 2
call fcn.1400b1150
mov r8d, 1
lea rdx, [0x140135b24]
lea ecx, [r8 + 1]
call fcn.1400b1150
mov ecx, edi
call qword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x1400ab5f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.1400ab0f0
test rax, rax
jne 0x1400ab618
lea rdx, str.Out_of_memory
lea ecx, [rax + 1]
add rsp, 0x28
jmp fcn.1400a9ce0
add rsp, 0x28
ret
Function at 0x1400b0a50
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 0x1400b0a8b
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 0x1400b0a9d
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 0x1400b0b27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x1400b0aec
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], reloc.WS2_32.dll_inet_addr
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp eax, 0x6d
je 0x1400b0a90
cmp eax, 5
jne 0x1400b0b11
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.1400b0690
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 0x1400b1150
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 0x1400b118b
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 0x1400b11ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400b11d8
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.1400b0690
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