joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push rbp
push r13
push r14
sub rsp, 0xb0
xor eax, eax
movsxd r13, r9d
mov dword [rsp + 0xe8], eax
mov r14, rdx
mov qword [rsp + 0x60], r13
mov rbp, rcx
test r9d, r9d
jle 0x14001528e
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
mov r11d, pe_nt_image_headers64
movss xmm8, dword [0x140024ad0]
nop dword [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x1400150fc
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x14001511b
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
movzx eax, byte [rbp + 0x20]
xor edi, edi
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
movzx eax, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x140015236
mov r15, qword [rsp + 0xf0]
mov rax, r12
mov r13d, dword [rsp + 0xe8]
add r15, 6
shl rax, 4
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x140015170
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x140015173
mov edx, dword [rax + rsi]
mov rcx, r14
call fcn.140010050
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.140012c80
movzx eax, word [rbp + 0x20]
inc r13d
sub ax, word [rsp + 0x50]
inc r12
dec ax
inc edi
add ax, word [rbp + 0x1c]
add rsi, 4
add ax, word [rsp + 0x54]
mov word [r15 - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x58]
dec ax
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x5c]
mov word [r15], ax
add r15, 0x10
cmp edi, dword [rbx - 0x10]
jl 0x140015160
mov dword [rsp + 0xe8], r13d
mov r11d, pe_nt_image_headers64
mov r13, qword [rsp + 0x60]
add rbx, 0x28
sub r13, 1
mov qword [rsp + 0x60], r13
jne 0x1400150b0
mov eax, dword [rsp + 0xe8]
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xb0
pop r14
pop r13
pop rbp
ret
Function at 0x14001f19c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f1e6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001f1e6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001f1e6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f1e6
cmp dword [rcx + 0x84], 0xe
jbe 0x14001f1e6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001f1e8
xor al, al
add rsp, 0x28
ret
Function at 0x1400afadc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14011cc18], rbx
je 0x1400afb28
cmp rax, rbx
jne 0x1400afb1b
mov ebx, 1
mov esi, ebx
jmp 0x1400afb2d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400afb00
mov ebx, 1
mov eax, dword [0x14011cc20]
cmp eax, ebx
jne 0x1400afb43
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400afba8
mov eax, dword [0x14011cc20]
test eax, eax
jne 0x1400afba2
mov dword [0x14011cc20], ebx
lea r15, [0x1400c5768]
lea rdi, [0x1400c5750]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400afb94
test eax, eax
jne 0x1400afb98
cmp qword [rdi], 0
je 0x1400afb89
mov rax, qword [rdi]
mov rcx, qword [str.__a_v_]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400afb6a
test eax, eax
je 0x1400afba8
mov eax, 0xff
jmp 0x1400afc84
mov dword [0x14011b398], ebx
mov eax, dword [0x14011cc20]
cmp eax, ebx
jne 0x1400afbcf
lea rdx, [0x1400c5748]
lea rcx, [0x1400c51a8]
call sub.msvcrt.dll__initterm
mov dword [0x14011cc20], 2
test esi, esi
jne 0x1400afbdc
xor eax, eax
xchg qword [0x14011cc18], rax
cmp qword [0x14011cc38], 0
je 0x1400afc10
lea rcx, [0x14011cc38]
call fcn.1400b01a0
test eax, eax
je 0x1400afc10
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14011cc38]
mov r9, qword [str.__a_v_]
call r9
mov r8, qword [0x14011b3b0]
mov rdx, qword [0x14011b3a8]
mov ecx, dword [0x14011b3a0]
call fcn.14000345c
mov dword [0x14011b394], eax
cmp dword [0x14011b3b8], 0
jne 0x1400afc40
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14011b398], 0
jne 0x1400afc55
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14011b394]
jmp 0x1400afc84
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401b4000
add rsp, 0x28
jmp 0x1400afadc

Function at 0x1400b00b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400b00fc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b00f4
cmp dword [rcx + 0x3c], edx
jl 0x1400b00f4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400b00f4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400b00fc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x180005a90
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x4a8
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rsp + 0x490], rax
movzx ebp, r8b
mov rsi, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x270]
mov rbx, r9
call sub.msvcrt.dll_memset
test rsi, rsi
jne 0x180005ade
lea eax, [rsi - 1]
jmp 0x180005c45
lea r8, [0x18001361c]
mov qword [rsp + 0x4a0], rdi
mov rdx, rsi
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180005c32
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180005c32
nop word [rax + rax]
movzx edx, byte [rsp + 0x4c]
cmp dl, byte [0x180013620]
movzx ecx, byte [rsp + 0x4d]
jne 0x180005b4e
cmp cl, byte [0x180013621]
je 0x180005c0f
cmp dl, byte [0x180013624]
jne 0x180005b6f
cmp cl, byte [0x180013625]
jne 0x180005b6f
movzx eax, byte [rsp + 0x4e]
cmp al, byte [0x180013626]
je 0x180005c0f
xor edx, edx
mov r8d, 0x104
test byte [rsp + 0x20], 0x10
je 0x180005bce
lea rcx, [rsp + 0x160]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180005c0f
test bpl, bpl
je 0x180005bc1
mov r9, rbx
lea rdx, [rsp + 0x160]
mov r8b, 1
mov rcx, r14
call fcn.180005a90
mov r8b, 1
lea rdx, [rsp + 0x160]
jmp 0x180005c01
lea rcx, [rsp + 0x380]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rsp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180005c0f
xor r8d, r8d
lea rdx, [rsp + 0x380]
mov rax, qword [rbx]
lea r9, [rsp + 0x20]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180005b30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x180005c3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xffffffff
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.180010850
add rsp, 0x4a8
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x180007c80
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov ecx, 8
call fcn.18001087c
mov rdi, rax
lea rdx, [0x180018031]
lea rax, [0x180013398]
mov r8d, 2
mov r9d, 0x400
lea r10, str.KKKEEEYYY
mov qword [rdi], rax
nop dword [rax + rax]
lea rcx, [r8 - 2]
and ecx, 0xfff
lea rdx, [rdx + 4]
movzx eax, byte [rcx + r10]
xor byte [rdx - 5], al
lea rax, [r8 - 1]
and eax, 0xfff
movzx eax, byte [rax + r10]
xor byte [rdx - 4], al
mov rax, r8
and eax, 0xfff
movzx eax, byte [rax + r10]
xor byte [rdx - 3], al
lea rax, [r8 + 1]
and eax, 0xfff
add r8, 4
movzx eax, byte [rax + r10]
xor byte [rdx - 2], al
sub r9, 1
jne 0x180007cc0
xor edx, edx
mov r8d, 0x1000
mov rcx, r10
call sub.msvcrt.dll_memset
lea rax, [0x1800133c0]
mov r8d, 0x1000
lea rdx, str.PPPRRROOOFFFIIILLLEEE
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.180003a50
xor edx, edx
lea rcx, str.PPPRRROOOFFFIIILLLEEE
mov r8d, 0x1000
mov rbx, rax
call sub.msvcrt.dll_memset
mov edx, 8
mov rcx, rdi
call fcn.180010874
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180008bb0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax - 0x18], 0x18
mov rsi, rdx
mov dword [rax - 0x14], 0xf0000000
mov rdi, rcx
mov qword [rax - 0x10], rbx
xor r8d, r8d
mov dword [rax - 0x28], 0xf0000000
lea r9d, [rbx + 0x18]
xor edx, edx
lea rcx, [rax - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180008c2a
mov r9d, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180008ca8
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180008ca2
mov rcx, qword [rdi]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180008ca2
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
xor eax, eax
mov dword [rsp + 0x68], 0x20
mov dword [rsp + 0x20], ebx
mov qword [r8], rax
mov qword [r8 + 8], rax
lea edx, [rax + 2]
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rax
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180008cad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180008cbf
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1800091a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xa8
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12, qword [rbp + 0x7f]
xor r13d, r13d
mov r15, r9
mov dword [rbp - 0x41], 0x18
mov r14, r8
mov dword [rbp - 0x3d], 0xf0000000
mov rsi, rdx
mov qword [rbp - 0x39], r13
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r13 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000923d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180009237
mov r9d, dword [rbp - 0x41]
lea rcx, [rbp - 0x39]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000923d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp - 0x39]
test rbx, rbx
jne 0x180009253
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180009366
mov eax, dword [rdi + 8]
lea rcx, [rbp - 0x25]
mov rdx, qword [rdi]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x51], r13
mov r8d, eax
mov dword [rbp - 0x31], 0x208
movdqu xmmword [rbp - 0x25], xmm0
mov dword [rbp - 0x2d], 0x660e
movdqu xmmword [rbp - 0x15], xmm1
mov dword [rbp - 0x29], eax
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea rax, [rbp - 0x51]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x31]
mov rcx, rbx
mov dword [rsp + 0x20], r13d
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1800092bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18000934b
mov rcx, qword [rbp - 0x51]
mov ebx, r13d
mov dword [rbp - 0x45], 1
test rcx, rcx
je 0x1800092e1
xor r9d, r9d
lea r8, [rbp - 0x45]
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x18000934b
mov rcx, qword [rbp - 0x51]
mov ebx, r13d
test rcx, rcx
je 0x18000930b
mov r8, qword [rdi + 0x10]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x18000934b
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x18000934b
lea rax, [rbp - 0x49]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
mov dword [rbp - 0x49], r15d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [rbp - 0x49]
mov qword [r12], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x51]
mov ebx, eax
test rcx, rcx
je 0x180009366
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x51], r13
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x180009377
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.180010850
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800093a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x90
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor r15d, r15d
mov dword [rbp - 0x21], 0x18
mov r14, r9
mov dword [rbp - 0x1d], 0xf0000000
mov rsi, rdx
mov qword [rbp - 0x19], r15
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r15 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180009435
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18000942f
mov r9d, dword [rbp - 0x21]
lea rcx, [rbp - 0x19]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180009435
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp - 0x19]
test rbx, rbx
jne 0x18000944b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180009552
mov eax, dword [rdi + 8]
lea rcx, [rbp - 5]
mov rdx, qword [rdi]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x31], r15
mov r8d, eax
mov dword [rbp - 0x11], 0x208
movdqu xmmword [rbp - 5], xmm0
mov dword [rbp - 0xd], 0x660e
movdqu xmmword [rbp + 0xb], xmm1
mov dword [rbp - 9], eax
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x11]
mov rcx, rbx
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1800094b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180009537
mov rcx, qword [rbp - 0x31]
mov ebx, r15d
mov dword [rbp - 0x29], 1
test rcx, rcx
je 0x1800094d9
xor r9d, r9d
lea r8, [rbp - 0x29]
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x180009537
mov rcx, qword [rbp - 0x31]
mov ebx, r15d
test rcx, rcx
je 0x180009503
mov r8, qword [rdi + 0x10]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 1
jne 0x180009537
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x180009537
lea rax, [rbp - 0x25]
mov dword [rbp - 0x25], r14d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x31]
mov ebx, eax
test rcx, rcx
je 0x180009552
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x31], r15
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x180009563
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180010850
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800095d0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov qword [rsp + 0x30], 1
mov edi, edx
mov qword [rsp + 0x38], rbx
mov rsi, rcx
mov dword [rsp + 0x20], ebx
xor r8d, r8d
lea rcx, [rsp + 0x38]
lea r9d, [rbx + 1]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180009644
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18000963e
mov r9d, dword [rsp + 0x30]
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180009644
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180009662
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x180009667
mov ebx, 0xffffffff
test rcx, rcx
je 0x180009674
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18000c5d0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000c62c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000c62c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000c62c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000c62c
cmp dword [rcx + 0x84], 0xe
jbe 0x18000c62c
cmp dword [rcx + 0xf8], 0
je 0x18000c62c
mov ecx, ebx
call fcn.18000c560
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1800191a0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.18000c3e0
cmp dword [rsp + 0x60], 0
jne 0x18000c66f
mov ecx, ebx
call fcn.18000c510
int3
add rsp, 0x40
pop rbx
ret
Function at 0x18000c8a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180017008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000c8dc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.180010adc
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 0x18000c998
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 0x18000c9fe
test ebx, ebx
jne 0x18000c9fe
lea ecx, [rax + 2]
call fcn.180010adc
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.180010850
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x1800106e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx], 0xe06d7363
mov rdi, r9
mov rbp, r8
mov r14, rdx
mov rsi, rcx
jne 0x18001079c
mov rax, qword [r9 + 0x38]
mov qword [rsp + 0x48], rbx
mov ebx, dword [rax]
add rbx, qword [r9 + 8]
mov eax, dword [rbx]
and eax, 0x1fffffff
sub eax, 0x19930521
cmp eax, 1
ja 0x180010797
mov eax, 1
xchg dword [0x181779210], eax
cmp eax, 1
jne 0x180010750
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
xchg dword [0x181779210], eax
cmp eax, 1
je 0x180010735
mov edx, 4
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx + 0x3c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18001078f
and dword [rbx], 0xf9930520
lea r9, [rsp + 0x40]
or dword [rbx], 0x19930520
mov edx, 4
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xchg dword [0x181779210], eax
mov rbx, qword [rsp + 0x48]
mov r9, rdi
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.msvcrt.dll___CxxFrameHandler]