joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f8c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401fc040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1401fca18]
mov edi, edx
cmp byte [rbx + 0x1f6d], 0
jne 0x14000f920
cmp byte [rbx + 0x1f6e], 0
jne 0x14000f920
mov r9d, dword [rbx + 0x3018]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002f90
test dil, 1
je 0x14000fa4d
jmp 0x14000f9ac
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3018]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
mov edx, 0x10
mulss xmm0, dword [0x1401f533c]
mulss xmm1, dword [0x1401f532c]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ce8], 0
mov dword [rbx + 0x1cd4], 1
movss dword [rbx + 0x1ce0], xmm0
movss dword [rbx + 0x1ce4], xmm1
movss xmm0, dword [rbx + 0x1690]
mulss xmm0, dword [0x1401f52b8]
or dword [rbx + 0x1cd0], 0x41
movss dword [rbx + 0x1d30], xmm0
call fcn.140002f90
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000fa00
lea r11, [0x1401f0b20]
nop dword [rax]
cmp r9b, 0x23
jne 0x14000f9e3
cmp byte [r8], r9b
jne 0x14000f9e3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000f9d0
not ecx
call fcn.140009840
test rax, rax
je 0x14000fa4d
cmp byte [rax + 0x8e], 0
je 0x14000fa4d
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov dword [rax + 0x4c], 0
lea rcx, [rsp + 0x20]
mov byte [rax + 0xb0], 1
mov edx, 0x10
inc dword [rbx + 0x3018]
mov r9d, dword [rbx + 0x3018]
call fcn.140002f90
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000be80
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140035310
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140013d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x30b8], 0
lea rbx, [rcx + 0x30c0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140013e17
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140013dca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140015b40
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003650
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x30b8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x30c8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1401fca10]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140013e1f
mov rcx, rbx
call fcn.140003650
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400271f0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1401fc040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [0x1401fca88]
lea rdx, [rsp + 0x28]
mov rdi, qword [0x1401fca18]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub eax, dword [rsp + 0x28]
mov qword [rsp + 0x40], 0
movd xmm1, eax
mov eax, dword [rsp + 0x34]
sub eax, dword [rsp + 0x2c]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1401fca90]
cvtsi2ss xmm0, qword [0x1401fca98]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1401fca90], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x140], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x141], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rbx, qword [0x1401fca18]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x143], 0
mov byte [rdi + 0x142], al
cmp byte [rbx + 0x39b], 0
je 0x14002732f
cvttss2si eax, dword [rbx + 0x128]
mov rcx, qword [0x1401fca88]
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], eax
cvttss2si eax, dword [rbx + 0x12c]
mov dword [rsp + 0x3c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x14002732f
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx + 0x128], 0xff7fffff
mov dword [rbx + 0x12c], 0xff7fffff
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400273ae
mov rdx, qword [0x1401fca88]
cmp rax, rdx
je 0x140027367
mov rcx, rax
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1400273ae
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400273ae
mov rcx, qword [0x1401fca88]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x1400273ae
movd xmm0, dword [rsp + 0x20]
movd xmm1, dword [rsp + 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx + 0x128], xmm0
movss dword [rbx + 0x12c], xmm1
cmp byte [rdi + 0xc8], 0
je 0x1400273be
mov eax, 0xffffffff
jmp 0x1400273cb
mov rax, qword [0x1401fca18]
mov eax, dword [rax + 0x1f68]
cmp dword [0x1401fc2e4], eax
je 0x1400273de
mov dword [0x1401fc2e4], eax
call fcn.140026da0
call fcn.140026f20
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140035310
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140033f30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401fc040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx esi, r9b
mov r14d, r8d
mov r15, rdx
mov qword [rsp + 0x20], rdx
mov rdi, qword [rsp + 0xb0]
mov qword [rsp + 0x50], rdi
xor r12d, r12d
mov ebp, r12d
mov dword [rsp + 0x28], r12d
nop dword [rax]
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400340c7
cmp ebx, 0xc
je 0x1400340c7
mov r14d, ebx
cmp ebx, 0x1b
cmove r14d, r12d
test r14d, r14d
jne 0x140034000
mov rax, qword [rdi + 0x18]
cmp rax, 9
jb 0x140033fea
mov rsi, rdi
cmp rax, 0xf
jbe 0x140033fc4
mov rsi, qword [rdi]
mov qword [rdi + 0x10], 9
mov r8d, 9
lea rdx, [0x1401f5098]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + 9], 0
jmp 0x14003407e
lea r9, [0x1401f5098]
mov edx, 9
mov rcx, rdi
call fcn.140033270
jmp 0x14003407e
movsxd r8, ebx
lea rdx, [rsp + 0x30]
call fcn.1400334d0
mov rsi, rax
or ebp, 1
cmp rdi, rax
je 0x14003407e
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x140034052
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14003404d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140034172
mov rcx, r8
call fcn.1400355b4
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
test bpl, 1
je 0x1400340c4
and ebp, 0xfffffffe
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400340c4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400340bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140034172
call fcn.1400355b4
xor sil, sil
inc ebx
cmp ebx, 0x100
jl 0x140033f85
mov qword [rsp + 0x20], 1
lea rcx, [rsp + 0x20]
call fcn.140001820
test sil, sil
jne 0x140033f80
mov rdx, rdi
mov rcx, r15
call fcn.1400344d0
mov byte [r15 + 0x20], sil
mov dword [r15 + 0x28], r14d
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x14003413a
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140034135
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140034179
mov rcx, r8
call fcn.1400355b4
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, r15
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140035310
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140034c80
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1401fde80]
xorps xmm0, xmm0
add rcx, 1
js 0x140034c9b
cvtsi2ss xmm0, rcx
jmp 0x140034cb0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1401fde70]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1401f53ac]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140034ce2
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140034ce2
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x1401fdea8]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x140034d1b
cmp rdx, 0x200
jae 0x140034d18
lea rdx, [rdx*8]
cmp rdx, rcx
jae 0x140034d1b
mov rdx, rcx
add rsp, 0x28
jmp 0x140034d50
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140034d81
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1401fde78]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1401fde88]
lea rdx, [rdi + rdi]
call fcn.1400345f0
mov rax, qword [0x1401fde78]
lea r9, [rdi - 1]
mov qword [0x1401fdea0], r9
mov qword [0x1401fdea8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140034ef4
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1401fde88]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140034e40
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140034eb5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140034e7d
mov r10, qword [rdx]
cmp r10, rax
je 0x140034e77
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140034eb5
cmp r9, rdx
je 0x140034e91
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140034ec9
cmp r9, rdx
jne 0x140034e82
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x140034eef
mov r9, qword [0x1401fdea0]
jmp 0x140034df1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140034eb5
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140034d50
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1401fde80]
xorps xmm0, xmm0
add rcx, 1
js 0x140034c9b
cvtsi2ss xmm0, rcx
jmp 0x140034cb0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1401fde70]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x1401f53ac]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140034ce2
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140034ce2
movabs rax, 0x8000000000000000
mov rcx, rax
mov rdx, qword [0x1401fdea8]
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rdx, rcx
jae 0x140034d1b
cmp rdx, 0x200
jae 0x140034d18
lea rdx, [rdx*8]
cmp rdx, rcx
jae 0x140034d1b
mov rdx, rcx
add rsp, 0x28
jmp 0x140034d50
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140034d81
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1401fde78]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1401fde88]
lea rdx, [rdi + rdi]
call fcn.1400345f0
mov rax, qword [0x1401fde78]
lea r9, [rdi - 1]
mov qword [0x1401fdea0], r9
mov qword [0x1401fdea8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140034ef4
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1401fde88]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140034e40
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140034eb5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140034e7d
mov r10, qword [rdx]
cmp r10, rax
je 0x140034e77
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140034eb5
cmp r9, rdx
je 0x140034e91
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140034ec9
cmp r9, rdx
jne 0x140034e82
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x140034eef
mov r9, qword [0x1401fdea0]
jmp 0x140034df1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140034eb5
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140035fc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140036012
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140036012
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140036012
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140036012
cmp dword [rcx + 0x84], 0xe
jbe 0x140036012
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140036014
xor al, al
add rsp, 0x28
ret
Function at 0x1400012b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push r12
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0x88
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rdx
mov qword [rbp + 7], rcx
mov rbx, rcx
mov dword [rsp + 0x20], 0xf0000000
xor r12d, r12d
lea rcx, [rbp + 7]
xor r8d, r8d
xor edx, edx
lea r9d, [r12 + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14000149a
mov eax, dword [r15 + 0x10]
lea r8d, [r12 + 1]
mov rcx, qword [rbp + 7]
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor edx, edx
mov dword [rbp - 1], eax
lea rax, [rbp - 5]
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x80], r14
mov dword [rbp - 5], r12d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edi, dword [rbp - 5]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
cmp rdi, 0xf
ja 0x14000137c
mov r8d, edi
mov qword [rbp + 0x1f], rdi
xor edx, edx
mov qword [rbp + 0x27], 0xf
lea rcx, [rbp + 0xf]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + rdi + 0xf], r12b
jmp 0x1400013f0
mov eax, 0x16
mov r14, rdi
or r14, 0xf
cmp r14, rax
cmovb r14, rax
lea rcx, [r14 + 1]
cmp rcx, 0x1000
jb 0x1400013cb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400014bf
mov rcx, rax
call fcn.1400043f0
test rax, rax
je 0x1400013c4
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400013d3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400043f0
mov rsi, rax
mov r8, rdi
mov qword [rbp + 0xf], rsi
xor edx, edx
mov qword [rbp + 0x1f], rdi
mov rcx, rsi
mov qword [rbp + 0x27], r14
call sub.VCRUNTIME140.dll_memset
mov byte [rsi + rdi], r12b
cmp qword [r15 + 0x18], 0xf
jbe 0x1400013fa
mov r15, qword [r15]
cmp qword [rbp + 0x27], 0xf
lea rcx, [rbp + 0xf]
mov r8d, dword [rbp - 1]
mov rdx, r15
cmova rcx, qword [rbp + 0xf]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbp - 5]
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
mov dword [rsp + 0x30], eax
lea rax, [rbp - 1]
cmova rcx, qword [rbp + 0xf]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 7]
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp + 7]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movups xmm0, xmmword [rbp + 0xf]
mov rsi, qword [rsp + 0xc0]
mov rax, rbx
movups xmm1, xmmword [rbp + 0x1f]
mov r14, qword [rsp + 0x80]
mov rdi, qword [rsp + 0xc8]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400043d0
add rsp, 0x88
pop r15
pop r12
pop rbx
pop rbp
ret
xorps xmm0, xmm0
lea rdx, [0x1400065e1]
movups xmmword [rbx], xmm0
xor r8d, r8d
mov qword [rbx + 0x10], r12
mov rcx, rbx
mov qword [rbx + 0x18], r12
call fcn.140003ab0
mov rax, rbx
jmp 0x140001480
call fcn.140001110
int3
Function at 0x1400028d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400028f8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000291e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002920
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002979
test ecx, ecx
jle 0x140002959
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002979
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002979
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400029a0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400029c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400029d8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400029f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400029f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002a32
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002ace
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002a6d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002aae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002ace
cmp rbx, rax
ja 0x140002a80
test rbx, rbx
je 0x140002ace
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002f30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002f5d
xor eax, eax
jmp 0x1400030c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002f97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002f97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400030c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400030bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002fda
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003005
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400030c1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003074
sub eax, 1
je 0x140003074
cmp eax, 2
jne 0x1400030bc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400030c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400030a2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400030bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400030c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400043d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret