Function at 0x40b120
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451a82
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x320
mov eax, dword [0x46c074]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 4], 1
call fcn.00404b80
push 0x20c
push str.Y25ncBFuD20HcBF0A3EYSUlEBjwubiErcykrISNxMCovKzRwKi84KHMyITE_cTMtIDwIDYrKmxZBCt0FTQ1MToM3A7ITs_czYtODQidiUsIis_NW46JTYjIXQiJTMzMHRNWmFjY2BfWl5fHx7bm5jan1vY2Ngfn1peXx8e25uY2p9b2NjYH59aXl8fHtubmNkWnNgbgk8Jyo4PjAyYyIgI3ArID05MjwodCU5M2NhGigiYgw8IiQjISZzcTAxLCNnODY6Pj5pf2sjJiZ4Nyw8NyItJCsuJ34rJjZbXHFtbhUlLG4nOX1aTmd_cR8tYzovNWIaIT9zEjY7JiIzMW9uKCAnIG46NjI3PSU0bEljbmc4Njod3x_NyFiZSY0Kz4kMSQrJzcnJGo7Pzg5LUlEc35iCCEhPz8zdCU5M2MqIDQkMDstOTo_KidxPjhjNyYicDIvKShZc2l5fHx7bm5jan1vY2Ngfn1peXx8e25uY2p9b2NjYH59aXl8fHtubmNqfW9jY24
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
call fcn.00401eb0
sub esp, 0x18
mov byte [ebp - 4], 2
lea edx, [ebp - 0x14c]
mov ecx, esp
call fcn.00402140
lea ecx, [ebp - 0x1d8]
call fcn.00402260
add esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x138]
cmp eax, 0x10
jb 0x40b221
mov ecx, dword [ebp - 0x14c]
inc eax
cmp eax, 0x1000
jb 0x40b218
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov edx, 4
mov dword [ebp - 0x13c], 0
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
call fcn.00409050
lea eax, [ebx + 8]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x208]
call fcn.00401b80
mov byte [ebp - 4], 6
sub esp, 0x18
lea eax, [ebx + 8]
mov ecx, esp
push eax
call fcn.00401b80
lea ecx, [ebp - 0x190]
call fcn.00418c70
add esp, 0x18
lea edx, [ebp - 0x190]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1a8]
call fcn.00409730
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x178]
push 0xf0000000
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push eax
call esi
test eax, eax
jne 0x40b2da
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x80090016
jne 0x40b2e4
push 0x28
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea eax, [ebp - 0x178]
push eax
call esi
test eax, eax
je 0x40b2e4
mov dword [ebp - 0x174], 0
call fcn.00409830
xorps xmm0, xmm0
mov dword [ebp - 0x150], 0
movq qword [ebp - 0x158], xmm0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 0
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 0xb
call fcn.00408ee0
push 0x104
lea eax, [ebp - 0x128]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0xe4
lea eax, [ebp - 0x2ec]
push 0
push eax
call fcn.00433c30
add esp, 0xc
lea ecx, [ebp - 0x2ec]
call fcn.0040bf40
mov byte [ebp - 4], 0xc
xor esi, esi
mov ecx, dword [ebp - 0x154]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x158]
sub ecx, edi
imul ecx
mov dword [ebp - 0x2fc], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40b91f
cmp eax, esi
ja 0x40b3a1
call fcn.0040e190
call fcn.00437255
lea eax, [esi + esi*2]
mov dword [ebp - 0x160], 0
lea edi, [edi + eax*8]
mov dword [ebp - 0x15c], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x2f0], eax
jb 0x40b3cc
mov edi, dword [edi]
cmp eax, 0x10
jae 0x40b3e2
movups xmm0, xmmword [edi]
mov esi, 0xf
movups xmmword [ebp - 0x170], xmm0
jmp 0x40b41e
mov esi, eax
mov ecx, 0x7fffffff
or esi, 0xf
cmp ecx, esi
cmovb esi, ecx
lea ecx, [ebp - 0x170]
lea eax, [esi + 1]
push eax
call fcn.00401e10
mov ecx, dword [ebp - 0x2f0]
inc ecx
mov dword [ebp - 0x170], eax
push ecx
push edi
push eax
call fcn.004336b0
mov eax, dword [ebp - 0x2f0]
add esp, 0xc
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x2f0]
cmp esi, 0x10
push ecx
cmovae eax, dword [ebp - 0x170]
mov ecx, 0x476a70
push eax
call fcn.00401eb0
xorps xmm0, xmm0
mov dword [ebp - 0x12c], 0
movq qword [ebp - 0x134], xmm0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
push 0x476a70
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0xe
call fcn.00401b80
or dword [ebp - 0x2f4], 1
push 1
push 0x479c64
lea edx, [ebp - 0x14c]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x134]
call fcn.004028f0
mov byte [ebp - 4], 0xe
add esp, 8
mov eax, dword [ebp - 0x138]
cmp eax, 0x10
jb 0x40b50d
mov ecx, dword [ebp - 0x14c]
inc eax
cmp eax, 0x1000
jb 0x40b504
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov ecx, dword [ebp - 0x134]
mov esi, ecx
mov edi, dword [ebp - 0x130]
nop dword [eax + eax]
cmp esi, edi
je 0x40b81c
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x40b532
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0xf
mov byte [ebp - 0x14c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x2f0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b558
sub ecx, dword [ebp - 0x2f0]
push ecx
push edx
lea ecx, [ebp - 0x14c]
call fcn.00401eb0
cmp dword [ebp - 0x138], 0x10
lea eax, [ebp - 0x14c]
cmovae eax, dword [ebp - 0x14c]
mov dword [ebp - 0x2f8], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x314]
mov eax, dword [ebp - 0x2f4]
or eax, 2
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x2f0], eax
mov dword [ebp - 0x300], 0xf
mov byte [ebp - 0x314], 0
mov eax, dword [esi + 0x10]
inc eax
push eax
call fcn.0040fd10
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40b5d4
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x314]
push eax
call fcn.004039a0
push 1
push 0x460de8
lea ecx, [ebp - 0x314]
call fcn.004039a0
push 6
push str.saturn
lea ecx, [ebp - 0x314]
call fcn.004039a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1f0], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov eax, dword [ebp - 0x2f4]
movq qword [ebp - 0x1e0], xmm0
or eax, 6
and eax, 0xfffffffd
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x300]
cmp eax, 0x10
jb 0x40b691
mov ecx, dword [ebp - 0x314]
inc eax
cmp eax, 0x1000
jb 0x40b688
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov edx, dword [ebp - 0x2f8]
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0xf
mov byte [ebp - 0x314], 0
call fcn.00409420
mov edx, dword [eax + 8]
add edx, dword [eax]
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
test ecx, ecx
jg 0x40b717
jl 0x40b6d6
cmp edx, 0xc800000
jae 0x40b717
lea eax, [ebx + 0x20]
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x14c]
push eax
sub esp, 8
lea ecx, [ebp - 0x2ec]
call fcn.0040f460
mov edx, dword [ebp - 0x2f8]
mov byte [ebp - 4], 0x14
test edx, edx
je 0x40b75f
or eax, 0xffffffff
lock xadd dword [edx + 4], eax
jne 0x40b75f
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x40b757
mov eax, dword [ecx]
push edx
jmp 0x40b75d
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x14c]
push eax
sub esp, 8
lea ecx, [ebp - 0x2ec]
call fcn.0040f6e0
mov edx, dword [ebp - 0x2f8]
mov byte [ebp - 4], 0x15
test edx, edx
je 0x40b75f
or eax, 0xffffffff
lock xadd dword [edx + 4], eax
jne 0x40b75f
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x40b757
mov eax, dword [ecx]
push edx
jmp 0x40b75d
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 0x13
call fcn.0040bcd0
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x1dc]
cmp eax, 0x10
jb 0x40b7be
mov ecx, dword [ebp - 0x1f0]
inc eax
cmp eax, 0x1000
jb 0x40b7b5
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x138]
cmp eax, 0x10
jb 0x40b80e
mov ecx, dword [ebp - 0x14c]
inc eax
cmp eax, 0x1000
jb 0x40b805
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov ecx, dword [ebp - 0x134]
add esi, 0x18
jmp 0x40b520
mov byte [ebp - 4], 0xd
test ecx, ecx
je 0x40b8c3
mov edx, dword [ebp - 0x130]
push ecx
call fcn.00403b90
mov ecx, dword [ebp - 0x12c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x134]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
ja 0x40b39c
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x40b89c
test byte [ebp - 0x134], 0x1f
jne 0x40b39c
mov eax, dword [esi - 4]
cmp eax, esi
jae 0x40b39c
sub esi, eax
cmp esi, 4
jb 0x40b39c
cmp esi, 0x23
ja 0x40b39c
mov esi, eax
push esi
call fcn.0041bf0d
add esp, 4
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x15c]
cmp eax, 0x10
jb 0x40b913
mov ecx, dword [ebp - 0x170]
inc eax
cmp eax, 0x1000
jb 0x40b90a
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov esi, dword [ebp - 0x2fc]
inc esi
jmp 0x40b366
push ecx
lea ecx, [ebp - 0x2ec]
call fcn.0040bdc0
push ecx
lea ecx, [ebp - 0x2ec]
mov byte [ebp - 4], 0x16
call fcn.0040bdc0
lea eax, [ebp - 0x238]
push eax
call fcn.00419fb9
add esp, 4
lea eax, [ebp - 0x268]
push eax
call fcn.00419fb9
add esp, 4
lea eax, [ebp - 0x290]
push eax
call fcn.00419310
add esp, 4
lea eax, [ebp - 0x2b8]
push eax
call fcn.00419310
add esp, 4
lea ecx, [ebp - 0x2c8]
call fcn.0040dea0
push 0x408bc0
push 4
push 8
lea eax, [ebp - 0x2e8]
mov byte [ebp - 4], 0x17
push eax
call fcn.0041bbab
lea ecx, [ebp - 0x158]
call fcn.0040c6f0
mov eax, dword [ebp - 0x178]
test eax, eax
je 0x40ba21
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x40ba21
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push str.An_error_occurred_in_the_program.__n
push 2
mov esi, eax
call fcn.0043736d
add esp, 4
push eax
call fcn.004020b0
add esp, 8
push str.Error_during_CryptReleaseContext__n
push 0x460ce8
push 2
call fcn.0043736d
add esp, 4
push eax
call fcn.004020b0
add esp, 0xc
push esi
push str.Error_number__x._n
push 2
call fcn.0043736d
add esp, 4
push eax
call fcn.004020b0
add esp, 0xc
jmp 0x40ba21
mov eax, dword [ebp - 0x194]
cmp eax, 0x10
jb 0x40ba6d
mov ecx, dword [ebp - 0x1a8]
inc eax
cmp eax, 0x1000
jb 0x40ba64
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0xf
mov byte [ebp - 0x1a8], 0
cmp eax, 0x10
jb 0x40bad4
mov ecx, dword [ebp - 0x190]
inc eax
cmp eax, 0x1000
jb 0x40bacb
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], 0xf
mov byte [ebp - 0x190], 0
cmp eax, 0x10
jb 0x40bb3b
mov ecx, dword [ebp - 0x208]
inc eax
cmp eax, 0x1000
jb 0x40bb32
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebp - 0x1ac]
cmp eax, 0x10
jb 0x40bb87
mov ecx, dword [ebp - 0x1c0]
inc eax
cmp eax, 0x1000
jb 0x40bb7e
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebp - 0x1c4]
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 0xf
mov byte [ebp - 0x1c0], 0
cmp eax, 0x10
jb 0x40bbee
mov ecx, dword [ebp - 0x1d8]
inc eax
cmp eax, 0x1000
jb 0x40bbe5
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0xf
mov byte [ebp - 0x1d8], 0
cmp eax, 0x10
jb 0x40bc4f
mov ecx, dword [ebx + 8]
inc eax
cmp eax, 0x1000
jb 0x40bc46
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp eax, 0x10
jb 0x40bca7
mov ecx, dword [ebx + 0x20]
inc eax
cmp eax, 0x1000
jb 0x40bc9e
test cl, 0x1f
jne 0x40b39c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x40b39c
sub ecx, eax
cmp ecx, 4
jb 0x40b39c
cmp ecx, 0x23
ja 0x40b39c
mov ecx, eax
push ecx
call fcn.0041bf0d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041bb6a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret