joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004f2e0
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 0x18004f320
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180190540]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004f35e
cmp rsi, r14
jb 0x18004f356
cmp rsi, r15
jae 0x18004f356
cmp qword [rsi + 8], 0
jne 0x18004f527
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18004f341
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 0x18004f3f2
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 0x18004f3e9
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 0x18004f3e9
cmp dword [rsp + 0x70], 0x10000
je 0x18004f46b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18004f3e9
sub rbx, rbp
cmp rbx, r14
jae 0x18004f3b0
test rsi, rsi
jne 0x18004f4d0
cmp rdi, r15
ja 0x18004f50f
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 0x18004f50f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004f50f
cmp dword [rsp + 0x70], 0x10000
je 0x18004f4a1
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 0x18004f422
jmp 0x18004f50f
test rbx, rbx
je 0x18004f3e9
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 0x18004f4d0
cmp rbx, r14
jae 0x18004f390
jmp 0x18004f3f2
test rdi, rdi
je 0x18004f50f
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 0x18004f4d0
cmp rdi, r15
jbe 0x18004f400
jmp 0x18004f50f
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 0x18004f4e0
mov rax, qword [0x180190540]
mov qword [rsi], rax
mov qword [0x180190540], 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 0x18004ff10
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 [0x180179040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18005003b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180050032
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180050014
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180050014
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180050014
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18004ffd2
mov rcx, qword [0x18018fa38]
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 0x180050032
jmp 0x180050007
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180050007
mov rcx, qword [0x18018fa38]
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 0x180050032
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 0x18004ff80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180050093
cmp dword [rbx + 0xc], esi
jbe 0x180050093
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18005008c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18004fd60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180050050
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800d9120
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 0x1800500c0
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 [0x180190530]
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 0x180050124
mov eax, 0xa
jmp 0x1800501b7
test esi, esi
je 0x180050146
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 0x180050169
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180050169
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180050162
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180050169
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 0x1800501d0
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 [0x18019053c]
mov ebx, edi
test ecx, ecx
je 0x18005030b
mov rax, qword [0x180190530]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180050228
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180050200
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18005030b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18004ff10
mov r8d, dword [0x18019053c]
cmp ebx, r8d
jae 0x180050298
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180190530]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180050291
mov edx, esi
mov ecx, ebx
call fcn.1800500c0
mov edi, eax
test eax, eax
jne 0x180050298
mov r8d, dword [0x18019053c]
inc ebx
cmp ebx, r8d
jb 0x180050260
cmp qword [rsp + 0x20], 0
je 0x18005030b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800502f7
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 0x1800502e8
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 0x1800502c0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018fa38]
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 0x180050620
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 [0x18018f9d4], edi
je 0x180050669
cmp rbx, 0x20
jae 0x180050652
xor ecx, ecx
jmp 0x180050654
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18018f9d4], edi
jne 0x180050648
cmp qword [0x18018fa38], r14
mov qword [rsp + 0x60], r13
je 0x1800507fb
mov ecx, dword [0x18019053c]
mov ebx, r15d
test ecx, ecx
je 0x1800506a1
mov rdx, qword [0x180190530]
mov rax, rdx
cmp qword [rax], r14
je 0x1800506ac
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180050692
mov r14d, 4
jmp 0x180050801
cmp ebx, 0xffffffff
je 0x1800506a1
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x180050760
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004ff10
xor edx, edx
mov ecx, ebx
call fcn.1800500c0
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x180050750
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18005073c
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 0x180050728
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 0x180050700
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018fa38]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x180050801
mov rdx, qword [0x180190530]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18004f540
mov edx, dword [0x18019053c]
dec edx
cmp ebx, edx
jae 0x1800507af
mov eax, edx
imul rcx, rax, 0x38
mov rax, qword [0x180190530]
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 [0x180190538]
mov eax, ecx
mov dword [0x18019053c], edx
shr eax, 1
cmp eax, 0x20
jb 0x180050801
cmp eax, edx
jb 0x180050801
mov r8, qword [0x180190530]
mov eax, ecx
mov rcx, qword [0x18018fa38]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x180050801
shr dword [0x180190538], 1
mov qword [0x180190530], rax
jmp 0x180050801
mov r14d, 2
xchg dword [0x18018f9d4], 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 0x180050820
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 [0x18018f9d4], ebp
je 0x180050877
cmp rbx, 0x20
jae 0x180050860
xor ecx, ecx
jmp 0x180050862
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18018f9d4], ebp
jne 0x180050856
cmp qword [0x18018fa38], r15
je 0x180050971
test rdi, rdi
jne 0x180050897
mov ecx, esi
call fcn.1800501d0
mov ebp, eax
jmp 0x180050976
mov ecx, dword [0x18019053c]
mov ebx, r15d
test ecx, ecx
je 0x1800508bf
mov r8, qword [0x180190530]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1800508c9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800508b0
mov ebp, 4
jmp 0x180050976
cmp ebx, 0xffffffff
je 0x1800508bf
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180050968
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18004ff10
mov edx, esi
mov ecx, ebx
call fcn.1800500c0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180050976
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180050952
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 0x180050948
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 0x180050920
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18018fa38]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180050976
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180050976
mov ebp, 2
xchg dword [0x18018f9d4], 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 0x180053de0
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180179040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov edi, edx
mov rbx, rcx
test edx, edx
jne 0x180053e08
call fcn.180053c10
mov r8, rsi
mov edx, edi
mov rcx, rbx
call fcn.1800d99c0
test eax, eax
je 0x180053ed0
cmp edi, 1
jne 0x180053f14
xor ecx, ecx
call fcn.180075310
mov qword [0x18018fcd8], rax
test rax, rax
je 0x180053ed0
movabs rax, 0x4395248dc38f351f
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x60fbcf329a20cbbf
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0xd5a3a91bc4c02e6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0xa55d2bc86923f5a4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
call fcn.180053f20
mov rcx, rax
call fcn.180075310
test rax, rax
je 0x180053ed0
mov rcx, rbx
mov qword [0x18018fce0], rbx
call fcn.1800512e0
test al, al
jne 0x180053ee7
call fcn.180053c10
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800d9120
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
lea r8, [0x180053d90]
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 0x180053f14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180053ed2
Function at 0x180058880
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 [0x18018fe50]
mov rbx, rdx
movzx eax, word [rcx + 0x50]
cmp eax, 0xffff
je 0x180058926
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 0x180058919
mov r9, qword [r10]
mov r8, rbp
mov rax, r9
cmp byte [r9], 0
je 0x1800588e8
nop
inc rax
cmp byte [rax], 0
jne 0x1800588e0
mov edx, 0
sub rax, r9
je 0x180058914
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r9 + rdx]
inc rdx
xor r8, rcx
imul r8, rsi
cmp rdx, rax
jb 0x180058900
cmp r8, rbx
je 0x18005893d
movzx eax, word [rdi + r11*8 + 0xa]
cmp eax, 0xffff
jne 0x1800588c1
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 0x180058928
Function at 0x180060660
Capabilities:
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x180179040]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.180075310
mov rcx, rax
test rax, rax
je 0x180060897
movabs rax, 0xbc6cc474730f26ac
mov qword [rsp + 0xe8], rbx
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x29]
mov rax, qword [rbp - 0x49]
movabs rbx, 0xd225a100126a54ef
mov qword [rbp - 0x29], rax
movabs rax, 0x580780d8bcf22738
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, 0x5862e3b9da80424c
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.1800755f0
mov rcx, rax
test rax, rax
jne 0x18006087f
mov dl, 3
call fcn.180073f60
movabs rax, 0xa605c5657e033589
lea rdx, [rbp - 0x19]
mov qword [rbp - 0x49], rax
movabs rcx, 0xd4f54a45ee315e80
mov rax, qword [rbp - 0x49]
mov r8d, edx
mov qword [rbp - 0x19], rax
movabs rax, 0x1b40c3cdbfe76223
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x11], rax
movabs rax, 0xdfdf767b40077d63
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 9], rax
movabs rax, 0xb6966374115fc4eb
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 1], rax
movabs rax, 0x12883a9976461212
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, 0xabb13f1e34661811
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x27], rax
movabs rax, 0x96b406177039b68e
mov qword [rbp - 0x49], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp + 0x2f], rax
movabs rax, 0x12fb49fc04227673
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 0x18006085b
nop word [rax + rax]
inc rax
mov r8, rax
cmp byte [rax], 0
jne 0x180060850
mov rcx, qword [0x18018e560]
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 0x180060887
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.1800d9120
add rsp, 0xd0
pop rbp
ret
Function at 0x18006b0f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x180179040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [0x18018fc78]
mov rbx, rcx
mov rcx, qword [0x18018fc80]
cmp rax, rcx
je 0x18006b13c
cmp qword [rax], rbx
je 0x18006b12f
add rax, 0x10
cmp rax, rcx
jne 0x18006b121
cmp rax, rcx
je 0x18006b13c
mov eax, dword [rax + 8]
jmp 0x18006b31b
mov dl, 3
mov qword [rsp + 0xc8], rdi
call fcn.180073f60
mov rdi, rax
lea rdx, [rsp + 0x40]
movabs rax, 0xa605c5657e033589
mov r8d, edx
mov qword [rsp + 0x30], rax
movabs rax, 0x374287d7b3e66223
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xc4d71f6a51157e77
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rax
movabs rax, 0xb6d06a72195f96fc
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, 0x619a21dc6c561f04
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
movabs rax, 0xd4f54a45ee1164e8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x68], rax
movabs rax, 0xd225a100126a54ef
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
movabs rax, 0x5862e3b9da80424c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x78], rax
movabs rax, 0xabb13f1e34661811
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x80], rax
movabs rax, 0x96b406177039b68e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
movabs rax, 0x12fb49fc04227673
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x90], rax
movabs rax, 0xd4f54a45ee315e80
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 0x18006b2e0
inc rcx
mov r8, rcx
cmp byte [rcx], 0
jne 0x18006b2d5
mov rcx, qword [0x18018e560]
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.18006b380
mov rdi, qword [rsp + 0xc8]
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800d9120
add rsp, 0xb0
pop rbx
ret
Function at 0x18006b380
Capabilities:
Encrypt data using rc4 ksa
Write file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x180179040]
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 0x18006b3bf
lea r8d, [rax + 6]
lea r11, [0x1801615f0]
jmp 0x18006b3e1
test dl, 0x10
je 0x18006b3cc
mov r8d, 8
jmp 0x18006b3e1
mov r8, rax
test dl, 0x20
je 0x18006b3e4
mov r8d, 2
lea r11, [0x1801615f4]
mov eax, r8d
mov byte [rsp + 0x72], 0
lea rcx, [rsp + 0x72]
test r9, r9
jne 0x18006b402
lea rcx, [rsp + 0x71]
mov byte [rsp + 0x71], 0x30
jmp 0x18006b54f
lea r10, [0x180000000]
cmp eax, 0xa
jne 0x18006b4b3
cmp r9, 0x64
jb 0x18006b479
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 + 0x12bb21]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [r10 + r9*2 + 0x12bb20]
mov r9, r8
mov byte [rcx], al
cmp r8, 0x64
jae 0x18006b430
mov rdi, qword [rsp + 0xa0]
dec rcx
mov rdx, rcx
cmp r9, 0xa
jae 0x18006b495
movzx eax, byte [r9 + r10 + 0x161228]
mov byte [rcx], al
jmp 0x18006b54f
movzx eax, byte [r10 + r9*2 + 0x12bb20]
dec rcx
mov byte [rcx], al
movzx eax, byte [r10 + r9*2 + 0x12bb21]
mov byte [rdx], al
jmp 0x18006b54f
cmp eax, 0x10
jne 0x18006b531
cmp r9, 0x100
jb 0x18006b4fd
nop dword [rax]
nop word [rax + rax]
movzx eax, r9b
shr r9, 8
lea rdx, [rax*2 + 0x12b910]
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 0x18006b4d0
dec rcx
mov rdx, rcx
cmp r9, 0x10
jae 0x18006b516
movzx eax, byte [r9 + r10 + 0x161228]
mov byte [rcx], al
jmp 0x18006b54f
movzx eax, byte [r10 + r9*2 + 0x12b910]
dec rcx
mov byte [rcx], al
movzx eax, byte [r10 + r9*2 + 0x12b911]
mov byte [rdx], al
jmp 0x18006b54f
xor edx, edx
mov rax, r9
div r8
dec rcx
mov r9, rax
movzx eax, byte [rdx + r10 + 0x161228]
mov byte [rcx], al
test r9, r9
jne 0x18006b531
test r11, r11
je 0x18006b56c
test byte [rbx + 8], 2
je 0x18006b56c
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 [0x18018e560]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800d9120
add rsp, 0x90
pop rbx
ret