Function at 0x404950
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x64
push 0xffffffffffffffff
push 0x43a538
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10b4
call fcn.00426690
mov eax, dword [0x44c6c8]
xor eax, ebp
mov dword [ebp + 0x60], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x70]
mov edi, dword [ebp + 0x6c]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x78]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp]
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x20], edx
mov dword [ebp - 0x1c], eax
call fcn.0041425b
xor ebx, ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], ebx
call fcn.0041425b
xor edx, edx
mov dword [ebp + 0x4c], 7
mov dword [ebp + 0x48], ebx
mov word [ebp + 0x38], dx
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x30], ebx
mov byte [ebp - 4], 2
lea esi, [edi + 0x46cc]
push 0x21
mov eax, 0x442978
mov dword [ebp + 0x14], ebx
mov byte [ebp + 0x58], bl
mov dword [ebp + 0x59], ebx
mov word [ebp + 0x5d], bx
mov byte [ebp + 0x5f], bl
mov byte [ebp + 0x50], bl
mov dword [ebp + 0x51], ebx
mov word [ebp + 0x55], bx
mov byte [ebp + 0x57], bl
mov dword [edi + 0x4644], ebx
call fcn.00403640
mov dword [edi + 0x46e8], 0x103
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [edi + 0x463c], eax
mov eax, dword [ebp - 0x24]
push 0x40
push eax
lea ecx, [ebp]
mov dword [edi + 0x4640], ebx
call fcn.004146d3
test eax, eax
jne 0x404ad3
push 0x21
mov eax, 0x442978
call fcn.00403640
mov dword [edi + 0x46e8], 0x106
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x463c], eax
mov eax, dword [ebp + 0x30]
mov dword [edi + 0x4640], 0xffffffff
cmp eax, ebx
je 0x404a7d
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp + 0x30], ebx
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x404a8f
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp + 0x2c], ebx
cmp dword [ebp + 0x4c], 8
jb 0x404aa1
mov ecx, dword [ebp + 0x38]
push ecx
call fcn.0040775d
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x34]
mov dword [ebp + 0x4c], 7
mov dword [ebp + 0x48], ebx
mov word [ebp + 0x38], dx
mov byte [ebp - 4], bl
call fcn.00414363
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00414363
or eax, 0xffffffff
jmp 0x404f17
mov eax, dword [ebp - 0x20]
push ebx
push 0x1011
push eax
lea ecx, [ebp - 0x34]
call fcn.004146d3
test eax, eax
jne 0x404b41
push 0x21
mov eax, 0x442978
call fcn.00403640
mov dword [edi + 0x46e8], 0x10b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp + 0x2c]
mov dword [edi + 0x463c], eax
mov dword [edi + 0x4640], 0xfffffffe
call fcn.004074c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.00414363
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00414363
mov eax, 0xfffffffe
jmp 0x404f17
mov byte [ebp - 4], 3
cmp dword [edi + 0x4644], ebx
je 0x404b9a
lea ecx, [ebp]
call fcn.004141f5
lea ecx, [ebp - 0x34]
call fcn.004141f5
push 0xfffffffffffffffb
push 0x115
mov eax, 0x442978
call fcn.004046e0
lea esi, [ebp + 0x2c]
call fcn.004074c0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.00414363
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00414363
mov eax, 0xfffffffb
jmp 0x404f17
mov esi, 0x40a
mov dword [ebp + 0x28], ebx
cmp dword [edi + 0x461c], ebx
je 0x404bb2
mov esi, 0x615
mov dword [ebp + 0x28], ebx
mov ecx, dword [ebp + 0x28]
push ebx
push ecx
push esi
lea ecx, [ebp]
call fcn.00413fde
push 8
lea edx, [ebp + 0x58]
push edx
lea ecx, [ebp]
call fcn.00413f4f
push 8
lea eax, [ebp + 0x50]
add esi, 8
adc dword [ebp + 0x28], ebx
push eax
lea ecx, [ebp]
call fcn.00413f4f
add esi, 8
adc dword [ebp + 0x28], ebx
lea eax, [ebp + 0x2c]
mov dword [ebp + 0x24], esi
call fcn.00407520
mov edx, dword [ebp + 0x30]
push ebx
push 8
lea ecx, [ebp + 0x58]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0x4000
lea eax, [edi + 0x61c]
push ebx
push eax
call fcn.00426500
add esp, 0xc
xor edx, edx
jmp 0x404c20
mov eax, dword [ebp + 0x20]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404c26
sub eax, esi
sar eax, 1
cmp edx, eax
jae 0x404c49
mov ecx, dword [ebp + 0x20]
mov al, byte [ecx + edx*2]
mov byte [edi + edx + 0x61c], al
inc edx
jmp 0x404c20
mov eax, dword [ebp + 0x20]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404c50
mov ecx, dword [ebp + 0x30]
sub eax, edx
push ebx
sar eax, 1
push eax
lea esi, [edi + 0x61c]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [ebp + 0x30]
push ebx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp + 0x20]
push eax
push 4
push ecx
mov dword [ebp + 0x20], ebx
mov dword [ebp - 0x14], 4
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x404c9a
or eax, 0xffffffff
jmp 0x404c9d
mov eax, dword [ebp + 0x20]
push 0x4000
push ebx
push esi
mov dword [ebp + 0x14], eax
call fcn.00426500
mov eax, dword [ebp + 0x30]
add esp, 0xc
push ebx
lea edx, [ebp + 0x14]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
movzx ecx, byte [ebp + 0x50]
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], 8
cmp eax, 0x1c0
jbe 0x404cde
mov eax, 0x1c0
lea edx, [ebp + 0x18]
push edx
push eax
mov ecx, esi
lea edx, [ebp - 0x10b8]
call section..text
lea ecx, [ebp]
call fcn.00414146
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], edx
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x28], eax
ja 0x404e67
jb 0x404d18
mov ecx, dword [ebp + 0x18]
cmp dword [ebp + 0x24], ecx
jae 0x404e67
cmp dword [edi + 0x4644], ebx
jne 0x404e67
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov esi, 0x4000
mov ecx, edx
add ecx, esi
adc eax, ebx
mov dword [ebp - 0x3c], ebx
cmp eax, dword [ebp + 0x1c]
jb 0x404d52
ja 0x404d44
cmp ecx, dword [ebp + 0x18]
jbe 0x404d52
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
sub esi, edx
sbb eax, dword [ebp + 0x28]
mov dword [ebp - 0x3c], eax
push 0x4000
lea eax, [edi + 0x61c]
push ebx
push eax
call fcn.00426500
add esp, 0xc
push esi
lea eax, [edi + 0x61c]
push eax
lea ecx, [ebp]
call fcn.00413f4f
lea eax, [edi + 0x61c]
push eax
push eax
lea edx, [ebp - 0x10b8]
push edx
mov ecx, esi
call fcn.00401860
push esi
lea eax, [edi + 0x61c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00413f91
add dword [ebp + 0x24], esi
mov eax, dword [ebp - 0x3c]
mov edx, dword [edi + 0x618]
adc dword [ebp + 0x28], eax
cmp edx, ebx
je 0x404e3a
mov ecx, dword [ebp + 0x24]
fnstcw word [ebp + 0x22]
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x60], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x60]
mov eax, dword [ebp + 0x18]
and ecx, 0x80000000
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], ebx
fild qword [ebp - 0x48]
mov ecx, eax
and eax, 0x7fffffff
mov dword [ebp - 0x54], eax
fchs
and ecx, 0x80000000
faddp st(1)
mov dword [ebp - 0x4c], ecx
fild qword [ebp - 0x58]
mov dword [ebp - 0x50], ebx
fild qword [ebp - 0x50]
movzx eax, word [ebp + 0x22]
mov edx, dword [edx + 0x20]
or eax, 0xc00
fchs
mov dword [ebp - 0x14], eax
faddp st(1)
push ebx
fdivp st(1)
fmul qword [0x442b80]
fldcw word [ebp - 0x14]
fistp qword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
push ecx
push 0x402
push edx
fldcw word [ebp + 0x22]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x1c], ebx
je 0x404cfe
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push edx
push eax
call dword [ebp - 0x1c]
jmp 0x404cfe
lea ecx, [ebp]
call fcn.004141f5
lea ecx, [ebp - 0x34]
call fcn.004141f5
mov dword [ebp - 4], 2
jmp 0x404eac
mov eax, dword [ebp + 0x30]
mov dword [edi + 0x4644], 2
cmp eax, ebx
je 0x404ec7
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp + 0x30], ebx
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x404ed9
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [ebp + 0x2c], ebx
cmp dword [ebp + 0x4c], 8
jb 0x404eeb
mov ecx, dword [ebp + 0x38]
push ecx
call fcn.0040775d
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x34]
mov dword [ebp + 0x4c], 7
mov dword [ebp + 0x48], ebx
mov word [ebp + 0x38], dx
mov byte [ebp - 4], bl
call fcn.00414363
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00414363
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
call fcn.004243cb
add ebp, 0x64
mov esp, ebp
pop ebp
ret 0x10