joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180050a30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18017fe70]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180050a94
mov eax, 0xa
jmp 0x180050b27
test esi, esi
je 0x180050ab6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180050ad9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180050ad9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180050ad2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180050ad9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180050b40
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18017fe7c]
mov ebx, edi
test ecx, ecx
je 0x180050c7b
mov rax, qword [0x18017fe70]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180050b98
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180050b70
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180050c7b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180050880
mov r8d, dword [0x18017fe7c]
cmp ebx, r8d
jae 0x180050c08
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18017fe70]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180050c01
mov edx, esi
mov ecx, ebx
call fcn.180050a30
mov edi, eax
test eax, eax
jne 0x180050c08
mov r8d, dword [0x18017fe7c]
inc ebx
cmp ebx, r8d
jb 0x180050bd0
cmp qword [rsp + 0x20], 0
je 0x180050c7b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180050c67
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180050c58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180050c30
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18017f3f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180050f90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov r14d, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x18017f3e8], edi
je 0x180050fd9
cmp rbx, 0x20
jae 0x180050fc2
xor ecx, ecx
jmp 0x180050fc4
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18017f3e8], edi
jne 0x180050fb8
cmp qword [0x18017f3f0], r14
mov qword [rsp + 0x60], r13
je 0x18005116b
mov ecx, dword [0x18017fe7c]
mov ebx, r15d
test ecx, ecx
je 0x180051011
mov rdx, qword [0x18017fe70]
mov rax, rdx
cmp qword [rax], r14
je 0x18005101c
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180051002
mov r14d, 4
jmp 0x180051171
cmp ebx, 0xffffffff
je 0x180051011
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x1800510d0
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180050880
xor edx, edx
mov ecx, ebx
call fcn.180050a30
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x1800510c0
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800510ac
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, eax
mov qword [rsp + 0x58], rsi
nop
mov r8d, dword [rdi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180051098
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rbp, 1
jne 0x180051070
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18017f3f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180051171
mov rdx, qword [0x18017fe70]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18004feb0
mov edx, dword [0x18017fe7c]
dec edx
cmp ebx, edx
jae 0x18005111f
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x18017fe70]
movups xmm0, xmmword [rcx + rax]
movups xmmword [rax + r13], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rax + r13 + 0x10], xmm1
movups xmm0, xmmword [rcx + rax + 0x20]
movups xmmword [rax + r13 + 0x20], xmm0
movsd xmm1, qword [rcx + rax + 0x30]
movsd qword [rax + r13 + 0x30], xmm1
mov ecx, dword [0x18017fe78]
mov eax, ecx
mov dword [0x18017fe7c], edx
shr eax, 1
cmp eax, 0x20
jb 0x180051171
cmp eax, edx
jb 0x180051171
mov r8, qword [0x18017fe70]
mov eax, ecx
mov rcx, qword [0x18017f3f0]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180051171
shr dword [0x18017fe78], 1
mov qword [0x18017fe70], rax
jmp 0x180051171
mov r14d, 2
xchg dword [0x18017f3e8], r15d
mov r13, qword [rsp + 0x60]
mov eax, r14d
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x180051190
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18017f3e8], ebp
je 0x1800511e7
cmp rbx, 0x20
jae 0x1800511d0
xor ecx, ecx
jmp 0x1800511d2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18017f3e8], ebp
jne 0x1800511c6
cmp qword [0x18017f3f0], r15
je 0x1800512e1
test rdi, rdi
jne 0x180051207
mov ecx, esi
call fcn.180050b40
mov ebp, eax
jmp 0x1800512e6
mov ecx, dword [0x18017fe7c]
mov ebx, r15d
test ecx, ecx
je 0x18005122f
mov r8, qword [0x18017fe70]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180051239
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180051220
mov ebp, 4
jmp 0x1800512e6
cmp ebx, 0xffffffff
je 0x18005122f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800512d8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180050880
mov edx, esi
mov ecx, ebx
call fcn.180050a30
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x1800512e6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800512c2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800512b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180051290
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18017f3f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800512e6
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x1800512e6
mov ebp, 2
xchg dword [0x18017f3e8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x180054c90
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18017d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov edi, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test edi, edi
jne 0x180054cbe
call fcn.180054ac0
mov r8, rsi
mov edx, edi
mov rcx, rbx
call fcn.1800dcd50
test eax, eax
je 0x180054d86
cmp edi, 1
jne 0x180054dca
xor ecx, ecx
call fcn.180078ad0
mov qword [0x18017f6a0], rax
test rax, rax
je 0x180054d86
movabs rax, 0x321f9776602709b5
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0xf946cb717d5f8ab9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0x6cf82642d7ebbe48
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0x57729cc38e7b7c06
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
call fcn.180054de0
mov rcx, rax
call fcn.180078ad0
test rax, rax
je 0x180054d86
mov rcx, rbx
mov qword [0x18017f6a8], rbx
call fcn.180051e90
test al, al
jne 0x180054d9d
call fcn.180054ac0
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800dc8e0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
lea r8, [0x180054c40]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180054dca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180054d88
Function at 0x180059a80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rcx, qword [0x18017f810]
mov rbx, rdx
movzx eax, word [rcx + 0x50]
cmp eax, 0xffff
je 0x180059b26
mov rdi, qword [rcx + 0x40]
movabs rbp, 0xcbf29ce484222325
movabs rsi, 0x100000001b3
mov r11d, eax
add r11, r11
mov r10, qword [rdi + r11*8]
test r10, r10
je 0x180059b19
mov r9, qword [r10]
mov r8, rbp
mov rax, r9
cmp byte [r9], 0
je 0x180059ae8
nop
inc rax
cmp byte [rax], 0
jne 0x180059ae0
mov edx, 0
sub rax, r9
je 0x180059b14
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [rdx + r9]
inc rdx
xor r8, rcx
imul r8, rsi
cmp rdx, rax
jb 0x180059b00
cmp r8, rbx
je 0x180059b3d
movzx eax, word [rdi + r11*8 + 0xa]
cmp eax, 0xffff
jne 0x180059ac1
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, r10
jmp 0x180059b28
Function at 0x180061890
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x18017d040]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.180078ad0
mov rcx, rax
test rax, rax
je 0x180061ac7
movabs rax, 0x5c25f27401237b98
mov qword [rsp + 0xe8], rbx
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
mov rax, qword [rbp - 0x49]
movabs rbx, 0x326c9700604609db
mov qword [rbp - 0x29], rax
movabs rax, 0xf946a8641b5eefb4
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x49], rbx
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x39], rax
mov qword [rsp + 0xf0], rdi
movabs rdi, 0xf923cb057d2c8ac0
mov qword [rbp - 0x49], rdi
mov rax, qword [rbp - 0x49]
movdqa xmm0, xmmword [rbp - 0x29]
mov qword [rbp - 0x31], rax
xorps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x29], xmm0
call fcn.180078db0
mov rcx, rax
test rax, rax
jne 0x180061aaf
mov dl, 3
call fcn.180077720
movabs rax, 0x464cf3650c2f68bd
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x49], rax
movabs rcx, 0x452507117ad0c874
mov rax, qword [rbp - 0x49]
mov r8d, edx
mov qword [rbp - 0x19], rax
movabs rax, 0xba01eb71184baaaf
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x11], rax
movabs rax, 0x18fa6f43a3a4db57
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 9], rax
movabs rax, 0x7750f9a0ef1d0e0f
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 1], rax
movabs rax, 0xfad370a9c42b968e
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 7], rax
mov qword [rbp - 0x49], rcx
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x49], rbx
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x49], rdi
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x1f], rax
movabs rax, 0x6c942626d7c5be25
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x27], rax
movabs rax, 0x57729cc38e7b7c6a
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x2f], rax
movabs rax, 0xfaa003ccb64ff2ef
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x37], rax
mov qword [rbp - 0x49], rcx
mov rax, qword [rbp - 0x49]
movdqa xmm2, xmmword [rbp - 0x19]
xorps xmm2, xmmword [rbp + 0x17]
movdqa xmm0, xmmword [rbp - 9]
movq rcx, xmm2
movdqa xmm1, xmmword [rbp + 7]
xorps xmm0, xmmword [rbp + 0x27]
mov qword [rbp + 0x3f], rax
lea rax, [rbp - 0x19]
xorps xmm1, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 0x19], xmm2
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp + 7], xmm1
test cl, cl
je 0x180061a8b
nop word [rax + rax]
inc rax
mov r8, rax
cmp byte [rax], 0
jne 0x180061a80
mov rcx, qword [0x18017ded8]
sub r8d, edx
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
jmp 0x180061ab7
mov eax, dword [rax + 3]
mov rax, qword [rax + rcx + 7]
mov rbx, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800dc8e0
add rsp, 0xd0
pop rbp
ret
Function at 0x18006d500
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x18017d040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [0x18017f628]
mov rbx, rcx
mov rcx, qword [0x18017f630]
cmp rax, rcx
je 0x18006d54c
cmp qword [rax], rbx
je 0x18006d53f
add rax, 0x10
cmp rax, rcx
jne 0x18006d531
cmp rax, rcx
je 0x18006d54c
mov eax, dword [rax + 8]
jmp 0x18006d72b
mov dl, 3
mov qword [rsp + 0xc8], rdi
call fcn.180077720
mov rdi, rax
lea rdx, [rsp + 0x40]
movabs rax, 0x464cf3650c2f68bd
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0x9603af6b144aaaaf
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x3f20652b2b6d843
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x7716f0a6e71d5c18
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
movabs rax, 0x89c16becde3b9b98
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
movabs rax, 0x452507117af0f21c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
movabs rax, 0x326c9700604609db
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
movabs rax, 0xf923cb057d2c8ac0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movabs rax, 0x6c942626d7c5be25
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
movabs rax, 0x57729cc38e7b7c6a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
movabs rax, 0xfaa003ccb64ff2ef
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
movabs rax, 0x452507117ad0c874
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movdqa xmm2, xmmword [rsp + 0x40]
xorps xmm2, xmmword [rsp + 0x70]
movdqa xmm0, xmmword [rsp + 0x50]
movdqa xmm1, xmmword [rsp + 0x60]
xorps xmm0, xmmword [rsp + 0x80]
mov qword [rsp + 0x98], rax
movq rax, xmm2
xorps xmm1, xmmword [rsp + 0x90]
movdqa xmmword [rsp + 0x40], xmm2
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmmword [rsp + 0x60], xmm1
test al, al
je 0x18006d6f0
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18006d6e5
mov rcx, qword [0x18017ded8]
sub r8d, edx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
or word [rdi + 8], 6
mov rdx, rbx
mov rcx, rdi
call fcn.18006d790
mov rdi, qword [rsp + 0xc8]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800dc8e0
add rsp, 0xb0
pop rbx
ret
Function at 0x18006d790
Capabilities:
Encrypt data using rc4 ksa
Write file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x18017d040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r9, rdx
xor r11d, r11d
movzx edx, word [rcx + 8]
mov rbx, rcx
mov eax, 0xa
test dl, 4
je 0x18006d7cf
lea r8d, [rax + 6]
lea r11, [0x180164970]
jmp 0x18006d7f1
test dl, 0x10
je 0x18006d7dc
mov r8d, 8
jmp 0x18006d7f1
mov r8, rax
test dl, 0x20
je 0x18006d7f4
mov r8d, 2
lea r11, [0x180164974]
mov eax, r8d
mov byte [rsp + 0x72], 0
lea rcx, [rsp + 0x72]
test r9, r9
jne 0x18006d812
lea rcx, [rsp + 0x71]
mov byte [rsp + 0x71], 0x30
jmp 0x18006d95f
lea r10, [0x180000000]
cmp eax, 0xa
jne 0x18006d8c3
cmp r9, 0x64
jb 0x18006d889
mov qword [rsp + 0xa0], rdi
movabs rdi, 0x47ae147ae147ae15
nop word [rax + rax]
mov r8, r9
mov rax, rdi
mul r9
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 6
imul rax, r8, 0x64
sub r9, rax
movzx eax, byte [r10 + r9*2 + 0x12ef11]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [r10 + r9*2 + 0x12ef10]
mov r9, r8
mov byte [rcx], al
cmp r8, 0x64
jae 0x18006d840
mov rdi, qword [rsp + 0xa0]
dec rcx
mov rdx, rcx
cmp r9, 0xa
jae 0x18006d8a5
movzx eax, byte [r9 + r10 + 0x164588]
mov byte [rcx], al
jmp 0x18006d95f
movzx eax, byte [r10 + r9*2 + 0x12ef10]
dec rcx
mov byte [rcx], al
movzx eax, byte [r10 + r9*2 + 0x12ef11]
mov byte [rdx], al
jmp 0x18006d95f
cmp eax, 0x10
jne 0x18006d941
cmp r9, 0x100
jb 0x18006d90d
nop dword [rax]
nop word [rax + rax]
movzx eax, r9b
shr r9, 8
lea rdx, [rax*2 + 0x12ed00]
movzx eax, byte [rdx + r10 + 1]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [rdx + r10]
mov byte [rcx], al
cmp r9, 0x100
jae 0x18006d8e0
dec rcx
mov rdx, rcx
cmp r9, 0x10
jae 0x18006d926
movzx eax, byte [r9 + r10 + 0x164588]
mov byte [rcx], al
jmp 0x18006d95f
movzx eax, byte [r10 + r9*2 + 0x12ed00]
dec rcx
mov byte [rcx], al
movzx eax, byte [r10 + r9*2 + 0x12ed01]
mov byte [rdx], al
jmp 0x18006d95f
xor edx, edx
mov rax, r9
div r8
dec rcx
mov r9, rax
movzx eax, byte [rdx + r10 + 0x164588]
mov byte [rcx], al
test r9, r9
jne 0x18006d941
test r11, r11
je 0x18006d97c
test byte [rbx + 8], 2
je 0x18006d97c
movzx eax, byte [r11 + 1]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [r11]
mov byte [rcx], al
lea r8, [rsp + 0x72]
mov qword [rsp + 0x20], 0
sub r8d, ecx
mov rdx, rcx
mov rcx, qword [0x18017ded8]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800dc8e0
add rsp, 0x90
pop rbx
ret
Function at 0x18006d9c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov r8d, ecx
test r9d, r9d
je 0x18006d9d5
lea eax, [r9 - 2]
cmp eax, 0x22
jbe 0x18006d9d5
mov rax, rdx
ret
mov r11d, r8d
mov byte [rdx + 0x40], 0
mov eax, r8d
shr r11d, 0x1f
neg eax
lea rcx, [rdx + 0x40]
test r11b, r11b
cmovne r8d, eax
test r8d, r8d
jne 0x18006d9ff
dec rcx
mov rax, rcx
mov byte [rcx], 0x30
ret
cmp r9d, 0xa
jne 0x18006da95
lea r9, [0x18012ef10]
cmp r8d, 0x64
jb 0x18006da50
nop word [rax + rax]
mov eax, 0x51eb851f
mul r8d
shr edx, 5
imul eax, edx, 0x64
sub r8d, eax
add r8d, r8d
movzx eax, byte [r8 + r9 + 1]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [r8 + r9]
mov r8d, edx
mov byte [rcx], al
cmp edx, 0x64
jae 0x18006da20
dec rcx
cmp r8d, 0xa
jae 0x18006da6a
mov eax, r8d
lea r10, [0x180164588]
movzx eax, byte [rax + r10]
jmp 0x18006da80
lea eax, [r8 + r8]
mov edx, eax
movzx eax, byte [rax + r9 + 1]
mov byte [rcx], al
dec rcx
movzx eax, byte [rdx + r9]
mov byte [rcx], al
test r11b, r11b
je 0x18006db39
dec rcx
mov rax, rcx
mov byte [rcx], 0x2d
ret
cmp r9d, 0x10
jne 0x18006db10
lea r9, [0x18012ed00]
cmp r8d, 0x100
jb 0x18006dad9
nop dword [rax + rax]
movzx eax, r8b
add eax, eax
shr r8d, 8
mov edx, eax
movzx eax, byte [rax + r9 + 1]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [rdx + r9]
mov byte [rcx], al
cmp r8d, 0x100
jae 0x18006dab0
dec rcx
cmp r8d, 0x10
jae 0x18006daf4
lea r10, [0x180164588]
movzx eax, byte [r8 + r10]
mov byte [rcx], al
mov rax, rcx
ret
lea eax, [r8 + r8]
mov edx, eax
movzx eax, byte [rax + r9 + 1]
mov byte [rcx], al
dec rcx
movzx eax, byte [rdx + r9]
mov byte [rcx], al
mov rax, rcx
ret
lea r10, [0x180164588]
nop word [rax + rax]
xor edx, edx
mov eax, r8d
div r9d
dec rcx
mov r8d, eax
movzx edx, byte [rdx + r10]
mov byte [rcx], dl
test eax, eax
jne 0x18006db20
mov rax, rcx
ret
Function at 0x180073790
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
sub rsp, 0x18
movsxd rsi, dword [rsp + 0x58]
mov r11, rdx
mov qword [rsp + 0x30], rbx
mov r10, rcx
mov qword [rsp + 0x38], rdi
mov rbp, rdx
lea rdi, [r8 - 1]
mov qword [rsp + 0x40], r12
sar rdi, 1
mov rbx, rdx
mov qword [rsp + 8], r14
mov r14, r8
cmp rdx, rdi
jge 0x180073841
mov qword [rsp + 0x10], r13
mov r13d, 0x30
mov qword [rsp], r15
nop word [rax + rax]
lea rdx, [rbx + rbx]
lea rax, [rdx + rdx*2]
lea r8, [r10 + rax*8]
movss xmm0, dword [rsi + r8 + 0x30]
lea rax, [r11 + r11*2]
comiss xmm0, dword [rsi + r8 + 0x18]
seta cl
movzx ebx, cl
xor rbx, 1
inc rbx
add rbx, rdx
mov edx, 0x18
test cl, cl
mov r11, rbx
cmove rdx, r13
movups xmm0, xmmword [rdx + r8]
movups xmmword [r10 + rax*8], xmm0
movsd xmm1, qword [rdx + r8 + 0x10]
movsd qword [r10 + rax*8 + 0x10], xmm1
cmp rbx, rdi
jl 0x1800737e0
mov r15, qword [rsp]
mov r13, qword [rsp + 0x10]
cmp rbx, rdi
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
jne 0x18007387b
test r14b, 1
jne 0x18007387b
lea rax, [r11 + r11*2]
lea rcx, [r14 + r14*2]
movups xmm0, xmmword [r10 + rcx*8 - 0x18]
lea r11, [r14 - 1]
movups xmmword [r10 + rax*8], xmm0
movsd xmm1, qword [r10 + rcx*8 - 8]
movsd qword [r10 + rax*8 + 0x10], xmm1
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x40]
cmp rbp, r11
jge 0x1800738d0
movsxd r8, dword [rsp + 0x60]
nop
lea rcx, [r11 - 1]
sar rcx, 1
lea rdx, [rcx + rcx*2]
lea rax, [rsi + rdx*8]
movss xmm0, dword [rax + r10]
comiss xmm0, dword [r8 + r9]
jbe 0x1800738d0
lea rax, [r11 + r11*2]
mov r11, rcx
movups xmm0, xmmword [r10 + rdx*8]
movups xmmword [r10 + rax*8], xmm0
movsd xmm1, qword [r10 + rdx*8 + 0x10]
movsd qword [r10 + rax*8 + 0x10], xmm1
cmp rbp, rcx
jl 0x180073890
movups xmm0, xmmword [r9]
lea rax, [r11 + r11*2]
movups xmmword [r10 + rax*8], xmm0
movsd xmm1, qword [r9 + 0x10]
movsd qword [r10 + rax*8 + 0x10], xmm1
add rsp, 0x18
pop rsi
pop rbp
ret
Function at 0x180077720
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [0x18017d040]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor esi, esi
movzx ecx, dl
mov word [0x18017e038], si
mov edi, esi
sub ecx, 1
je 0x180077773
sub ecx, 1
je 0x18007776a
cmp ecx, 1
jne 0x18007777a
lea rdi, str._error_
jmp 0x18007777a
lea rdi, str._warning_
jmp 0x18007777a
lea rdi, str._info_
xor ecx, ecx
call fcn.1800e9550
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x38]
call fcn.1800e9548
movzx ebx, byte [0x18017e030]
lea r9, [rsp + 0x38]
lea r8, str._n__d__m__Y__T_
mov edx, 0x20
lea rcx, [rsp + 0x60]
call fcn.18005b300
mov rcx, qword [0x18017ded8]
lea rdx, [rsp + 0x60]
sub rax, rbx
mov qword [rsp + 0x20], rsi
add rdx, rbx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x104
call fcn.180102e10
lea r8, [rsp + 0x80]
test rdi, rdi
je 0x180077822
movzx eax, byte [rdi]
lea r8, [rsp + 0x80]
test al, al
je 0x18007781f
sub rdi, r8
nop
mov byte [r8], al
inc r8
movzx eax, byte [rdi + r8]
test al, al
jne 0x180077810
mov byte [r8], sil
cmp byte [rsp + 0x80], sil
je 0x180077854
mov rcx, qword [0x18017ded8]
lea rax, [rsp + 0x80]
sub r8d, eax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [0x18017e030], sil
lea rax, [0x18017e030]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1800dc8e0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret