Function at 0x40737b
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xf0000000
push 0x18
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4076ca
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4076c0
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
push eax
push 0x40
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x4076b5
push dword [ebp - 4]
push dword [esi + 0x1c]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 1
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x407699
push str._nRSA_decrypt_is_a_success_n
call fcn.00409709
push dword [ebx]
push str.__MasterKey_len:__u_n
call fcn.00409709
push dword [ebx]
lea eax, [ebx + 8]
push eax
mov edi, 0x100001
mov eax, edi
call fcn.0040efba
push dword [ebx + 4]
push str.__SuppKey___len:__u_n
call fcn.00409709
mov eax, dword [ebx]
push dword [ebx + 4]
lea eax, [eax + ebx + 8]
push eax
mov eax, edi
call fcn.0040efba
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push 0
lea eax, [eax + ebx + 8]
push eax
push 0x6603
push dword [ebp - 0x10]
push 0x18
pop edi
call fcn.00403390
add esp, 0x3c
test eax, eax
je 0x4076ac
mov eax, dword [ebx]
push 0
lea eax, [eax + ebx + 0x20]
push eax
push 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x407662
mov esi, dword [esi + 8]
push esi
push 0x40
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor edi, edi
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x407675
push dword [ebp - 4]
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push edi
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x40764d
mov eax, dword [esi + 4]
lea eax, [eax + esi + 8]
push str._n3DES_decrypt_is_a_success_too_n
mov dword [ebp - 8], eax
call fcn.00409709
push dword [ebp - 4]
mov eax, 0x100001
push esi
call fcn.0040efba
mov edi, 0x49ed98
push edi
call fcn.00409709
push str.__nonce____:
call fcn.00409709
push dword [esi + 4]
lea eax, [esi + 8]
push eax
xor eax, eax
call fcn.0040efba
push edi
call fcn.00409709
push str.__SID______:
call fcn.00409709
push dword [ebp - 8]
call fcn.0040f155
push edi
call fcn.00409709
push str.__SHA1_____:
call fcn.00409709
mov eax, dword [ebp - 4]
lea eax, [esi + eax - 0x14]
push 0x14
push eax
xor eax, eax
call fcn.0040efba
push edi
call fcn.00409709
push 0x14
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
add eax, 0xffffffec
push eax
push esi
push 0x8004
call fcn.0040325b
add esp, 0x50
test eax, eax
je 0x407644
push str.___Calc_SHA1:
call fcn.00409709
lea eax, [ebp - 0x34]
push 0x14
push eax
xor eax, eax
call fcn.0040efba
push edi
call fcn.00409709
mov eax, dword [ebp - 4]
add esp, 0x10
push 5
lea esi, [esi + eax - 0x14]
pop ecx
lea edi, [ebp - 0x34]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x407641
mov eax, dword [ebx]
mov edi, dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push 0x40
mov dword [edi], eax
call esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
test eax, eax
je 0x407641
push dword [edi]
lea ecx, [ebx + 8]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
and dword [ebp - 0x14], 0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
push eax
push 0x40
mov dword [ebp - 4], eax
call esi
mov dword [edi], eax
test eax, eax
je 0x40761a
push dword [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CopySid]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x407641
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x40762c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], eax
mov eax, dword [edi]
test eax, eax
je 0x40763b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
mov eax, dword [ebp + 0x18]
and dword [eax], 0
mov esi, dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x407675
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptDecrypt__0x_08x__n
call fcn.00409709
pop ecx
pop ecx
jmp 0x407644
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptSetKeyParam__0x_08x__n
call fcn.00409709
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x20]
call fcn.004034e7
pop ecx
test eax, eax
jne 0x4076ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___kull_m_crypto_close_hprov_delete_container__0x_08x__n
jmp 0x4076a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_dpapi_unprotect_domainkey_with_key___CryptDecrypt__0x_08x__n
call fcn.00409709
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop esi
pop ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x14]
pop edi
leave
ret