Function at 0x40a8d0
Capabilities:
Decode data using base64 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push edi
push ebx
lea eax, [esp + 0x14]
push ebx
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push 1
push ecx
push esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
je 0x40ab9c
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.0041537f
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x34], edi
je 0x40ab9c
mov edx, dword [esp + 0x10]
xor eax, eax
push ebx
push ebx
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
push eax
push ecx
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
call ebp
test eax, eax
je 0x40ab77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.0040a200
mov edi, dword [esp + 0x44]
add esp, 8
lea ecx, [esp + 0x14]
push ebx
push ebx
push ecx
push ebx
push ebx
push ebx
push edi
call ebp
test eax, eax
je 0x40ab63
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edx
push ebx
call esi
mov ebx, eax
push 0
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push 0
push 0
push edi
call ebp
test eax, eax
je 0x40ab63
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov edi, dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
push ecx
push 0
push 0
push 0
push edx
push ebx
push 0x13
push 0x10001
call edi
test eax, eax
jne 0x40aa07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403790
jmp 0x40ab6f
mov eax, dword [esp + 0x18]
push eax
push 0
call esi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
mov ebp, eax
push ecx
push ebp
push 0
push 0
push edx
push ebx
push 0x13
push 0x10001
call edi
test eax, eax
jne 0x40aa48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403790
call fcn.00414d8e
add esp, 8
jmp 0x40ab7b
push 0xf0000000
push 1
push 0
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40aa7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403760
call fcn.00414d8e
add esp, 8
jmp 0x40ab7b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40aab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x403728
call fcn.00414d8e
add esp, 8
jmp 0x40ab7b
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0x8004
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40aae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4036fc
call fcn.00414d8e
add esp, 8
jmp 0x40ab7b
mov edx, dword [esp + 0x38]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
push 0
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40ab21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4036d4
call fcn.00414d8e
add esp, 8
jmp 0x40ab7b
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
push 0
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
test eax, eax
jne 0x40ab59
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4036a0
call fcn.00414d8e
add esp, 8
jmp 0x40ab7b
mov dword [esp + 0x2c], 1
jmp 0x40ab7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40366c
call fcn.00414d8e
add esp, 8
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push edx
call fcn.00415431
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
add esp, 4
test ebx, ebx
je 0x40ab95
push ebx
call esi
test ebp, ebp
je 0x40ab9c
push ebp
call esi
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x40abaf
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40abbe
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40abcf
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x1c]
add esp, 0x20
ret