Function at 0x406ebc
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov eax, 0x41057b
call fcn.0040f350
sub esp, 0x138
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], esp
cmp dword [0x419a88], edi
jne 0x406f36
push 0xf0000000
push 0x18
push edi
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x406f02
call fcn.00405a2f
mov esi, eax
jmp 0x406f05
lea esi, [ebp - 0x14]
cmp esi, 0x419a88
je 0x406f27
mov eax, dword [0x419a88]
cmp eax, edi
je 0x406f1e
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esi]
mov dword [0x419a88], eax
mov dword [esi], edi
cmp dword [ebp - 0x14], edi
je 0x406f36
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x10], edi
je 0x407044
mov eax, 0x419a88
lea esi, [ebp - 0x14]
call fcn.00406530
mov esi, eax
push 0x10
lea eax, [ebp - 0x34]
push eax
mov eax, ebx
mov dword [ebp - 4], edi
call fcn.00406424
push eax
call fcn.00406570
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], edi
je 0x406f79
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebx + 0x14], 0x10
jb 0x406f83
mov esi, dword [ebx]
jmp 0x406f85
mov esi, ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], edi
mov byte [ebp - 0x5c], 0
call fcn.004078d5
mov dword [ebp - 4], 1
cmp dword [ebx + 0x14], 0x10
jb 0x406fb5
mov ebx, dword [ebx]
cmp esi, edi
jne 0x406fbd
xor esi, esi
jmp 0x406fbf
sub esi, ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push eax
push edi
mov edi, esi
mov esi, ebx
call fcn.0040774c
push 1
xor edi, edi
lea esi, [ebp - 0x5c]
call fcn.004059f4
xor eax, eax
mov dword [ebp - 0x14], 0xcd43ef19
cmp dword [ebx + 0x10], eax
jbe 0x407042
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x406ff9
mov ecx, dword [esi]
jmp 0x406ffb
mov ecx, esi
mov bl, byte [ecx + eax]
cmp edx, 0x10
jb 0x407007
mov edi, dword [esi]
jmp 0x407009
mov edi, esi
mov ecx, dword [ebp - 0x14]
ror ecx, 5
mov edx, eax
rol edx, 0xd
sub cl, dl
xor cl, bl
mov byte [edi + eax], cl
mov cl, al
and cl, 0x1f
movzx edx, bl
rol edx, cl
mov ecx, dword [ebp - 0x14]
ror ecx, 1
add edx, ecx
mov ecx, eax
ror ecx, 0x17
add ecx, 0x53702f68
xor edx, ecx
inc eax
mov dword [ebp - 0x14], edx
cmp eax, dword [esi + 0x10]
jb 0x406fea
xor edi, edi
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], edi
mov byte [ebp - 0x78], 0
mov ebx, 0x419a9c
mov dword [ebp - 4], 2
push ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push edi
push 0x418d64
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.00405625
mov eax, dword [0x419a90]
sub eax, dword [0x419a8c]
push 0x1c
cdq
pop ecx
idiv ecx
lea esi, [eax - 1]
mov dword [ebp - 0x20], esi
cmp esi, edi
jle 0x40710b
mov edi, esi
imul edi, edi, 0x1c
lea eax, [esi + 1]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
call fcn.0040769d
xor edx, edx
div dword [ebp - 0x14]
mov eax, dword [0x419a8c]
imul edx, edx, 0x1c
lea ecx, [eax + edx]
add eax, edi
cmp eax, ecx
je 0x4070f8
mov esi, eax
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x34]
mov edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ecx + 0x10]
mov edx, dword [eax + 0x10]
mov edi, dword [ebp - 0x1c]
mov dword [eax + 0x10], esi
mov dword [ecx + 0x10], edx
mov esi, dword [ecx + 0x14]
mov edx, dword [eax + 0x14]
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x20]
mov dword [ecx + 0x14], edx
dec esi
dec dword [ebp - 0x14]
sub edi, 0x1c
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
test esi, esi
jg 0x4070a5
xor edi, edi
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], 0xa
jne 0x40713d
call fcn.0040769d
xor edx, edx
mov ecx, 0x2711
div ecx
add edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 5
cmp dword [ebp - 0x68], edi
jne 0x4071cf
push ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 6
mov eax, dword [0x419a90]
mov ecx, dword [0x419a8c]
sub eax, ecx
cdq
push 0x1c
pop esi
idiv esi
xor edx, edx
mov esi, eax
mov eax, dword [0x419a6c]
lea edi, [esi + 8]
div edi
inc dword [0x419a6c]
cmp edx, esi
jae 0x407197
imul edx, edx, 0x1c
push 0xffffffffffffffff
add edx, ecx
push 0
push edx
lea eax, [ebp - 0x78]
call fcn.00405625
jmp 0x4071c4
mov ecx, edx
lea eax, [ebp - 0xa4]
sub ecx, esi
push eax
call fcn.00406d41
pop ecx
push eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.00405345
push 1
xor edi, edi
lea esi, [ebp - 0xa4]
call fcn.004059f4
push ebx
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0xc0]
push str.http:__
push eax
lea edi, [ebp - 0x78]
call fcn.00404bf9
pop ecx
pop ecx
push 0x413d78
push eax
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 8
call fcn.00404c70
pop ecx
pop ecx
mov byte [ebp - 4], 9
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040684c
add esp, 0xc
push 1
xor edi, edi
lea esi, [ebp - 0xa4]
call fcn.004059f4
push 1
lea esi, [ebp - 0xc0]
mov byte [ebp - 4], 0xc
call fcn.004059f4
push 0x10
pop edi
cmp dword [ebp - 0x30], edi
jae 0x40725d
mov dword [ebp - 0x84], 0x2f78
mov dword [ebp - 0x88], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [ebp - 0x88]
push eax
call fcn.0040ab7e
xor ecx, ecx
mov edx, 0xaff49754
cmp ecx, dword [ebp - 0x30]
jae 0x4072ad
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x2c], edi
jae 0x407274
lea eax, [ebp - 0x40]
movzx eax, byte [eax + ecx]
mov esi, edx
rol esi, 3
sub eax, ecx
sub eax, esi
mov esi, dword [ebp - 0x40]
and eax, 0xff
cmp dword [ebp - 0x2c], edi
jae 0x407291
lea esi, [ebp - 0x40]
mov byte [esi + ecx], al
movzx eax, al
ror eax, 0xb
mov esi, edx
rol esi, 5
xor eax, esi
xor eax, ecx
lea edx, [edx + eax - 0x47cb0d2f]
inc ecx
jmp 0x407264
push edi
push 0
lea eax, [ebp - 0x40]
push eax
lea esi, [ebp - 0x5c]
call fcn.00406341
push edi
xor ecx, ecx
lea esi, [ebp - 0x40]
mov byte [ebp - 4], 0xd
call fcn.004055b4
mov eax, 0x419a88
lea esi, [ebp - 0x1c]
call fcn.00406530
mov esi, eax
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x48], edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x20], eax
jae 0x4072ef
lea edi, [ebp - 0x5c]
lea eax, [ebp - 0x40]
call fcn.00406424
push 0x80
lea ecx, [ebp - 0x140]
push ecx
push eax
call fcn.00406570
cmp eax, dword [ebp - 0x20]
jne 0x40731f
mov ecx, eax
lea esi, [ebp - 0x140]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40731f
inc eax
jmp 0x407321
xor eax, eax
test al, al
sete byte [ebp - 0x15]
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1c], 0
je 0x40733a
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp byte [ebp - 0x15], 0
je 0x40735b
mov dword [ebp - 0x7c], 0x2f78
mov dword [ebp - 0x80], vtable.cuovxnupr.0
push 0x414ff4
lea eax, [ebp - 0x80]
jmp 0x407257
push ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x78]
push eax
mov eax, 0x418d64
mov byte [ebp - 4], 0xf
call fcn.00405625
push ebx
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.0040539e
push 1
xor edi, edi
lea esi, [ebp - 0x5c]
call fcn.004059f4
push 1
lea esi, [ebp - 0x40]
call fcn.004059f4
push 1
lea esi, [ebp - 0x78]
call fcn.004059f4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret