joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180022930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x180022ac1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x1800229a0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.1800222f0
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.180021950
mov dword [rbx + 0x80], 0
jmp 0x180022aad
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.1800208a0
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18003ea40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180062040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18003ea8f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800bdf70]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18003eacd
cmp rsi, r14
jb 0x18003eac5
cmp rsi, r15
jae 0x18003eac5
cmp qword [rsi + 8], 0
jne 0x18003ec97
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18003eab0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18003eb62
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18003eb59
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003eb59
cmp dword [rsp + 0x40], 0x10000
je 0x18003ebdb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x18003eb59
sub rbx, rbp
cmp rbx, r14
jae 0x18003eb20
test rsi, rsi
jne 0x18003ec40
cmp rdi, r15
ja 0x18003ec7f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
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 0x18003ec7f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003ec7f
cmp dword [rsp + 0x40], 0x10000
je 0x18003ec11
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18003eb92
jmp 0x18003ec7f
test rbx, rbx
je 0x18003eb59
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 0x18003ec40
cmp rbx, r14
jae 0x18003eb00
jmp 0x18003eb62
test rdi, rdi
je 0x18003ec7f
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 0x18003ec40
cmp rdi, r15
jbe 0x18003eb70
jmp 0x18003ec7f
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 0x18003ec50
mov rax, qword [0x1800bdf70]
mov qword [rsi], rax
mov qword [0x1800bdf70], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18004b2c0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18003f610
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 [0x180062040]
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 0x18003f73b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18003f732
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18003f714
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18003f714
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18003f714
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18003f6d2
mov rcx, qword [0x1800bd918]
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 0x18003f732
jmp 0x18003f707
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18003f707
mov rcx, qword [0x1800bd918]
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 0x18003f732
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 0x18003f680
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18003f793
cmp dword [rbx + 0xc], esi
jbe 0x18003f793
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 0x18003f78c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18003f460
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18003f750
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18004b2c0
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 0x18003f7c0
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, 0x30
mov rax, qword [0x180062040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1800bdf60]
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 0x18003f833
mov eax, 0xa
jmp 0x18003f8c6
test esi, esi
je 0x18003f855
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 0x18003f878
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18003f878
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18003f871
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18003f878
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
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 rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004b2c0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18003f8f0
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 [0x1800bdf6c]
mov ebx, edi
test ecx, ecx
je 0x18003fa2b
mov rax, qword [0x1800bdf60]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18003f948
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18003f920
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18003fa2b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18003f610
mov r8d, dword [0x1800bdf6c]
cmp ebx, r8d
jae 0x18003f9b8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1800bdf60]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18003f9b1
mov edx, esi
mov ecx, ebx
call fcn.18003f7c0
mov edi, eax
test eax, eax
jne 0x18003f9b8
mov r8d, dword [0x1800bdf6c]
inc ebx
cmp ebx, r8d
jb 0x18003f980
cmp qword [rsp + 0x20], 0
je 0x18003fa2b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18003fa17
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 0x18003fa08
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 0x18003f9e0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1800bd918]
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 0x180048670
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x68
mov rax, qword [0x180062040]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 0x5a
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1800486be
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa5], 1
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa6], 0
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa4], 0
jmp 0x180048732
mov ecx, 0x43
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1800486f9
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa5], 0
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa6], 1
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa4], 0
jmp 0x180048732
mov ecx, 0x58
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x180048732
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa5], 0
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa6], 0
mov rax, qword [0x1800bdb60]
mov byte [rax + 0xa4], 1
mov rax, qword [0x1800bdb60]
cmp byte [rax + 0x9a], 0
je 0x180048872
cmp dword [rax + 0x9c], 1
jne 0x180048872
cmp byte [rax + 0xa5], 0
je 0x1800487be
mov rax, qword [0x1800bdb68]
movaps xmm0, xmmword [0x18005a500]
mov r10, qword [0x1800bd950]
movaps xmmword [rsp + 0x30], xmm0
movss xmm1, dword [rax + 8]
movss xmm0, dword [rax + 0xc]
subss xmm1, dword [0x18005a2f4]
unpcklps xmm1, xmm0
movsd xmm0, qword [rax + 8]
movsd qword [rsp + 0x48], xmm0
movsd qword [rsp + 0x40], xmm1
test r10, r10
je 0x180048872
lea rcx, [rsp + 0x30]
call fcn.180004430
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
jmp 0x180048859
cmp byte [rax + 0xa6], 0
je 0x1800487f7
mov rax, qword [0x1800bdb68]
movaps xmm0, xmmword [0x18005a500]
movaps xmmword [rsp + 0x30], xmm0
movss xmm1, dword [rax + 8]
addss xmm1, dword [0x18005a2f4]
movss xmm0, dword [rax + 0xc]
unpcklps xmm1, xmm0
movsd qword [rsp + 0x48], xmm1
jmp 0x18004882e
cmp byte [rax + 0xa4], 0
je 0x180048872
mov rax, qword [0x1800bdb68]
movaps xmm0, xmmword [0x18005a500]
movaps xmmword [rsp + 0x30], xmm0
movss xmm1, dword [rax + 0xc]
subss xmm1, dword [0x18005a2f4]
movss xmm0, dword [rax + 8]
unpcklps xmm0, xmm1
movsd qword [rsp + 0x48], xmm0
mov r10, qword [0x1800bd950]
movsd xmm0, qword [rax + 8]
movsd qword [rsp + 0x40], xmm0
test r10, r10
je 0x180048872
lea rcx, [rsp + 0x30]
call fcn.180004430
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x48]
movss xmm0, dword [0x18005a200]
mov r9d, eax
mov rcx, r10
movss dword [rsp + 0x20], xmm0
call fcn.1800226c0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18004b2c0
add rsp, 0x68
ret
Function at 0x18004a4a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x18004a4e2
cmp edx, 1
jne 0x18004a50c
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x18004a370]
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]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x1800bdde0], 0
je 0x18004a50c
call fcn.18003ff00
mov rcx, qword [0x1800bddd8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x1800bddd8], rax
mov dword [0x1800bdde0], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x180002bdc
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
xor r9d, r9d
mov r8d, dword [r10 + r9*4]
mov eax, r8d
shr eax, 7
and eax, 0x1010101
imul edx, eax, 0x1b
mov eax, r8d
and eax, 0xff7f7f7f
add eax, eax
xor edx, eax
mov eax, r8d
rol eax, 0x10
mov ecx, edx
xor ecx, r8d
rol r8d, 8
ror ecx, 8
xor ecx, eax
xor ecx, r8d
xor ecx, edx
mov dword [r10 + r9*4], ecx
inc r9
cmp r9, 4
jl 0x180002be2
ret

Function at 0x180002c28
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea r14, [0x1800013f0]
mov ebp, 4
sub r14, rcx
mov edx, ebp
mov rbx, rcx
mov eax, dword [r14 + rcx]
xor dword [rcx], eax
add rcx, rbp
sub rdx, 1
jne 0x180002c54
lea edi, [rdx + 0x10]
mov esi, edi
lea r15, [0x1800015a0]
mov rcx, rbx
mov rdx, rdi
movzx eax, byte [rcx]
mov al, byte [rax + r15]
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180002c75
mov rcx, rbx
call fcn.180002b58
mov rcx, rbx
call fcn.180002bdc
lea rdx, [r14 + rsi]
mov rcx, rbp
mov r11, rbx
mov eax, dword [rdx + r11]
xor dword [r11], eax
add r11, rbp
sub rcx, 1
jne 0x180002ca1
add rsi, rdi
cmp rsi, 0xa0
jl 0x180002c6f
mov rcx, rbx
movzx eax, byte [rcx]
mov al, byte [rax + r15]
mov byte [rcx], al
inc rcx
sub rdi, 1
jne 0x180002cc0
mov rcx, rbx
call fcn.180002b58
lea rcx, [0x180001490]
mov rdx, rbp
sub rcx, rbx
mov eax, dword [rcx + rbx]
xor dword [rbx], eax
add rbx, rbp
sub rdx, 1
jne 0x180002ce7
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180002d10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea rdx, [0x180001490]
mov ebp, 4
sub rdx, rcx
mov r8d, ebp
mov rbx, rcx
mov eax, dword [rdx + rcx]
xor dword [rcx], eax
add rcx, rbp
sub r8, 1
jne 0x180002d3d
mov edi, 0x90
lea r14, [0x1800013f0]
sub r14, rbx
lea r15, [0x1800014a0]
lea esi, [rdi - 0x80]
mov rcx, rbx
call fcn.180002b94
mov rcx, rbx
mov rdx, rsi
movzx eax, byte [rcx]
mov al, byte [rax + r15]
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180002d72
mov rcx, rbx
lea r8, [r14 + rdi]
mov rdx, rbp
mov eax, dword [r8 + rcx]
xor dword [rcx], eax
add rcx, rbp
sub rdx, 1
jne 0x180002d8e
xor r11d, r11d
mov r9d, dword [rbx + r11*4]
mov eax, r9d
shr eax, 7
and eax, 0x1010101
imul r10d, eax, 0x1b
mov eax, r9d
and eax, 0xff7f7f7f
add eax, eax
xor r10d, eax
mov eax, r10d
shr eax, 7
and eax, 0x1010101
imul ecx, eax, 0x1b
mov eax, r10d
and eax, 0xff7f7f7f
add eax, eax
xor ecx, eax
mov eax, ecx
shr eax, 7
and eax, 0x1010101
imul r8d, eax, 0x1b
mov eax, ecx
and eax, 0xff7f7f7f
add eax, eax
xor r8d, eax
mov edx, r8d
xor r8d, ecx
xor edx, r9d
mov eax, r8d
mov ecx, edx
xor eax, r9d
xor ecx, r10d
rol eax, 0x10
ror ecx, 8
xor ecx, eax
rol edx, 8
xor ecx, edx
xor ecx, r8d
xor ecx, r10d
mov dword [rbx + r11*4], ecx
inc r11
cmp r11, rbp
jl 0x180002da0
sub rdi, rsi
test rdi, rdi
jg 0x180002d64
mov rcx, rbx
call fcn.180002b94
mov rcx, rbx
movzx eax, byte [rcx]
mov al, byte [rax + r15]
mov byte [rcx], al
inc rcx
sub rsi, 1
jne 0x180002e42
mov rcx, rbp
mov eax, dword [rbx + r14]
xor dword [rbx], eax
add rbx, rbp
sub rcx, 1
jne 0x180002e57
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x180002e80
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov eax, dword [r8]
mov rbx, rdx
mov edx, eax
mov r14, r8
not edx
mov rdi, rcx
and edx, 0xf
inc edx
lea esi, [rdx + rax]
cmp esi, 0x11c
jbe 0x180002eb9
xor eax, eax
jmp 0x180002f2b
mov r8d, edx
lea rcx, [rbx + rax]
call qword [sym.imp.ntdll.dll_memset]
test rdi, rdi
je 0x180002ee5
mov rcx, rbx
sub rdi, rbx
mov edx, 4
mov eax, dword [rdi + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180002ed6
mov rcx, rbx
call fcn.180002c28
lea edi, [rsi - 0x10]
test edi, edi
je 0x180002f23
lea rdx, [rbx + 0x10]
mov r8d, 4
mov rcx, rdx
sub rbx, rdx
mov eax, dword [rbx + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x180002f04
mov rcx, rdx
mov rbx, rdx
call fcn.180002c28
sub edi, 0x10
jne 0x180002ef4
mov dword [r14], esi
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180002f44
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rbx, dword [r8]
mov r14, r8
mov rsi, rdx
test bl, 0xf
je 0x180002f6f
xor eax, eax
jmp 0x180002fe5
lea rdi, [rdx - 0x10]
add rdi, rbx
jmp 0x180002f96
mov rcx, rdi
call fcn.180002d10
xor ecx, ecx
mov eax, dword [rdi + rcx*4 - 0x10]
xor dword [rdi + rcx*4], eax
inc rcx
cmp rcx, 4
jl 0x180002f82
sub rdi, 0x10
cmp rdi, rsi
ja 0x180002f78
mov rcx, rsi
call fcn.180002d10
cmp ebx, 0x10
je 0x180002fdd
lea r8, [rsi - 1]
add r8, rbx
cmp byte [r8], 0x10
ja 0x180002fdd
movzx ecx, byte [r8]
xor edx, edx
mov r9d, ecx
test ecx, ecx
je 0x180002fd7
movzx eax, byte [r8]
dec r8
cmp eax, ecx
jne 0x180002fd7
inc edx
dec r9d
test r9d, r9d
jg 0x180002fc2
cmp edx, ecx
jne 0x180002fdd
sub ebx, ecx
mov eax, 1
mov dword [r14], ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180003000
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14d, 4
mov rbx, rdx
mov r8d, r14d
sub rcx, rdx
mov eax, dword [rcx + rdx]
xor dword [rdx], eax
add rdx, r14
sub r8, 1
jne 0x180003028
lea r12, [0x180001330]
mov rcx, rbx
mov rdx, r12
mov r8, r14
sub rdx, rbx
mov eax, dword [rdx + rcx]
xor dword [rcx], eax
add rcx, r14
sub r8, 1
jne 0x180003049
lea edi, [r8 + 1]
lea esi, [rdi + 0xf]
lea r15, [0x1800015a0]
mov rcx, rbx
mov rdx, rsi
movzx eax, byte [rcx]
mov al, byte [rax + r15]
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x18000306b
mov rcx, rbx
call fcn.180002b58
mov rcx, rbx
call fcn.180002bdc
mov edx, edi
mov r11, rbx
shl edx, 4
mov rcx, r14
sub rdx, rbx
add rdx, r12
mov eax, dword [rdx + r11]
xor dword [r11], eax
add r11, r14
sub rcx, 1
jne 0x18000309e
inc edi
cmp edi, 0xb
jb 0x180003065
mov rcx, rbx
movzx eax, byte [rcx]
mov al, byte [rax + r15]
mov byte [rcx], al
inc rcx
sub rsi, 1
jne 0x1800030b8
mov rcx, rbx
call fcn.180002b58
lea rcx, [0x1800013e0]
mov rdx, r14
sub rcx, rbx
mov eax, dword [rcx + rbx]
xor dword [rbx], eax
add rbx, r14
sub rdx, 1
jne 0x1800030df
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140004310
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
movdqa xmmword [rsp + 0x50], xmm6
mov rax, qword [0x140081338]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [0x140082560], 0
je 0x14000433d
xor esi, esi
jmp 0x14000445e
mov ecx, 0x30
call fcn.140041250
mov rsi, rax
mov ecx, 0x20
call fcn.140041250
mov qword [rsi], rax
lea rcx, [rax + 0x20]
mov qword [rsi + 0x10], rcx
mov edx, 7
movq xmm6, rdx
pslldq xmm6, 8
movdqu xmmword [rax + 0x10], xmm6
mov word [rax], 0
mov qword [rsi + 8], rcx
mov qword [rsi + 0x20], 0
mov ecx, 0x60
call fcn.140041250
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov qword [rsi + 0x18], rax
mov word [rax + 0x18], 0x101
mov qword [rsi + 0x28], 1
mov qword [0x140082560], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
movdqu xmmword [rsp + 0x38], xmm6
mov word [rsp + 0x28], 0
mov rcx, rax
call fcn.1400478b0
mov rbx, rax
cmp rax, 7
jbe 0x1400043eb
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r9, rdi
call fcn.140001a00
jmp 0x14000440a
mov qword [rsp + 0x38], rbx
mov r8, rbx
add r8, rbx
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400440e0
mov word [rsp + rbx*2 + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140004490
mov rax, qword [rsp + 0x40]
cmp rax, 8
jb 0x14000445b
add rax, 1
js 0x14000447a
mov rcx, qword [rsp + 0x28]
add rax, rax
cmp rax, 0x1000
jb 0x140004456
test cl, 0x1f
jne 0x14000447a
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000447a
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14000447a
call fcn.140041240
mov sil, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140041210
mov eax, esi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
call fcn.1400476b0
ud2

Function at 0x140004490
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, rdx
mov rsi, rcx
mov rcx, qword [0x140081338]
xor rcx, rsp
mov qword [rsp + 0x50], rcx
mov ecx, 7
movq xmm0, rcx
pslldq xmm0, 8
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], 0
lea rdi, [rsp + 0x30]
mov edx, 3
mov rcx, rax
mov r8, rdi
call fcn.14001f230
cmp qword [rsp + 0x40], 0
je 0x140004522
mov dword [rsp + 0x2c], 0
cmp qword [rsp + 0x48], 7
jbe 0x1400044f9
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov edx, dword [rsp + 0x2c]
mov rcx, rsi
mov r8, rax
call fcn.140003ff0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x140004566
add rax, 1
js 0x14000457b
mov rcx, qword [rsp + 0x30]
add rax, rax
cmp rax, 0x1000
jb 0x140004561
test cl, 0x1f
jne 0x14000457b
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x14000457b
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
mov rcx, rax
jae 0x14000457b
call fcn.140041240
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140041210
nop
add rsp, 0x58
pop rdi
pop rsi
ret
call fcn.1400476b0
ud2