Function at 0x18005b3fc
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via systemfunction032

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov eax, dword [rcx]
xor edi, edi
mov r13, r8
and dword [rbp - 0x79], edi
and dword [rbp - 0x75], edi
and qword [rbp - 0x71], rdi
lea r8d, [rdi + 0x10]
mov rsi, rcx
lea rcx, [rbp + 0xf]
lea rbx, [rdx + rax]
mov dword [rbp - 0x69], r8d
mov dword [rbp - 0x65], r8d
mov qword [rbp - 0x61], rcx
test eax, eax
je 0x18005b67a
movzx edx, word [rbx + 2]
mov r12d, dword [rbp + 0x7f]
mov ecx, edx
dec ecx
je 0x18005b536
dec ecx
je 0x18005b474
lea rcx, str.ERROR_kuhl_m_lsadump_getHash___Unknow_SAM_HASH_revision___hu__n
call fcn.180008f6c
jmp 0x18005b66b
cmp dword [rbx + 4], r8d
jb 0x18005b67a
mov esi, dword [rsi + 4]
mov r9d, Ordinal_26
lea rcx, [rbp - 0x59]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
sub esi, r9d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x18005b4d5
lea rax, [rbp - 0x59]
lea r8, [rbx + 0x18]
lea rdx, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x57]
mov r9d, esi
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x5f]
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.180004128
jmp 0x18005b4eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptAcquireContext__0x_08x__n
mov edx, eax
call fcn.180008f6c
xor eax, eax
test eax, eax
je 0x18005b66b
mov eax, dword [rbp + 0x57]
mov ecx, 0x40
mov edx, eax
mov dword [rbp - 0x75], eax
mov dword [rbp - 0x79], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x71], rax
test rax, rax
je 0x18005b527
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x5f]
mov rcx, rax
call fcn.180076230
mov edi, 1
mov rcx, qword [rbp + 0x5f]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18005b623
cmp dword [rsi + 4], 6
jb 0x18005b67a
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Init]
lea rcx, [rbp - 0x49]
mov r8d, reloc.WLDAP32.dll_Ordinal_16
mov rdx, r13
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x49]
mov r8d, 4
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r11d, r12d
lea rcx, str.NTPASSWORDHISTORY
neg r11d
lea rax, str.NTPASSWORD
lea rdx, str.LMPASSWORD
sbb r8d, r8d
and r8d, 7
add r8d, 0xb
test r12d, r12d
cmovne rax, rcx
lea rcx, str.LMPASSWORDHISTORY
cmovne rdx, rcx
cmp dword [rbp + 0x77], edi
lea rcx, [rbp - 0x49]
cmovne rdx, rax
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x49]
call qword [sym.imp.cryptdll.dll_MD5Final]
mov r11d, dword [rsi + 4]
mov ecx, 0x40
sub r11d, 4
mov edx, r11d
mov dword [rbp - 0x75], r11d
mov dword [rbp - 0x79], r11d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x71], rax
test rax, rax
je 0x18005b67a
mov r8d, dword [rbp - 0x79]
lea rdx, [rbx + 4]
mov rcx, rax
call fcn.180076230
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x79]
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
setns dil
test edi, edi
jne 0x18005b627
lea rcx, str.ERROR_kuhl_m_lsadump_getHash___RtlEncryptDecryptRC4_n
call fcn.180008f6c
test edi, edi
je 0x18005b66b
mov r8d, dword [rbp + 0x6f]
mov edx, dword [rbp - 0x79]
test r12d, r12d
lea rcx, str.ntlm
lea rax, str.NTLM
lea r9, str.LM
cmovne rax, rcx
lea rcx, str.lm
mov dword [rsp + 0x20], r12d
cmovne r9, rcx
cmp dword [rbp + 0x77], 0
mov rcx, qword [rbp - 0x71]
cmovne r9, rax
call fcn.180069880
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x18005b67a
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret