joyce8/EMBER2024-capa huggingface dataset:
Function at 0x28f810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x28f830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.00289570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00289200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.00289220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0028b4a0
mov rcx, rbx
mov rdx, rbx
call fcn.00289800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.00289fa0
lea rcx, [rsp + 0x80]
call fcn.00289200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.002891e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.00289550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00289200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.002893b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.002893b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.0028b4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.0028b4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00289220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.00289220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.00289fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.00289fa0
mov rcx, rbp
mov rdx, rbx
call fcn.00289a90
mov rcx, rbx
mov rdx, rsi
call fcn.00289a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.00289220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.0028b4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.00289fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0028b4a0
mov rcx, rdi
mov rdx, rdi
call fcn.00289a90
mov rcx, r14
mov rdx, rbx
call fcn.0028aae0
mov rcx, r12
mov rdx, r12
call fcn.00289a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.00289220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.00289fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.00289fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x28f900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.002893b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.002893b0
mov rcx, rdi
mov rdx, rdi
call fcn.00289800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00289fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.0028a810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1402b3290
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x140445698]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
lea rcx, str.HWLOC_PCI_LOCALITY
call fcn.1402eab80
mov rbx, rax
test rax, rax
je 0x1402b3386
xor edx, edx
mov qword [rsp + 0x78], rdi
mov rcx, rax
mov dword [rsi + 0x350], 1
call fcn.1402f96a8
mov edi, eax
test eax, eax
js 0x1402b3376
lea rdx, [rsp + 0x20]
mov ecx, eax
call fcn.1402ef998
test eax, eax
jne 0x1402b336d
mov eax, dword [rsp + 0x34]
cmp eax, 0x10000
jg 0x1402b334c
inc eax
movsxd rcx, eax
call fcn.1402eab90
mov rbx, rax
test rax, rax
je 0x1402b333b
mov r8d, dword [rsp + 0x34]
mov rdx, rax
mov ecx, edi
call fcn.1402f6ee0
movsxd rcx, dword [rsp + 0x34]
cmp eax, ecx
jne 0x1402b333b
mov byte [rcx + rbx], 0
mov rdx, rbx
mov rcx, rsi
call fcn.1402b33b0
mov rcx, rbx
call fcn.1402ea440
mov ecx, edi
call fcn.1402f67a4
jmp 0x1402b3381
mov ecx, 2
call fcn.1402e6414
mov r9d, dword [rsp + 0x34]
lea rdx, str.Ignoring_HWLOC_PCI_LOCALITY_file___s_too_large___lu_bytes__n
mov rcx, rax
mov r8, rbx
call fcn.140003830
mov ecx, edi
call fcn.1402f67a4
jmp 0x1402b3381
mov rdx, rbx
mov rcx, rsi
call fcn.1402b33b0
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402c27a0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x1402f0434
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402f0260
Function at 0x14000aaa0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140014900
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140014900
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000ab10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400ea114]
mov r12, rcx
test ebx, ebx
jle 0x14000ac40
mov rax, qword [0x1400ea118]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000ab5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x14000abe5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x14000ab40
mov rcx, r12
call fcn.14000b590
mov rsi, rax
test rax, rax
je 0x14000ac62
mov rax, qword [0x1400ea118]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000b6c0
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400ea118]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ac47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000abde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000abf0
add dword [0x1400ea114], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400ea118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000abde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000aaa0
nop dword [rax]
xor ebx, ebx
jmp 0x14000ab68
mov rax, qword [0x1400ea118]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000aaa0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000aaa0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000b1e0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1400ea180]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ea160]
test rbx, rbx
je 0x14000b23c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000b233
test r12, r12
je 0x14000b233
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b218
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c1670]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b5b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b5b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b5b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b605
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000b5fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b5b0
add rax, 0x28
cmp rax, r9
jne 0x14000b5e8
xor eax, eax
ret

Function at 0x14000b610
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1670]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b630
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b638
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b630
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000b6c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c1670]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000b6e0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000b6e8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140016fc0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400170d2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400170aa
add rax, 1
cmp rax, 0x6b
je 0x1400170c7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400170a0
cmp edx, 0x6a
je 0x1400170c7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400170bb
Function at 0x140017470
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400eada0]
mov rcx, rsi
call fcn.140016d30
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.1400165c0
mov ebx, dword [0x1400eada0]
test ebx, ebx
jne 0x1400174e0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400b8188], eax
cmp eax, 0xffffffff
je 0x1400b73b6
mov dword [0x1400eada0], 1
mov rcx, r13
call fcn.1400168e0
test r12, r12
je 0x140017512
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.1400170f0
cmp ebx, 1
je 0x1400174c1
mov ecx, 2
call qword [fcn.140014900]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.1400168e0
test r12, r12
jne 0x1400174ce
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x14007c140
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007c188
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007c15a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400019f8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r15, rdx
mov rdi, rcx
mov r12d, r9d
mov r14d, r8d
mov esi, r13d
lea edx, [r13 + 0x41]
lea ecx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001b3f
lea ebp, [r13 + 7]
cmp r14d, ebp
jb 0x140001a5a
mov edx, r14d
lea rcx, str.ERROR_kull_m_bUsYlIght_request_create___count_u__max_is_7__n
call fcn.14000bdb4
cmp r14d, ebp
cmovb ebp, r14d
mov r10d, r13d
mov esi, 1
test ebp, ebp
je 0x140001b09
lea r9, [r15 + 2]
movzx edx, byte [r9 - 2]
mov cl, dl
mov al, dl
or al, 0x10
and cl, 0xf0
movzx eax, al
lea ecx, [r10*8 + 2]
cmove edx, eax
lea eax, [r10*8 + 1]
mov byte [rax + rbx], dl
mov al, byte [r9 - 1]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 3]
mov al, byte [r9]
lea r9, [r9 + 8]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 4]
mov al, byte [r9 - 7]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 5]
mov al, byte [r9 - 6]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 6]
mov al, byte [r9 - 5]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 7]
mov al, byte [r9 - 4]
mov byte [rcx + rbx], al
lea ecx, [r10*8 + 8]
mov al, byte [r9 - 3]
add r10d, esi
mov byte [rcx + rbx], al
cmp r10d, ebp
jb 0x140001a72
or word [rbx + 0x3d], 0xffff
lea rdx, [rbx + 1]
mov dword [rbx + 0x39], 0xff550404
movzx ecx, r13w
mov r8d, reloc.netapi32.dll_Ordinal_62
movzx eax, byte [rdx]
add rdx, rsi
add cx, ax
sub r8, rsi
jne 0x140001b24
movzx eax, cx
mov byte [rbx + 0x40], cl
shr ax, 8
mov byte [rbx + 0x3f], al
test esi, esi
je 0x140001be6
jmp 0x140001bd4
mov ebp, r13d
test rdi, rdi
je 0x140001bb6
mov rcx, qword [rdi + 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001bb6
movzx r9d, word [rdi + 0x2a]
mov r8d, reloc.netapi32.dll_Ordinal_65
cmp r9d, r8d
jb 0x140001ba5
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r13
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x140001bc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_bUsYlIght_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.14000bdb4
jmp 0x140001bc5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_bUsYlIght_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.14000bdb4
jmp 0x140001bc5
mov edx, dword [rdi + 8]
lea rcx, str.ERROR_kull_m_bUsYlIght_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000bdb4
and esi, ebp
test r12d, r12d
je 0x140001bd1
mov rdi, qword [rdi]
jmp 0x140001bd4
mov rdi, r13
test rdi, rdi
jne 0x140001b4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140002128
Capabilities:
Get common file path

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, 0x70
mov rbp, rcx
mov edx, 0x338
mov ecx, Ordinal_65
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400022f0
and dword [rbx + 0x1c], 0
lea r14, [rax + 8]
and dword [rbx + 0x20], 0
mov eax, 0x4000000
mov dword [r14], eax
mov r8, rbp
mov dword [rbx + 0xc], eax
xor edx, edx
mov eax, SQLGetData
mov rcx, r14
mov word [rbx + 0x28], ax
call fcn.140001fb0
test eax, eax
je 0x1400022d2
lea rsi, [rbx + 0x22a]
mov edi, 0x100
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1400022de
mov ecx, edi
mov rax, rsi
cmp byte [rax], 0
je 0x1400021c7
inc rax
sub rcx, 1
jne 0x1400021b9
test rcx, rcx
je 0x1400021d4
mov rax, rdi
sub rax, rcx
jmp 0x1400021d6
xor eax, eax
test rcx, rcx
je 0x1400022de
lea rcx, [rax + rsi]
sub rdi, rax
je 0x140002219
lea rdx, [rax + 0x7ffffeff]
add rdx, rdi
lea rax, [0x1400fbad8]
sub rax, rcx
test rdx, rdx
je 0x140002219
mov r8b, byte [rax + rcx]
test r8b, r8b
je 0x140002219
mov byte [rcx], r8b
dec rdx
inc rcx
sub rdi, 1
jne 0x1400021fc
test rdi, rdi
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
je 0x1400022de
mov qword [rsp + 0x60], rbp
lea rax, [0x140001ecc]
mov qword [rsp + 0x58], r14
lea rdi, [rbx + 0x32c]
mov qword [rsp + 0x50], rax
lea r9, [0x140001d30]
lea rax, [0x140001e98]
mov rcx, rdi
mov qword [rsp + 0x48], rax
lea r8, [0x140001d20]
lea rax, [0x140001e60]
mov qword [rsp + 0x40], rax
lea rdx, [fcn.140001d1c]
lea rax, [fcn.140001e2c]
mov qword [rsp + 0x38], rax
lea rax, [0x140001df4]
mov qword [rsp + 0x30], rax
lea rax, [0x140001dbc]
mov qword [rsp + 0x28], rax
lea rax, [fcn.140001d38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FCICreate]
mov qword [rbx], rax
test rax, rax
jne 0x1400022de
mov ecx, dword [rdi]
call fcn.1400020ac
mov edx, dword [rdi]
lea rcx, str.ERROR_kull_m_cabinet_create___FCICreate_failed_with_error_code__d:__S_n
mov r8, rax
call fcn.14000bdb4
jmp 0x1400022de
lea rcx, str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.14000bdb4
cmp qword [rbx], 0
jne 0x1400022f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140004b88
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, qword [rsp + 0xb0]
lea rax, [rax - 0x30]
xor ebp, ebp
mov r15d, r9d
and qword [rax - 0x18], rbp
mov r13, r8
mov rbx, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebp
mov r8, rcx
mov rcx, qword [r12]
lea edi, [rbp + 1]
mov dword [rax - 8], edi
lea r9d, [rbp + 0x10]
mov edx, 0x660e
call fcn.140003b04
test eax, eax
je 0x140004cd9
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
xor r9d, r9d
lea edx, [rbp + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140004cb8
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8, rbx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140004ca9
mov edx, r15d
lea ecx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, qword [rsp + 0xa0]
mov rdi, rax
mov qword [rbx], rax
test rax, rax
je 0x140004ccc
mov r14, qword [rsp + 0xa8]
mov r8d, r15d
mov rdx, r13
mov rcx, rax
mov dword [r14], r15d
call fcn.1400c49c0
mov rcx, qword [rsp + 0x48]
lea r8d, [rbp + 1]
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebp, eax
test eax, eax
jne 0x140004ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_genericAES128Decrypt___CryptDecrypt__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and dword [r14], ebp
mov qword [rbx], rax
jmp 0x140004ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_cRyPTO_genericAES128Decrypt___CryptSetKeyParam__IV___0x_08x__n
jmp 0x140004cc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_cRyPTO_genericAES128Decrypt___CryptSetKeyParam__MODE___0x_08x__n
mov edx, eax
call fcn.14000bdb4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140004ced
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_genericAES128Decrypt___kull_m_cRyPTO_hkey__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [r12]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x50]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004de0
Capabilities:
Create new key via cryptacquirecontext

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, 0x70
xor ebx, ebx
mov qword [rbp - 0x20], 1
lea rax, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rax
mov r14d, r9d
mov dword [rbp - 0x18], ebx
mov r15, r8
mov qword [rbp - 0x10], rbx
mov edi, edx
mov rsi, rcx
mov dword [rbp - 8], 1
call fcn.140012c24
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140004f0c
mov r9d, dword [rbp - 0x20]
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x28]
mov rdx, rax
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140004eee
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], 1
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140004ecf
mov r9d, 0x2000
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea ecx, [rbx + 2]
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
test rax, rax
je 0x140004ec3
mov r9, qword [rbp + 0x48]
lea r8, [rbp - 0x30]
mov edx, edi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140004f28
mov ebx, eax
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140004ee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_DerAndKeyToPfx___CryptImportKey__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [rbp - 0x40]
call fcn.140003d14
jmp 0x140004f02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_DerAndKeyToPfx___CryptAcquireContext__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x70]
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 0x140005f7c
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r15d, r9d
mov r12, r8
mov esi, edx
mov r14, rcx
xor ebx, ebx
mov dword [rax - 0x38], ebx
lea r9d, [rbx + 8]
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.SHA256
lea rcx, [rax - 0x28]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x1400060d1
and dword [rsp + 0x28], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
lea r8, [rsp + 0xa8]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x1400060b4
mov edx, dword [rsp + 0xa8]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400060c2
and dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0xa8]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x14000609b
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
xor r9d, r9d
lea r8d, [rbx + 0x20]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
setns bl
mov dword [rsp + 0x40], ebx
test ebx, ebx
jne 0x14000608e
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_nGc_signature_derived___BCryptFinishHash:_0x_08x_n
call fcn.14000bdb4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
jmp 0x1400060a9
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_nGc_signature_derived___BCryptCreateHash:_0x_08x_n
call fcn.14000bdb4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400060c2
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_nGc_signature_derived___BCryptGetProperty:_0x_08x_n
call fcn.14000bdb4
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x1400060df
mov edx, eax
lea rcx, str.ERROR_kull_m_cRyPTO_nGc_signature_derived___BCryptOpenAlgorithmProvider:_0x_08x_n
call fcn.14000bdb4
jmp 0x1400060f1
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret