joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004efe0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18004f020
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18017ded0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004f05e
cmp rsi, r14
jb 0x18004f056
cmp rsi, r15
jae 0x18004f056
cmp qword [rsi + 8], 0
jne 0x18004f227
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18004f041
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18004f0f2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18004f0e9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004f0e9
cmp dword [rsp + 0x70], 0x10000
je 0x18004f16b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18004f0e9
sub rbx, rbp
cmp rbx, r14
jae 0x18004f0b0
test rsi, rsi
jne 0x18004f1d0
cmp rdi, r15
ja 0x18004f20f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18004f20f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004f20f
cmp dword [rsp + 0x70], 0x10000
je 0x18004f1a1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18004f122
jmp 0x18004f20f
test rbx, rbx
je 0x18004f0e9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18004f1d0
cmp rbx, r14
jae 0x18004f090
jmp 0x18004f0f2
test rdi, rdi
je 0x18004f20f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18004f1d0
cmp rdi, r15
jbe 0x18004f100
jmp 0x18004f20f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18004f1e0
mov rax, qword [0x18017ded0]
mov qword [rsi], rax
mov qword [0x18017ded0], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18004fc30
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18017b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov qword [rcx], rsi
mov rbx, rcx
mov qword [rcx + 8], rsi
xor edx, edx
mov ecx, 4
mov ebp, r8d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18004fd5b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18004fd52
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18004fd34
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18004fd34
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18004fd34
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18004fcf2
mov rcx, qword [0x18017d3f0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18004fd52
jmp 0x18004fd27
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18004fd27
mov rcx, qword [0x18017d3f0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18004fd52
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18004fca0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18004fdb5
cmp dword [rbx + 0xc], esi
jbe 0x18004fdb5
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
mov ecx, 0x5a
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004fdae
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18004fa80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18004fd70
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800db5c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18004fde0
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 [0x18017dec0]
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 0x18004fe44
mov eax, 0xa
jmp 0x18004fed7
test esi, esi
je 0x18004fe66
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 0x18004fe89
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18004fe89
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18004fe82
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18004fe89
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 0x18004fef0
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 [0x18017decc]
mov ebx, edi
test ecx, ecx
je 0x18005002d
mov rax, qword [0x18017dec0]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18004ff48
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18004ff20
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18005002d
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18004fc30
mov r8d, dword [0x18017decc]
cmp ebx, r8d
jae 0x18004ffb8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18017dec0]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18004ffb1
mov edx, esi
mov ecx, ebx
call fcn.18004fde0
mov edi, eax
test eax, eax
jne 0x18004ffb8
mov r8d, dword [0x18017decc]
inc ebx
cmp ebx, r8d
jb 0x18004ff80
cmp qword [rsp + 0x20], 0
je 0x18005002d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180050019
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
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005000a
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 0x18004ffe0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18017d3f0]
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 0x180050330
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, 1
mov ebp, r14d
mov ebx, r14d
xor eax, eax
lock cmpxchg dword [0x18017d3e8], edi
je 0x180050378
cmp rbx, 0x20
jae 0x180050361
xor ecx, ecx
jmp 0x180050363
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18017d3e8], edi
jne 0x180050357
cmp qword [0x18017d3f0], rbp
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r15
je 0x180050508
mov ecx, dword [0x18017decc]
mov ebx, r14d
test ecx, ecx
je 0x1800503b5
mov rdx, qword [0x18017dec0]
mov rax, rdx
cmp qword [rax], rbp
je 0x1800503bf
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800503a6
mov ebp, 4
jmp 0x18005050d
cmp ebx, 0xffffffff
je 0x1800503b5
mov eax, ebx
mov r15d, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18005046c
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004fc30
xor edx, edx
mov ecx, ebx
call fcn.18004fde0
mov ebp, eax
cmp qword [rsp + 0x20], r14
je 0x18005045d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180050449
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rsi
mov esi, eax
nop
mov r8d, dword [rdi]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x18005043a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 4
sub rsi, 1
jne 0x180050410
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18017d3f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x18005050d
mov rdx, qword [0x18017dec0]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18004f240
mov edx, dword [0x18017decc]
dec edx
cmp r15d, edx
jae 0x1800504bc
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x18017dec0]
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 [0x18017dec8]
mov eax, ecx
mov dword [0x18017decc], edx
shr eax, 1
cmp eax, 0x20
jb 0x18005050d
cmp eax, edx
jb 0x18005050d
mov r8, qword [0x18017dec0]
mov eax, ecx
mov rcx, qword [0x18017d3f0]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18005050d
shr dword [0x18017dec8], 1
mov qword [0x18017dec0], rax
jmp 0x18005050d
mov ebp, 2
xchg dword [0x18017d3e8], r14d
mov r15, qword [rsp + 0x60]
mov eax, ebp
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x180050530
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 [0x18017d3e8], ebp
je 0x180050587
cmp rbx, 0x20
jae 0x180050570
xor ecx, ecx
jmp 0x180050572
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18017d3e8], ebp
jne 0x180050566
cmp qword [0x18017d3f0], r15
je 0x180050683
test rdi, rdi
jne 0x1800505a7
mov ecx, esi
call fcn.18004fef0
mov ebp, eax
jmp 0x180050688
mov ecx, dword [0x18017decc]
mov ebx, r15d
test ecx, ecx
je 0x1800505cf
mov r8, qword [0x18017dec0]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800505d9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800505c0
mov ebp, 4
jmp 0x180050688
cmp ebx, 0xffffffff
je 0x1800505cf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18005067a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004fc30
mov edx, esi
mov ecx, ebx
call fcn.18004fde0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180050688
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180050664
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18005065a
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 0x180050630
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18017d3f0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180050688
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180050688
mov ebp, 2
xchg dword [0x18017d3e8], 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 0x1800562e0
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18017b040]
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 0x18005630e
call fcn.180056100
mov r8, rsi
mov edx, edi
mov rcx, rbx
call fcn.1800dbd40
test eax, eax
je 0x1800563cf
cmp edi, 1
jne 0x180056413
xor ecx, ecx
call fcn.1800778b0
mov qword [0x18017d808], rax
test rax, rax
je 0x1800563cf
movabs rax, 0xad83c48852d64d51
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x79462183c18ac8b1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0x9720d15c4249549c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0x8bf433a1c6f45806
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
call fcn.180056420
mov rcx, rax
call fcn.1800778b0
test rax, rax
je 0x1800563cf
mov rcx, rbx
call fcn.1800538a0
test al, al
jne 0x1800563e6
call fcn.180056100
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800db5c0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
lea r8, [0x180056290]
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 0x180056413
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1800563d1
Function at 0x18005a060
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 [0x18017d870]
mov rbx, rdx
movzx eax, word [rcx + 0x50]
cmp eax, 0xffff
je 0x18005a106
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 0x18005a0f9
mov r9, qword [r10]
mov r8, rbp
mov rax, r9
cmp byte [r9], 0
je 0x18005a0c8
nop
inc rax
cmp byte [rax], 0
jne 0x18005a0c0
mov edx, 0
sub rax, r9
je 0x18005a0f4
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r9 + rdx]
inc rdx
xor r8, rcx
imul r8, rsi
cmp rdx, rax
jb 0x18005a0e0
cmp r8, rbx
je 0x18005a11d
movzx eax, word [rdi + r11*8 + 0xa]
cmp eax, 0xffff
jne 0x18005a0a1
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 0x18005a108
Function at 0x180061130
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x18017b040]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.1800778b0
mov rcx, rax
test rax, rax
je 0x180061367
movabs rax, 0xc3b9a18a33d23f7c
mov qword [rsp + 0xe8], rbx
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
mov rax, qword [rbp - 0x49]
movabs rbx, 0xadf0c4fe52b74d3f
mov qword [rbp - 0x29], rax
movabs rax, 0x79464296a78badbc
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, 0x792321f7c1f9c8c8
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.180077b80
mov rcx, rax
test rax, rax
jne 0x18006134f
mov dl, 3
call fcn.180076590
movabs rax, 0xd9d0a09b3ede2c59
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x49], rax
movabs rcx, 0xf5fa90cb6c7b017c
mov rax, qword [rbp - 0x49]
mov r8d, edx
mov qword [rbp - 0x19], rax
movabs rax, 0x3a010183a49ee8a7
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x11], rax
movabs rax, 0xe322985d36063183
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 9], rax
movabs rax, 0xabd656c2a7922a0f
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 1], rax
movabs rax, 0x479e4ac7755159d2
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, 0x974cd138426754f1
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x27], rax
movabs rax, 0x8bf433a1c6f4586a
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x2f], rax
movabs rax, 0x47ed39a207353db3
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 0x18006132b
nop word [rax + rax]
inc rax
mov r8, rax
cmp byte [rax], 0
jne 0x180061320
mov rcx, qword [0x18017bed8]
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 0x180061357
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.1800db5c0
add rsp, 0xd0
pop rbp
ret
Function at 0x18006c2a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x18017b040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [0x18017d628]
mov rbx, rcx
mov rcx, qword [0x18017d630]
cmp rax, rcx
je 0x18006c2ec
cmp qword [rax], rbx
je 0x18006c2df
add rax, 0x10
cmp rax, rcx
jne 0x18006c2d1
cmp rax, rcx
je 0x18006c2ec
mov eax, dword [rax + 8]
jmp 0x18006c4cb
mov dl, 3
mov qword [rsp + 0xc8], rdi
call fcn.180076590
mov rdi, rax
lea rdx, [rsp + 0x40]
movabs rax, 0xa7d35b024c0c0b67
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0x3c00c3e044782d69
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xd2296bd5bd1dfcb5
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0x4595d55d598b32fa
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, 0x1e8edc2b1ce998d2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
movabs rax, 0xcff81662ff3277e2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
movabs rax, 0xd3f33f6720656a01
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
movabs rax, 0x5320a78e2d1e0d06
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movabs rax, 0xbd4f4ba1d86e9ad3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
movabs rax, 0x65f1b93830ed1288
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
movabs rax, 0x6defb40b749df1a5
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
movabs rax, 0xcff81662ff124d8a
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 0x18006c490
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18006c485
mov rcx, qword [0x18017bed8]
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.18006c530
mov rdi, qword [rsp + 0xc8]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800db5c0
add rsp, 0xb0
pop rbx
ret
Function at 0x18006c530
Capabilities:
Encrypt data using rc4 ksa
Write file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x18017b040]
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 0x18006c571
mov r8d, 0x10
lea r11, [0x180162c90]
jmp 0x18006c593
test dl, 0x10
je 0x18006c57e
mov r8d, 8
jmp 0x18006c593
mov r8, rax
test dl, 0x20
je 0x18006c596
mov r8d, 2
lea r11, [0x180162c94]
mov eax, r8d
mov byte [rsp + 0x72], 0
lea rcx, [rsp + 0x72]
test r9, r9
jne 0x18006c5b4
lea rcx, [rsp + 0x71]
mov byte [rsp + 0x71], 0x30
jmp 0x18006c6ff
lea r10, [0x180000000]
cmp eax, 0xa
jne 0x18006c663
cmp r9, 0x64
jb 0x18006c629
mov qword [rsp + 0xa0], rdi
movabs rdi, 0x47ae147ae147ae15
nop dword [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 + 0x12d231]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [r10 + r9*2 + 0x12d230]
mov r9, r8
mov byte [rcx], al
cmp r8, 0x64
jae 0x18006c5e0
mov rdi, qword [rsp + 0xa0]
dec rcx
mov rdx, rcx
cmp r9, 0xa
jae 0x18006c645
movzx eax, byte [r9 + r10 + 0x1628e8]
mov byte [rcx], al
jmp 0x18006c6ff
movzx eax, byte [r10 + r9*2 + 0x12d230]
dec rcx
mov byte [rcx], al
movzx eax, byte [r10 + r9*2 + 0x12d231]
mov byte [rdx], al
jmp 0x18006c6ff
cmp eax, 0x10
jne 0x18006c6e1
cmp r9, 0x100
jb 0x18006c6ad
nop dword [rax]
nop word [rax + rax]
movzx eax, r9b
shr r9, 8
lea rdx, [rax*2 + 0x12d020]
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 0x18006c680
dec rcx
mov rdx, rcx
cmp r9, 0x10
jae 0x18006c6c6
movzx eax, byte [r9 + r10 + 0x1628e8]
mov byte [rcx], al
jmp 0x18006c6ff
movzx eax, byte [r10 + r9*2 + 0x12d020]
dec rcx
mov byte [rcx], al
movzx eax, byte [r10 + r9*2 + 0x12d021]
mov byte [rdx], al
jmp 0x18006c6ff
xor edx, edx
mov rax, r9
div r8
dec rcx
mov r9, rax
movzx eax, byte [rdx + r10 + 0x1628e8]
mov byte [rcx], al
test r9, r9
jne 0x18006c6e1
test r11, r11
je 0x18006c71c
test byte [rbx + 8], 2
je 0x18006c71c
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 [0x18017bed8]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800db5c0
add rsp, 0x90
pop rbx
ret