joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa1c740
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa1c74d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa1c75d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa1c745
lea eax, [rcx + 1]
jmp 0xa1c76b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa1c77e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa1c764
sub eax, 3
jb 0xa1c79e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa1c7ed
sar eax, 1
movsxd rbp, eax
jb 0xa1c7d4
jmp 0xa1c7ac
add ebx, ebx
jne 0xa1c7aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa1c7d4
inc ecx
add ebx, ebx
jne 0xa1c7ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa1c7d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa1c7cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa1c7bc
add ecx, 2
jmp 0xa1c7d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a1c702
jmp 0xa1c74d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2b5200
mov dl, 0x2e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa1c839
cmp rsi, rcx
jae 0xa1c841
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa1c820
cmp al, 0x8f
ja 0xa1c820
cmp byte [rsi - 2], 0xf
je 0xa1c826
sub al, 0xe8
cmp al, 1
ja 0xa1c80a
cmp rsi, rcx
jae 0xa1c841
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa1c810
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa1c841
lodsb al, byte [rsi]
jmp 0xa1c820
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x614000]
mov eax, dword [rdi]
or eax, eax
je 0xa1c89e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x61c000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xa1c84e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xa1c898
mov qword [rbx], rax
add rbx, 8
jmp 0xa1c86e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa1c8e2
cmp al, 0xef
ja 0xa1c8ca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa1c8aa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa1c8b9
mov eax, dword [rdi]
add rdi, 4
jmp 0xa1c8b9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xa1c936
sub rsp, 0xffffffffffffff80
jmp 0x467380
Function at 0x1800018c0
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
xor ebx, ebx
mov dword [r11 + 0x18], 0
lea rax, [r11 + 0x20]
mov word [r11 + 0x1c], 0x500
mov qword [r11 - 0x18], rax
lea rcx, [r11 + 0x18]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x78], eax
test eax, eax
je 0x18000194c
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x78]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x78], ecx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
movzx eax, byte [rsp + 0x78]
add rsp, 0x60
pop rbx
ret

Function at 0x180003910
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, r8
call fcn.180003f10
mov edx, 0x200
mov rcx, rdi
mov ebx, eax
call fcn.180004760
mov edx, ebx
mov dword [rdi + 0x18], 0x16
mov rcx, rdi
call fcn.180004700
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
call fcn.1800033d0
mov byte [rsp + 0x40], al
call fcn.180003380
mov byte [rsp + 0x41], al
lea rdx, [rsp + 0x40]
xor eax, eax
mov r8d, ebx
mov rcx, rdi
mov dword [rsp + 0x42], eax
mov word [rsp + 0x46], ax
call fcn.1800045b0
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180005c80
Capabilities:
Enumerate files on windows

Disassembly:
mov r9, r8
xor r8d, r8d
jmp 0x180005970

Function at 0x180005c90
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x180005ca1
lea eax, [rcx - 1]
add rsp, 0x28
ret
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
dec eax
neg eax
sbb eax, eax
add rsp, 0x28
ret

Function at 0x180005cc0
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x180005cd1
lea eax, [rcx - 1]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
dec eax
neg eax
sbb eax, eax
add rsp, 0x28
ret

Function at 0x180005cf0
Capabilities:
Delete directory

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.1800052c0
nop
mov r8, rax
mov rdx, rdi
mov rcx, rbx
call fcn.180005d70
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.180005cc0

Function at 0x180005d40
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x180005d51
lea eax, [rcx - 1]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
neg eax
sbb eax, eax
add rsp, 0x28
ret
Function at 0x180005d70
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
movzx r14d, r8b
mov rsi, rdx
mov r12, rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x2b0]
mov rdi, r9
call sub.msvcrt.dll_memset
test rsi, rsi
jne 0x1800059bf
lea eax, [rsi - 1]
add rsp, 0x6d0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov qword [rsp + 0x710], r15
mov r8d, 0x104
lea rcx, [rbp + 0x1a0]
call sub.msvcrt.dll_memset
call fcn.180005c10
lea r8, [rbp + 0x1a0]
mov byte [rbp + 0x1a0], al
mov rdx, rsi
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180005bfe
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x180005bfe
xor edx, edx
mov qword [rsp + 0x700], rbx
mov r8d, 0x103
lea rcx, [rbp + 0x3c1]
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp + 0x4c4]
mov r8d, 0x104
call sub.msvcrt.dll_memset
call fcn.180005c20
mov byte [rbp + 0x3c0], al
call fcn.180005c20
mov byte [rbp + 0x4c4], al
call fcn.180005c20
xor edx, edx
mov byte [rbp + 0x4c5], al
mov r8d, 0x104
lea rcx, [rbp + 0x90]
mov ebx, 1
call sub.msvcrt.dll_memset
nop
xor r9d, r9d
movsxd rax, r9d
lea r8, [rbp + 0x3c0]
imul rcx, rax, 0x104
lea rax, [rsp + 0x7c]
add r8, rcx
sub r8, rax
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180005ac3
inc rax
test ecx, ecx
jne 0x180005ab0
test edx, edx
je 0x180005bcb
inc r9d
cmp r9d, 2
jl 0x180005a93
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x104
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x7c]
mov rdx, rsi
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180005bcb
lea rcx, [rbp + 0x90]
call fcn.180005c60
movzx ebx, al
test al, al
je 0x180005b33
test r14b, r14b
je 0x180005b33
mov r9, rdi
lea rdx, [rbp + 0x90]
mov r8b, 1
mov rcx, r12
call 0x180005970
xor eax, eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x64]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, 1
jne 0x180005bdd
xor eax, eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
cmp eax, 1
jne 0x180005bdd
mov eax, dword [rsp + 0x70]
lea r8, [rsp + 0x7c]
mov r10, qword [rdi]
movzx r9d, bl
mov dword [rbp + 0x608], eax
mov rdx, rsi
mov eax, dword [rsp + 0x6c]
mov rcx, rdi
mov dword [rbp + 0x60c], eax
mov rax, qword [rbp + 0x608]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [r10 + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
cmp ebx, 1
je 0x180005a90
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x700]
xor eax, eax
mov r15, qword [rsp + 0x710]
add rsp, 0x6d0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xffffffff
jmp 0x180005be7
mov r9, r8
mov r8b, 1
jmp 0x180005970
Function at 0x180007750
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
je 0x1800077a5
lea r9d, [rax + 1]
cmp r9d, edi
jae 0x1800077a5
mov r8d, edi
xor edx, edx
mov rcx, rbp
call sub.msvcrt.dll_memset
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x1800077a7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800077c0
Capabilities:
Create process on windows
Resume thread

Disassembly:
sub rsp, 0x68
mov r10, qword [0x18001b208]
test r10, r10
je 0x180007495
cmp dword [rcx + 0x24], 0
jne 0x180007495
mov rax, qword [rcx + 0x18]
xor edx, edx
mov r8, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x48], rax
mov eax, dword [rcx + 0x20]
mov rcx, r10
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1800074d7
mov eax, 1
add rsp, 0x68
ret
mov rax, qword [rcx + 0x18]
xor edx, edx
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rax, qword [rcx + 0x10]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov eax, dword [rcx + 0x20]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov rdx, qword [rcx]
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x18000748b
xor eax, eax
add rsp, 0x68
ret
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x20]
mov rdi, rcx
test al, 4
jne 0x1800077fd
or eax, 4
mov qword [rsp + 0x30], rbx
mov dword [rcx + 0x20], eax
call 0x180007430
mov rcx, qword [rdi + 0x18]
mov ebx, eax
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
add rsp, 0x20
pop rdi
jmp 0x180007430
Function at 0x180009030
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r15d, r15d
mov dword [rbp - 0x40], 0x18
mov rsi, r9
mov dword [rbp - 0x3c], 0xf0000000
mov r14, rdx
mov qword [rbp - 0x38], r15
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000000
lea r9d, [r15 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800090bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800090b7
mov r9d, dword [rbp - 0x40]
lea rcx, [rbp - 0x38]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800090bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp - 0x38]
test rbx, rbx
jne 0x1800090d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800091d9
mov eax, dword [rdi + 8]
lea rcx, [rbp - 0x24]
mov rdx, qword [rdi]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x48], r15
mov r8d, eax
mov dword [rbp - 0x30], 0x208
movdqu xmmword [rbp - 0x24], xmm0
mov dword [rbp - 0x2c], 0x660e
movdqu xmmword [rbp - 0x14], xmm1
mov dword [rbp - 0x28], eax
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea rax, [rbp - 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov dword [rsp + 0x20], r15d
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x18000913b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800091be
mov rcx, qword [rbp - 0x48]
mov ebx, r15d
mov dword [rbp - 0x50], 1
test rcx, rcx
je 0x180009161
xor r9d, r9d
lea r8, [rbp - 0x50]
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 0x1800091be
mov rcx, qword [rbp - 0x48]
mov ebx, r15d
test rcx, rcx
je 0x18000918b
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 0x1800091be
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1800091be
lea rax, [rbp - 0x4c]
mov dword [rbp - 0x4c], esi
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x48]
mov ebx, eax
test rcx, rcx
je 0x1800091d9
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x48], r15
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1800091ea
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180009210
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0x90
xor r12d, r12d
mov dword [rbp - 1], 0x18
mov rsi, r9
mov dword [rbp + 3], 0xf0000000
mov r14, r8
mov qword [rbp + 7], r12
mov r15, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
lea r9d, [r12 + 0x18]
xor r8d, r8d
lea rcx, [rbp + 7]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800092a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1800092a2
mov r9d, dword [rbp - 1]
lea rcx, [rbp + 7]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800092a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 7]
test rbx, rbx
jne 0x1800092be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800093d3
mov eax, dword [rdi + 8]
lea rcx, [rbp + 0x1b]
mov rdx, qword [rdi]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 9], r12
mov r8d, eax
mov dword [rbp + 0xf], 0x208
movdqu xmmword [rbp + 0x1b], xmm0
mov dword [rbp + 0x13], 0x660e
movdqu xmmword [rbp + 0x2b], xmm1
mov dword [rbp + 0x17], eax
call sub.msvcrt.dll_memcpy
xor r9d, r9d
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0xf]
mov rcx, rbx
mov dword [rsp + 0x20], r12d
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x180009326
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800093b8
mov rcx, qword [rbp - 9]
mov ebx, r12d
mov dword [rbp - 0xd], 1
test rcx, rcx
je 0x18000934c
xor r9d, r9d
lea r8, [rbp - 0xd]
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 0x1800093b8
mov rcx, qword [rbp - 9]
mov ebx, r12d
test rcx, rcx
je 0x180009376
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 0x1800093b8
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x1800093b8
lea rax, [rbp - 0x11]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
mov dword [rbp - 0x11], esi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rax, qword [rbp + 0x7f]
mov ecx, dword [rbp - 0x11]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 9]
mov ebx, eax
test rcx, rcx
je 0x1800093d3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 9], r12
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1800093e4
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800097a0
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], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
xor edi, edi
mov dword [rax - 0x20], 0x18
mov r14d, r9d
mov dword [rax - 0x1c], 0xf0000000
mov ebx, r8d
mov qword [rax - 0x18], rdi
mov rbp, rdx
mov dword [rax - 0x38], 0xf0000000
mov rsi, rcx
lea r9d, [rdi + 0x18]
xor r8d, r8d
lea rcx, [rax - 0x18]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000982b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180009825
mov r9d, dword [rsp + 0x38]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000982b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800098a9
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1800098a3
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, ebx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1800098a3
mov eax, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov r8d, eax
mov dword [rsp + 0x30], eax
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x80]
lea r9, [rsp + 0x30]
mov rcx, qword [rsi]
mov edx, 2
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1800098ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800098c0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x180009cf0
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, r8d
mov qword [rsp + 0x38], rbx
mov rsi, rdx
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 0x180009d65
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180009d5f
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 0x180009d65
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180009d83
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x180009d88
mov ebx, 0xffffffff
test rcx, rcx
je 0x180009d95
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 0x18000cc50
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 0x18000ccac
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000ccac
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000ccac
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000ccac
cmp dword [rcx + 0x84], 0xe
jbe 0x18000ccac
cmp dword [rcx + 0xf8], 0
je 0x18000ccac
mov ecx, ebx
call fcn.18000cbe0
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, [0x18001cea0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.18000ca60
cmp dword [rsp + 0x60], 0
jne 0x18000ccef
mov ecx, ebx
call fcn.18000cb90
int3
add rsp, 0x40
pop rbx
ret
Function at 0x18000d1a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x18001b048]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000d1dc
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.180011304
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 0x18000d298
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 0x18000d2fe
test ebx, ebx
jne 0x18000d2fe
lea ecx, [rax + 2]
call fcn.180011304
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.1800112e0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret