joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003ae0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003b14
cmp word [rcx], 0x5a4d
jne 0x140003b14
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003b14
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b14
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003a20
test eax, eax
jne 0x140003b30
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003a90
test rax, rax
je 0x140003b25
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400042e5
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400041e0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004180
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004644
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1404705f8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1404705f4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004692
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000468a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004779
inc ebx
add rax, 0x28
jmp 0x14000466a
mov rcx, r12
call fcn.140004e71
mov rbp, rax
test rax, rax
jne 0x1400046b1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400045e0
movsxd rbx, ebx
mov rax, qword [0x1404705f8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004f1f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1404705f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004713
mov rax, qword [0x1404705f8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400045e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004773
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004773
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1404705f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004773
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400045e0
inc dword [0x1404705f4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ba0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140470660]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140470640]
test rbx, rbx
je 0x140004bec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004be6
test eax, eax
jne 0x140004be6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004bbe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004da0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004dc3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004dc3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004dc4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004dfe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004df5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004e00
inc r8d
add rax, 0x28
jmp 0x140004ddc
xor eax, eax
ret

Function at 0x140004e71
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14046b710]
mov r8, rcx
mov rcx, r9
call fcn.140004da0
test eax, eax
je 0x140004e9d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004dc4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1806a1ab3
Capabilities:
Encode data using xor

Disassembly:
sar r9w, 0xa3
popfq
movsx ebx, r9w
pop rax
call fcn.18068da4d
movzx ebp, word [r8]
add r8, 2
mov eax, 0xa482b488
neg al
ror rax, 0x75
xor bp, bx
jmp 0x1806a2ee7
not r8
pop r10
pop r8
jne 0x18068be1f
mov word [r9], ax
call fcn.18069ef18
push 0xffffffff9a1c88a4
mov esi, 0x7eab9e0c
mov rsp, rbp
jmp 0x1806ab29d
not bp
neg al
lea rax, [rax*4 + 0x6b9267a7]
sbb ax, ax
rol bp, 1
neg bp
dec eax
jg fcn.180699fd1
jle 0x1806adda8
lea rsp, [rsp + 0x10]
jmp fcn.1806b50a5
lea r10, [rsi*4 + 0x798ca687]
pop r12
jmp 0x1806b17bd
dec bp
call fcn.1806a0284
lea r13, [r10 + rsi - 0x78e8075b]
pop r11
lea r8, [r10 + rsi*2 + 0x75858b9a]
pop r14
mov r15d, esi
mov r9d, r8d
movzx edx, r13b
pop rbp
inc esi
jno 0x180693cdd
xor si, ax
sub r9, 2
jmp 0x1806a1aaa
push 0x4c0e2e1b
ror ax, 1
not ax
neg ax
push 0xffffffffc29c3599
not ax
jmp 0x1806c7bd7

Function at 0x1806b5af8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + rbp - 0x5ca6057b], rbp
lea rdi, [rbp + rdi - 0x5ca60573]
adc word [rsp + rbp - 0x5ca6057b], bp
movzx ebp, word [r10 + rbp - 0x5ca6057b]
push 0xffffffffb9b00902
shl qword [rsp + 4], 0xa3
add r10, 2
xor bp, bx
sub bp, 0x2202
rol bp, 1
xor bp, 0x318b
neg bp
inc bp
xor bx, bp
lea rbp, [rsp + rbp + 0x10]
push 0xffffffffa11a462d
mov qword [rbp + riz], rcx
push 0xffffffff82b643a3
call fcn.1806cb172
add byte [rax], al
add byte [rsi + 0x28a88ae8], bh
fmul dword [rbp - 0x7b766d21]
add al, 0xb9
xor dword [rcx], 0xffffffa7
sub al, 0xe7
scasd eax, dword [rdi]
mov ecx, 0x2ca73183
out 0xaf, eax
xor dword [rax + riz*8], ebx
fmul dword [rbx + 0x1d41e94d]
jge 0x1806b5b6d
mov word ss:[rax + 0x51], fs
cmpsb byte [rsi], byte [rdi]
sbb dl, byte [rax + 0x56]
shl dword [rax + 0x36485f01], 1
xor dword [rax + 0x3f], ebx
xchg ebp, eax
movsb byte [rdi], byte [rsi]
cmp al, 0xa1
add edx, dword [rbx + rdi + 0x32c5b9d6]
invalid

Function at 0x1806b6069
Capabilities:
Encode data using xor

Disassembly:
movsx ebx, di
lea rdi, [0x1806b3a58]
lea rsp, [rsp + 8]
mov ebx, 0x9f8f313d
push rbx
movzx ebx, byte [rdx]
ror word [rsp + 2], 0x8b
xor ebx, eax
and ebx, 0xff
mov ebx, dword [rdi + rbx*4]
shr eax, 8
mov byte [rsp + 7], 0xb7
xor eax, ebx
inc rdx
xor eax, 0xb806c6ad
dec r8
lea rsp, [rsp + 8]
jne 0x1806b6078
mov ebx, 0x953237b7
lea rdi, [rbx + rbx*4 + 0x448fdc39]
call fcn.18068a30b
Function at 0x140001490
Capabilities:
Parse pe header

Disassembly:
movzx eax, word [rcx]
cmp eax, 0x5a4d
je 0x14000149d
xor eax, eax
ret
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400014bd
mov eax, dword [rax + rcx + 0x88]
add rcx, rax
mov qword [rdx], rcx
mov eax, 1
ret
xor eax, eax
ret
Function at 0x1400014c0
Capabilities:
Encode data using xor

Disassembly:
push r13
push r14
sub rsp, 0x1b8
mov r14, rcx
movups xmm0, xmmword [0x1400164a0]
lea rcx, [0x140000000]
movzx edx, word [0x1400164b0]
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
mov eax, 0x100
movups xmmword [rsp + 0x190], xmm0
mov word [rsp + 0x1a0], dx
movups xmm0, xmmword [rcx + rax + 0x16390]
movups xmm1, xmmword [rcx + rax + 0x16380]
movups xmm2, xmmword [rcx + rax + 0x16370]
movups xmm3, xmmword [rcx + rax + 0x16360]
movups xmmword [rsp + rax + 0x80], xmm0
movups xmmword [rsp + rax + 0x70], xmm1
movups xmmword [rsp + rax + 0x60], xmm2
movups xmmword [rsp + rax + 0x50], xmm3
sub rax, 0x40
jne 0x14000150a
xor eax, eax
xor edx, edx
movdqu xmm1, xmmword [0x1400164c0]
xor r13d, r13d
movdqu xmm0, xmmword [str.E]
movdqu xmm2, xmmword [rsp + rax + 0x90]
add edx, 0x10
paddb xmm2, xmm1
pxor xmm2, xmm0
movdqu xmmword [rsp + rax + 0x90], xmm2
add rax, 0x10
cmp edx, 0x110
jb 0x14000155e
mov al, byte [rsp + 0x1a0]
mov dl, byte [rsp + 0x1a1]
add al, 0xfe
add dl, 0xfe
xor al, 0x7b
movzx ecx, word [r14 + 0x14]
xor dl, 0x7b
mov byte [rsp + 0x1a0], al
mov byte [rsp + 0x1a1], dl
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0x112
call fcn.1400038a0
mov rax, rsp
mov rcx, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea r9, [rsp + 0x80]
mov dword [rax + 0x20], 0x1000
mov dword [rax + 0x28], 4
call fcn.1400038b3
mov r8d, 0x112
lea rdx, [rsp + 0x90]
mov rcx, qword [rdx - 0x18]
call 0x140001700
movzx ecx, word [r14 + 0x2c]
mov dword [rsp + 0x70], 0
call fcn.1400038a0
mov r10, rsp
mov rcx, 0xffffffffffffffff
mov r9d, 0x40
lea rdx, [rsp + 0x78]
lea r8, [rsp + 0x80]
lea rax, [rsp + 0x70]
mov qword [r10 + 0x20], rax
call fcn.1400038b3
movzx ecx, word [r14 + 0x44]
mov qword [rsp + 0x60], 0xffffffffffffffff
call fcn.1400038a0
mov r10, rsp
lea rcx, [rsp + 0x60]
mov rax, qword [rcx + 0x18]
mov edx, 0x1fffff
xor r8d, r8d
mov r9, 0xffffffffffffffff
mov qword [r10 + 0x20], rax
mov qword [r10 + 0x28], r13
mov qword [r10 + 0x30], r13
mov qword [r10 + 0x38], r13
mov qword [r10 + 0x40], r13
mov qword [r10 + 0x48], r13
mov qword [r10 + 0x50], r13
call fcn.1400038b3
movzx ecx, word [r14 + 0x5c]
mov qword [rsp + 0x68], 0xffffffffff676980
call fcn.1400038a0
xor edx, edx
lea r8, [rsp + 0x68]
mov rcx, qword [r8 - 8]
call fcn.1400038b3
mov rcx, qword [rsp + 0x1a8]
mov qword [rsp + 0x1a8], 0
xor rcx, rsp
cmp rcx, qword [0x140022008]
jne 0x1400016eb
add rsp, 0x1b8
pop r14
pop r13
ret
call fcn.1400038e0
nop
nop dword [rax + rax]
nop dword [rax]
sub rsp, 0x28
cmp rcx, rdx
jae 0x140001758
movups xmm0, xmmword [rdx + 0x100]
movups xmmword [rcx + 0x100], xmm0
movzx eax, word [rdx + 0x110]
mov word [rcx + 0x110], ax
mov eax, 0x100
movups xmm0, xmmword [rdx + rax - 0x10]
movups xmmword [rcx + rax - 0x10], xmm0
movups xmm1, xmmword [rdx + rax - 0x20]
movups xmmword [rcx + rax - 0x20], xmm1
movups xmm2, xmmword [rdx + rax - 0x30]
movups xmmword [rcx + rax - 0x30], xmm2
movups xmm3, xmmword [rdx + rax - 0x40]
movups xmmword [rcx + rax - 0x40], xmm3
sub rax, 0x40
jne 0x14000172a
add rsp, 0x28
ret
Function at 0x140004238
Capabilities:
Parse pe header

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

Function at 0x1400065dc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000646f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000646f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000646f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000646f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000646f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000646f
cmp dword [rcx + 0xf8], 0
je 0x14000646f
mov ecx, ebx
call fcn.140006510
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140006300
cmp dword [rbp + 0x20], 0
je 0x1400064bc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400064c4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140006408
Function at 0x1400154a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400154c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400154c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005610
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400510a8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_SetDefaultDllDirectories]
mov edx, 1
lea rcx, [0x140002250]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, [0x1400540f0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [0x1400540f8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call fcn.14000cc20
test eax, eax
je 0x14000567e
mov r8d, 0x2ab
lea rdx, str.FvSDKTestClient.cpp
lea rcx, str.status__FV_SUCCESS
call fcn.14001be78
lea rcx, [rsp + 0x30]
call fcn.14000cb20
test eax, eax
je 0x1400056a5
mov r8d, 0x2af
lea rdx, str.FvSDKTestClient.cpp
lea rcx, str.status__FV_SUCCESS
call fcn.14001be78
mov rcx, qword [rsp + 0x30]
call fcn.140004e40
mov rcx, qword [rsp + 0x30]
call fcn.140005140
mov rcx, qword [rsp + 0x30]
call fcn.140005250
xor eax, eax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [0x140002300]
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x7530
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
call fcn.14000cad0
test eax, eax
je 0x14000571e
cmp eax, 5
je 0x14000571e
mov r8d, 0x2bb
lea rdx, str.FvSDKTestClient.cpp
lea rcx, str._status__FV_SUCCESS____status__FV_NOT_IMPLEMENTED_
call fcn.14001be78
or edx, 0xffffffff
mov byte [0x1400540e8], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x30]
call fcn.14000cb70
test eax, eax
je 0x140005761
mov r8d, 0x2c1
lea rdx, str.FvSDKTestClient.cpp
lea rcx, str.status__FV_SUCCESS
call fcn.14001be78
call fcn.14000cea0
test eax, eax
je 0x140005783
mov r8d, 0x2c4
lea rdx, str.FvSDKTestClient.cpp
lea rcx, str.status__FV_SUCCESS
call fcn.14001be78
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140012b60
add rsp, 0x40
pop rbx
ret
Function at 0x14000cc20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1400510a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp qword [0x140052450], 0
jne 0x14000cd50
xor ebx, ebx
lea rcx, [rsp + 0x30]
mov edx, 0x208
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000ccff
lea r8, [0x14003874c]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.14001c230
mov r8, qword [str.FvSDK_x64.dll]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.14001c230
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14000f750
test eax, eax
je 0x14000ccff
cmp dword [rsp + 0x20], ebx
je 0x14000ccff
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140052450], rax
test rax, rax
jne 0x14000ccd3
lea eax, [rbx + 6]
jmp 0x14000cd52
lea rdx, str.fv_QueryInterface
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140052458], rax
mov rsi, rax
test rax, rax
jne 0x14000cd04
mov rcx, qword [0x140052450]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
or eax, 0xffffffff
jmp 0x14000cd52
lea rdi, [0x140052460]
nop dword [rax + rax]
mov rcx, rsi
call qword [fcn.1400134c0]
mov ecx, ebx
call rsi
mov qword [rdi], rax
test rax, rax
je 0x14000ccf2
inc ebx
add rdi, 8
cmp ebx, 0xf
jae 0x14000cd39
mov rsi, qword [0x140052458]
jmp 0x14000cd10
mov rbx, qword [0x140052498]
test rbx, rbx
je 0x14000cd50
mov rcx, rbx
call qword [fcn.1400134c0]
call rbx
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140012b60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000d100
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14000d1c3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14000d134
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000d1c6
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14000d17f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14000d183
test rax, rax
je 0x14000d1c3
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000d1b4
cmp rdx, rax
jb 0x14000d1a0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800066a0
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.18000ebac
mov rdi, rax
lea rdx, [0x180015031]
lea rax, [0x1800112b8]
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 0x1800066e0
xor edx, edx
mov r8d, 0x1000
mov rcx, r10
call sub.msvcrt.dll_memset
lea rax, [0x1800112e0]
mov r8d, 0x1000
lea rdx, str.PPPRRROOOFFFIIILLLEEE
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.180003740
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.18000eba4
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800073c0
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 0x180007440
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18000743a
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 0x180007440
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800074b8
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 0x1800074b2
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 0x1800074b2
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 0x1800074bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800074cf
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 0x1800079b0
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 [0x180014008]
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 0x180007a4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180007a47
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 0x180007a4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp - 0x39]
test rbx, rbx
jne 0x180007a63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180007b76
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 0x180007acb
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180007b5b
mov rcx, qword [rbp - 0x51]
mov ebx, r13d
mov dword [rbp - 0x45], 1
test rcx, rcx
je 0x180007af1
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 0x180007b5b
mov rcx, qword [rbp - 0x51]
mov ebx, r13d
test rcx, rcx
je 0x180007b1b
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 0x180007b5b
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x180007b5b
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 0x180007b76
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp - 0x51], r13
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x180007b87
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.18000eb80
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret