Function at 0x415f20
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4403ed
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x455010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
push 0x20
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push str.__________________
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 0
call fcn.00419050
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x415fce
push 0
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push 0
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x415ffc
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x18]
push 0x6610
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x416027
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movq qword [ebp - 0x34], xmm0
xor esi, esi
mov dword [ebp - 0x7c], ecx
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
xor edx, edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], edx
test eax, eax
je 0x416161
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
cmp eax, edx
jb 0x416442
sub eax, edx
mov ecx, 2
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
add eax, edx
lea ecx, [ebp - 0x68]
push eax
call fcn.00419050
mov byte [ebp - 4], 3
call fcn.00429e25
cmp dword [ebp - 0x54], 0x10
lea esi, [ebp - 0x68]
mov dword [ebp - 0x7c], eax
cmovae esi, dword [ebp - 0x68]
mov dword [eax], 0
lea eax, [ebp - 0x6c]
push 0x10
push eax
push esi
call fcn.0042a7a5
add esp, 0xc
cmp esi, dword [ebp - 0x6c]
je 0x416438
mov ecx, dword [ebp - 0x7c]
cmp dword [ecx], 0x22
je 0x41642e
mov esi, dword [ebp - 0x70]
mov byte [ebp - 0x75], al
cmp esi, dword [ebp - 0x80]
je 0x4160f6
mov byte [esi], al
inc esi
mov dword [ebp - 0x30], esi
jmp 0x41610c
lea eax, [ebp - 0x75]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.0041ac50
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x70], esi
cmp ecx, 0x10
jb 0x416147
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41613d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416451
push ecx
push edx
call fcn.0042426b
add esp, 8
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp + 0x18]
add edx, 2
mov dword [ebp - 0x74], edx
cmp edx, eax
jb 0x416062
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x7c], ecx
sub esi, ecx
mov dword [ebp - 0x20], 0
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], esi
push esi
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.00416880
push esi
push dword [ebp - 0x7c]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x28]
push esi
mov dword [ebp - 0x6c], esi
call fcn.00425500
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
push 0
push 1
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4161cb
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 0x24]
mov eax, ecx
mov edx, dword [ebp - 0x38]
sub eax, esi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], eax
cmp edx, eax
jae 0x4161e4
lea eax, [esi + edx]
jmp 0x41621c
jbe 0x416222
mov eax, dword [ebp - 0x20]
sub eax, esi
cmp edx, eax
jbe 0x416204
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ab40
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x6c], esi
jmp 0x41621f
sub edx, dword [ebp - 0x74]
push edx
push 0
push ecx
mov dword [ebp - 0x74], edx
call fcn.00425ae0
mov eax, dword [ebp - 0x70]
add esp, 0xc
add eax, dword [ebp - 0x74]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x70], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov edx, dword [ebp - 0x70]
cmp esi, edx
jne 0x416270
mov byte [edi], 0
jmp 0x416336
mov eax, edx
sub eax, esi
cmp eax, 0x7fffffff
ja 0x416447
cmp eax, 0x10
jb 0x416300
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x416295
mov eax, 0x7fffffff
jmp 0x41629f
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
xor ecx, ecx
mov dword [ebp - 0x74], eax
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x4162df
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x41644c
push eax
call fcn.00423fea
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x416451
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4162f0
test ecx, ecx
je 0x4162ee
push ecx
call fcn.00423fea
add esp, 4
jmp 0x4162f0
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x14], eax
nop dword [eax + eax]
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x74], edi
jb 0x41630e
mov eax, dword [edi]
mov dword [ebp - 0x74], eax
mov ecx, dword [edi + 0x10]
mov al, byte [esi]
inc esi
mov edx, dword [ebp - 0x74]
mov byte [edx + ecx], al
inc dword [edi + 0x10]
mov eax, dword [edi + 0x10]
cmp esi, dword [ebp - 0x70]
jne 0x416300
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x41632f
mov ecx, dword [edi]
mov esi, dword [ebp - 0x6c]
mov byte [eax + ecx], 0
test esi, esi
je 0x416367
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x41635d
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416451
push ecx
push esi
call fcn.0042426b
add esp, 8
mov edx, dword [ebp - 0x7c]
test edx, edx
je 0x41639b
mov ecx, dword [ebp - 0x80]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x416391
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416451
push ecx
push edx
call fcn.0042426b
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x4163cf
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4163c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416451
push ecx
push edx
call fcn.0042426b
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
cmp ecx, 0x10
jb 0x416411
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416407
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416451
push ecx
push edx
call fcn.0042426b
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423fd7
mov esp, ebp
pop ebp
ret
push str.stoi_argument_out_of_range
call fcn.00421e7f
push str.invalid_stoi_argument
call fcn.00421e3f
call fcn.00417dc0
call fcn.00401440
call fcn.004013a0
call fcn.0042aacf
int3