Function at 0x403230
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0xffffffffffffffff
push 0x40e899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x70]
push esi
push edi
mov ebp, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403260
sub eax, edx
mov esi, eax
push esi
mov dword [esp + 0x2c], esi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
lea ecx, [esp + 0x30]
mov edi, eax
call fcn.0040dab0
push esi
mov ebx, 1
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], ebx
call fcn.0040db40
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x28]
push eax
push edi
push esi
push ecx
call fcn.00401580
mov edx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00405890
add esp, 0x18
xor esi, esi
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x18]
push 0x20
push ebx
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x7c], 3
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4032f9
mov esi, dword [esp + 0x70]
push 0x410480
mov ecx, esi
call fcn.00402b40
mov dword [esp + 0x20], ebx
jmp 0x403508
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebx
push ecx
mov byte [esp + 0x74], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x403364
mov esi, dword [esp + 0x70]
push 0x410480
mov ecx, esi
call fcn.00402b40
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x68], 3
call fcn.0040d950
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 2
call fcn.0040d910
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x68], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40352e
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
push esi
push ecx
push edx
push edi
push eax
mov byte [esp + 0x80], 5
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4033a9
mov esi, dword [esp + 0x70]
push 0x410480
mov ecx, esi
call fcn.00402b40
mov dword [esp + 0x20], ebx
jmp 0x4034ec
mov esi, dword [esp + 0x74]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4033b2
sub eax, edx
inc eax
mov dword [esp + 0x1c], eax
add eax, 0x10
push eax
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
mov ebp, eax
mov edx, ebp
add esp, 4
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4033d4
lea ecx, [esp + 0x40]
call fcn.0040dab0
mov eax, dword [esp + 0x1c]
add eax, 0x10
push eax
push ebp
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 6
call fcn.0040db40
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add ecx, 0x10
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
push 0
push ebx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x403439
mov esi, dword [esp + 0x70]
push 0x410480
mov ecx, esi
call fcn.00402b40
mov dword [esp + 0x20], ebx
jmp 0x4034de
mov eax, dword [esp + 0x1c]
lea esi, [eax + eax*2]
shr esi, 1
add esi, 2
push esi
mov dword [esp + 0x7c], esi
call sub.MSVCR71.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
lea ecx, [esp + 0x50]
mov edi, eax
call fcn.0040dab0
push esi
push edi
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 7
call fcn.0040db40
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x7c]
push eax
push edi
push ecx
push ebp
call fcn.004013a0
mov edx, dword [esp + 0x8c]
add esp, 0x14
push edi
lea ecx, [esp + 0x30]
mov byte [edi + edx], 0
call fcn.00402b40
mov esi, dword [esp + 0x70]
push edi
mov ecx, esi
mov byte [esp + 0x6c], 8
call fcn.00402b40
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
mov byte [esp + 0x68], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 6
call fcn.0040dad0
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 5
call fcn.0040dad0
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 4
call fcn.0040d950
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 3
call fcn.0040d950
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 2
call fcn.0040d910
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x68], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403538
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 0
call fcn.0040dad0
mov ecx, dword [esp + 0x60]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 0xc