Function at 0x14009fd70
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via systemfunction033

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xe0
mov eax, dword [rcx]
xor edi, edi
mov rbp, rcx
and dword [rsp + 0x40], edi
and dword [rsp + 0x44], edi
and qword [rsp + 0x48], rdi
lea rcx, [r11 - 0x40]
lea rbx, [rdx + rax]
mov r12, r8
mov dword [rsp + 0x50], 0x10
mov dword [rsp + 0x54], 0x10
mov qword [rsp + 0x58], rcx
test eax, eax
je 0x1400a0034
mov r8d, dword [rbp + 4]
test r8d, r8d
je 0x1400a0034
movzx edx, word [rbx + 2]
mov esi, dword [rsp + 0x138]
mov ecx, edx
sub ecx, 1
je 0x14009fed7
cmp ecx, 1
je 0x14009fdf9
lea rcx, str.PA7LB_kuhl_m_lsadump_getHash___Unknow_SAM_HASH_revision___hu__n
call fcn.14000c030
jmp 0x1400a0024
cmp dword [rbx + 4], 0x10
jb 0x1400a0034
lea ebp, [r8 - 0x18]
lea rcx, [rsp + 0x60]
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009fe62
lea rax, [rsp + 0x60]
lea r8, [rbx + 0x18]
lea rdx, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x110]
mov r9d, ebp
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x118]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140004c90
jmp 0x14009fe78
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.PA7LB_kull_m_crypto_genericAES128Decrypt___CryptAcquireContext__0x_08x__n
mov edx, eax
call fcn.14000c030
xor eax, eax
test eax, eax
je 0x1400a0024
mov eax, dword [rsp + 0x110]
mov ecx, 0x40
mov rdx, rax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14009fec4
mov r8d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov edi, 1
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009ffd2
cmp r8d, 6
jb 0x1400a0034
lea rcx, [rsp + 0x70]
call sub.cryptdll.dll_MD5Init
lea rcx, [rsp + 0x70]
mov r8d, 0x10
mov rdx, r12
call sub.cryptdll.dll_MD5Update
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x70]
mov r8d, 4
call sub.cryptdll.dll_MD5Update
mov r11d, esi
lea rcx, str.NTPASSWORDHISTORY
neg r11d
lea rax, str.NTPASSWORD
lea rdx, str.LMPASSWORD
sbb r8d, r8d
and r8d, 7
add r8d, 0xb
test esi, esi
cmovne rax, rcx
lea rcx, str.LMPASSWORDHISTORY
test esi, esi
cmovne rdx, rcx
cmp dword [rsp + 0x130], edi
lea rcx, [rsp + 0x70]
cmovne rdx, rax
call sub.cryptdll.dll_MD5Update
lea rcx, [rsp + 0x70]
call sub.cryptdll.dll_MD5Final
mov r11d, dword [rbp + 4]
mov ecx, 0x40
sub r11d, 4
mov edx, r11d
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x40], r11d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400a0034
mov r8d, dword [rsp + 0x40]
lea rdx, [rbx + 4]
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call sub.ADVAPI32.dll_SystemFunction033
test eax, eax
setns dil
test edi, edi
jne 0x14009ffd6
lea rcx, str.PA7LB_kuhl_m_lsadump_getHash___RtlDecryptData2_n
call fcn.14000c030
test edi, edi
je 0x1400a0024
mov r8d, dword [rsp + 0x128]
mov edx, dword [rsp + 0x40]
test esi, esi
lea rcx, str.ntlm
lea rax, str.NTLM
lea r9, str.LM
cmovne rax, rcx
test esi, esi
lea rcx, str.lm
cmovne r9, rcx
cmp dword [rsp + 0x130], 0
mov rcx, qword [rsp + 0x48]
cmovne r9, rax
mov dword [rsp + 0x20], esi
call fcn.1400b70cc
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400a0034
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0xe0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret