joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002c690
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 [0x180ea91c0]
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 0x18002c6f4
mov eax, 0xa
jmp 0x18002c787
test esi, esi
je 0x18002c716
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 0x18002c739
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18002c739
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18002c732
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18002c739
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 0x18002c7a0
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 [0x180058a00]
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 sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18002c8ca
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18002c8c1
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18002c8a4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18002c8a4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18002c8a4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18002c862
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180ea8370]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18002c8c1
jmp 0x18002c897
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18002c897
mov rcx, qword [0x180ea8370]
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 0x18002c8c1
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 sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18002c810
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18002c923
cmp dword [rbx + 0xc], esi
jbe 0x18002c923
nop dword [rax]
nop dword [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 0x18002c91c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18002d230
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18002c8e0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180038bf0
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 0x18002c950
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov edi, 1
mov ebp, r15d
mov ebx, r15d
xor eax, eax
lock cmpxchg dword [0x180ea8368], edi
je 0x18002c9a1
nop
cmp rbx, 0x20
jae 0x18002c98a
xor ecx, ecx
jmp 0x18002c98c
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180ea8368], edi
jne 0x18002c980
cmp qword [0x180ea8370], rbp
je 0x18002cacd
mov r8d, dword [0x180ea91cc]
mov ebx, r15d
test r8d, r8d
je 0x18002cad2
mov rdx, qword [0x180ea91c0]
add rdx, 0x20
nop dword [rax]
movzx ecx, byte [rdx]
shr cl, 1
xor cl, byte [rdx]
test cl, 2
jne 0x18002c9ec
inc ebx
add rdx, 0x38
cmp ebx, r8d
jb 0x18002c9d0
jmp 0x18002cad2
cmp ebx, 0xffffffff
je 0x18002cad2
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 2
call fcn.18002c7a0
mov edx, dword [0x180ea91cc]
cmp ebx, edx
jae 0x18002ca61
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180ea91c0]
movzx r8d, byte [rcx + rax + 0x20]
movzx eax, r8b
shr al, 1
xor al, r8b
test al, 2
je 0x18002ca5b
mov edx, r8d
mov ecx, ebx
shr edx, 2
and edx, edi
call fcn.18002c690
mov ebp, eax
test eax, eax
jne 0x18002ca61
mov edx, dword [0x180ea91cc]
inc ebx
cmp ebx, edx
jb 0x18002ca20
cmp qword [rsp + 0x20], r15
je 0x18002cad2
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002cab7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rsi
mov esi, eax
nop dword [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 0x18002caa8
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 0x18002ca80
mov rsi, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180ea8370]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002cad2
mov ebp, 2
xchg dword [0x180ea8368], r15d
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18002ce70
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov r14d, r15d
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x180ea8368], esi
je 0x18002cec1
cmp rbx, 0x20
jae 0x18002ceaa
xor ecx, ecx
jmp 0x18002ceac
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180ea8368], esi
jne 0x18002cea0
cmp qword [0x180ea8370], r14
mov qword [rsp + 0x58], r13
je 0x18002d05d
mov ecx, dword [0x180ea91cc]
mov ebx, r15d
test ecx, ecx
je 0x18002ceff
mov rdx, qword [0x180ea91c0]
mov rax, rdx
nop word [rax + rax]
cmp rdi, qword [rax]
je 0x18002cf0a
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002cef0
mov r14d, 4
jmp 0x18002d063
cmp ebx, 0xffffffff
je 0x18002ceff
mov eax, ebx
imul r13, rax, 0x38
test byte [rdx + r13 + 0x20], 2
je 0x18002cfbb
xor r8d, r8d
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18002c7a0
xor edx, edx
mov ecx, ebx
call fcn.18002c690
mov r14d, eax
cmp qword [rsp + 0x20], r15
je 0x18002cfab
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
je 0x18002cf97
mov rdi, qword [rsp + 0x20]
mov qword [rsp + 0x50], rbp
mov ebp, ecx
nop word [rax + rax]
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 0x18002cf88
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 0x18002cf60
mov rbp, qword [rsp + 0x50]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180ea8370]
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14d, r14d
jne 0x18002d063
mov rdx, qword [0x180ea91c0]
mov rcx, qword [rdx + r13 + 0x10]
call fcn.18002d5b0
mov ecx, dword [0x180ea91cc]
lea eax, [rcx - 1]
cmp ebx, eax
jae 0x18002d00f
imul rcx, rax, 0x38
mov rax, qword [0x180ea91c0]
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 [0x180ea91cc]
mov edx, dword [0x180ea91c8]
dec ecx
mov eax, edx
mov dword [0x180ea91cc], ecx
shr eax, 1
cmp eax, 0x20
jb 0x18002d063
cmp eax, ecx
jb 0x18002d063
mov r8, qword [0x180ea91c0]
mov eax, edx
mov rcx, qword [0x180ea8370]
xor edx, edx
shr rax, 1
imul r9, rax, 0x38
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
test rax, rax
je 0x18002d063
shr dword [0x180ea91c8], 1
mov qword [0x180ea91c0], rax
jmp 0x18002d063
mov r14d, 2
xchg dword [0x180ea8368], r15d
mov r13, qword [rsp + 0x58]
mov eax, r14d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18002d3e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 1
jmp 0x18002d3e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov edi, edx
mov r14d, esi
mov ebx, esi
xor eax, eax
mov rbp, rcx
mov r15d, 1
lock cmpxchg dword [0x180ea8368], r15d
je 0x18002d43a
cmp rbx, 0x20
jae 0x18002d421
xor ecx, ecx
jmp 0x18002d424
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180ea8368], r15d
jne 0x18002d417
cmp qword [0x180ea8370], rsi
je 0x18002d4d5
test rbp, rbp
jne 0x18002d48b
cmp dword [0x180ea91cc], esi
mov r8d, esi
jbe 0x18002d4db
shl dil, 2
nop
mov eax, r8d
inc r8d
imul rdx, rax, 0x38
mov rax, qword [0x180ea91c0]
movzx ecx, byte [rdx + rax + 0x20]
xor cl, dil
and cl, 4
xor byte [rdx + rax + 0x20], cl
cmp r8d, dword [0x180ea91cc]
jb 0x18002d460
jmp 0x18002d4db
mov edx, dword [0x180ea91cc]
mov eax, esi
test edx, edx
je 0x18002d4b0
mov r8, qword [0x180ea91c0]
mov rcx, r8
cmp rbp, qword [rcx]
je 0x18002d4b8
inc eax
add rcx, 0x38
cmp eax, edx
jb 0x18002d4a1
mov r14d, 4
jmp 0x18002d4db
cmp eax, 0xffffffff
je 0x18002d4b0
shl dil, 2
imul rcx, rax, 0x38
xor dil, byte [rcx + r8 + 0x20]
and dil, 4
xor byte [rcx + r8 + 0x20], dil
jmp 0x18002d4db
mov r14d, 2
xchg dword [0x180ea8368], esi
mov rsi, qword [rsp + 0x50]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x18002d500
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18002d56f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x18002d558
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002d54c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x18002d520
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180ea8370]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18002d630
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 0x18002d670
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180ea91b8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18002d6ae
cmp rsi, r14
jb 0x18002d6a6
cmp rsi, r15
jae 0x18002d6a6
cmp qword [rsi + 8], 0
jne 0x18002d877
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18002d691
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 0x18002d742
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 0x18002d739
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 0x18002d739
cmp dword [rsp + 0x70], 0x10000
je 0x18002d7bb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18002d739
sub rbx, rbp
cmp rbx, r14
jae 0x18002d700
test rsi, rsi
jne 0x18002d820
cmp rdi, r15
ja 0x18002d85f
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 0x18002d85f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002d85f
cmp dword [rsp + 0x70], 0x10000
je 0x18002d7f1
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 0x18002d772
jmp 0x18002d85f
test rbx, rbx
je 0x18002d739
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 0x18002d820
cmp rbx, r14
jae 0x18002d6e0
jmp 0x18002d742
test rdi, rdi
je 0x18002d85f
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 0x18002d820
cmp rdi, r15
jbe 0x18002d750
jmp 0x18002d85f
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 0x18002d830
mov rax, qword [0x180ea91b8]
mov qword [rsi], rax
mov qword [0x180ea91b8], 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 0x180031aa0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc0
mov r14d, r9d
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov r12d, r15d
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x71], r15
mov ebx, r15d
mov r13, qword [rbp + 0x77]
mov rsi, qword [rbp - 0x79]
cmp qword [rbp - 0x11], rbx
jbe 0x180031baa
nop dword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
movups xmmword [rbp - 0x41], xmm0
movups xmmword [rbp - 0x31], xmm0
mov r8d, 0x30
lea rdx, [rbp - 0x51]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180031b3f
mov eax, dword [rbp - 0x1d]
add rbx, rax
jmp 0x180031b9c
mov rcx, qword [rbp - 0x39]
mov rdx, qword [rbp - 0x51]
lea rax, [rcx + rdx]
cmp rax, r13
jb 0x180031b99
mov eax, dword [rbp - 0x2d]
cmp eax, r14d
jb 0x180031b99
bt eax, 8
jb 0x180031b99
mov qword [rbp - 0x61], rdx
mov qword [rbp - 0x59], rcx
cmp rsi, r12
je 0x180031b7c
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rsi], xmm0
add rsi, 0x10
mov qword [rbp - 0x79], rsi
jmp 0x180031b95
lea r8, [rbp - 0x61]
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.180031740
mov r12, qword [rbp - 0x71]
mov rsi, qword [rbp - 0x79]
mov rcx, qword [rbp - 0x39]
add rbx, rcx
cmp rbx, qword [rbp - 0x11]
jb 0x180031b10
mov qword [rbp - 0x69], r12
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], r15
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x28]
mov r15, rcx
cmp rcx, rsi
je 0x180031c74
mov r14, qword [rbp + 0x7f]
mov r12, qword [rbp + 0x5f]
nop word [rax + rax]
movups xmm0, xmmword [r15]
mov rbx, r13
movq rcx, xmm0
cmp rcx, r13
cmova rbx, rcx
cmp rbx, r14
jae 0x180031c5e
psrldq xmm0, 8
movq r13, xmm0
add r13, rcx
movzx esi, word [rbp + 0x67]
nop dword [rax]
movzx r9d, si
mov r8, r12
mov rdx, r13
mov rcx, rbx
call fcn.180031a10
mov rbx, rax
test rax, rax
je 0x180031c56
mov qword [rbp - 0x61], rax
inc rbx
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x180031c45
mov qword [rdx], rax
add qword [rdi + 8], 8
jmp 0x180031c51
lea r8, [rbp - 0x61]
mov rcx, rdi
call fcn.180004f40
cmp rbx, r14
jb 0x180031c10
mov rsi, qword [rbp - 0x79]
mov r13, qword [rbp + 0x77]
add r15, 0x10
cmp r15, rsi
jne 0x180031be0
mov r12, qword [rbp - 0x69]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180031ca9
sub r12, rcx
and r12, 0xfffffffffffffff0
mov rax, rcx
cmp r12, 0x1000
jb 0x180031ca1
add r12, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180031cc7
mov rdx, r12
call fcn.180038704
mov rax, rdi
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18003ca40
int3
Function at 0x180031cd0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp cx, word [rax]
jne 0x180031d60
movsxd rdx, dword [rax + 0x3c]
cmp dword [rdx + rax], 0x4550
jne 0x180031d60
mov ecx, dword [rdx + rax + 0x98]
test rcx, rcx
je 0x180031d60
add rcx, rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rcx
call fcn.1800330e0
test rax, rax
je 0x180031d60
mov r9, 0xffffffffffffffff
nop word [rax + rax]
inc r9
cmp word [rbx + r9*2], 0
jne 0x180031d30
mov rdx, qword [rsp + 0x40]
add r9, r9
mov rcx, qword [rsp + 0x38]
add rdx, 0xfffffffffffffffc
mov r8, rbx
call fcn.180033150
test rax, rax
setne al
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180033320
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180033540
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180033427
mov rax, qword [0x1800589a0]
cmp qword [rsp + 0x20], rax
jb 0x180033384
mov rax, qword [0x1800589a8]
cmp qword [rsp + 0x20], rax
ja 0x180033384
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180033346
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800333b3
jmp 0x180033427
cmp dword [rsp + 0x50], 0x10000
jne 0x18003340a
cmp qword [rsp + 0x48], 0x10000
jb 0x18003340a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800333f8
mov rax, qword [rsp + 0x28]
jmp 0x180033429
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180033422
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180033540
mov qword [rsp + 0x20], rax
jmp 0x180033346
xor eax, eax
add rsp, 0x68
ret
Function at 0x180033430
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180033580
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180033533
mov rax, qword [0x1800589a0]
cmp qword [rsp + 0x20], rax
jb 0x18003348b
mov rax, qword [0x1800589a8]
cmp qword [rsp + 0x20], rax
ja 0x18003348b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18003344d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1800334ba
jmp 0x180033533
cmp dword [rsp + 0x50], 0x10000
jne 0x180033511
cmp qword [rsp + 0x48], 0x10000
jb 0x180033511
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800334ff
mov rax, qword [rsp + 0x28]
jmp 0x180033535
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18003352e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180033580
mov qword [rsp + 0x20], rax
jmp 0x18003344d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180039a20
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.18003a3c0
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.18003a3c0
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.18003a3c0
mov ecx, dword [0x180ea8b38]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x14
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.18003b7f0
call fcn.18003a3c0
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret
Function at 0x18003ca80
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180058a00]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18003cabc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.1800393fc
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x18003cb78
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18003cbde
test ebx, ebx
jne 0x18003cbde
lea ecx, [rax + 2]
call fcn.1800393fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.180038bf0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret