Function at 0x405930
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40eb1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x460
mov eax, dword [0x4138d0]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x460], eax
mov esi, ecx
mov dword [esp + 8], ebx
mov eax, dword [0x413c50]
push edi
mov ecx, 0x413c50
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov edx, dword [0x413c50]
mov ecx, 0x413c50
mov dword [esp + 0x474], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x413c50]
mov ecx, 0x413c50
mov byte [esp + 0x474], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [0x413c50]
mov ecx, 0x413c50
mov byte [esp + 0x474], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x413c50]
mov ecx, 0x413c50
mov byte [esp + 0x474], 3
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov edx, dword [0x413c50]
mov ecx, 0x413c50
mov byte [esp + 0x474], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [esi + 4]
push eax
mov byte [esp + 0x478], 5
call fcn.0040bfe0
push eax
lea ecx, [esp + 0x2c]
push 0x4104cc
push ecx
call fcn.004028e0
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esp + 0x51], edx
lea eax, [esp + 0x50]
mov dword [esp + 0x55], edx
push eax
mov dword [esp + 0x5d], edx
push ecx
mov byte [esp + 0x58], bl
mov word [esp + 0x65], dx
call fcn.0040c060
lea edx, [esp + 0x24]
push edx
call fcn.0040dbf0
add esp, 0x1c
test eax, eax
jne 0x405a9e
mov esi, dword [ebp + 8]
push 0x410480
mov ecx, esi
call fcn.00402b40
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x474], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
jmp 0x405fae
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push 0x4104cc
push ecx
call fcn.004028e0
mov edx, dword [esi + 4]
mov eax, dword [str.F8DEF66D_8EFF_432e_A81B_A2E7939C86FA__X]
mov edi, dword [sym.imp.MSVCR71.dll_sprintf]
push edx
push eax
lea ecx, [esp + 0x74]
push ecx
call edi
add esp, 0x18
mov dword [esp + 0x20], ebx
push 0x20
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x488], 6
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x405b09
mov esi, dword [ebp + 8]
push 0x410480
mov ecx, esi
call fcn.00402b40
jmp 0x405f70
mov dword [esp + 0x30], ebx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x54]
push 0x4104cc
push ecx
mov byte [esp + 0x480], 7
mov dword [esp + 0x18], 0x200
call edi
mov eax, dword [esp + 0x2c]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x405f50
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405b56
push ebx
sub eax, edx
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x405f50
mov edx, dword [esp + 0x30]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x264]
push ecx
push ebx
push ebx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x405f50
mov edx, dword [esp + 0xc]
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x68]
push ecx
push edx
lea eax, [esp + 0x270]
push eax
mov dword [esp + 0x48], 0x200
call fcn.004013a0
add esp, 0x14
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402a90
lea ecx, [esp + 0x30]
mov byte [esp + 0x474], 6
call fcn.0040dbb0
xor edi, edi
jmp 0x405c00
mov dword [esp + 0x2c], ebx
cmp edi, ebx
mov byte [esp + 0x474], 8
mov eax, 2
je 0x405c1a
mov eax, 1
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
je 0x405d12
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x264]
push edx
push ebx
push 6
push ebx
push eax
mov dword [esp + 0x4c], 0x200
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x405d37
mov eax, dword [esp + 0x34]
push ebx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x270]
push ecx
mov dword [esp + 0x20], 0x200
call fcn.004013a0
add esp, 0x14
cmp edi, ebx
jne 0x405c96
lea edx, [esp + 0x60]
push edx
lea ecx, [esp + 0x18]
jmp 0x405c9f
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402a90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], 6
call fcn.0040d950
inc edi
cmp edi, 2
jl 0x405c00
lea ecx, [esp + 0x20]
mov byte [esp + 0x474], 5
call fcn.0040d910
mov edx, dword [esi + 4]
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x264]
push 1
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], 0x80
call fcn.0040c490
add esp, 0xc
test eax, eax
jne 0x405da3
mov esi, dword [ebp + 8]
push 0x410480
mov ecx, esi
call fcn.00402b40
jmp 0x405f81
mov esi, dword [ebp + 8]
push 0x410480
mov ecx, esi
call fcn.00402b40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], 6
call fcn.0040d950
jmp 0x405f70
mov esi, dword [ebp + 8]
push 0x410480
mov ecx, esi
call fcn.00402b40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x474], 6
call fcn.0040d950
lea ecx, [esp + 0x20]
mov byte [esp + 0x474], 5
call fcn.0040d910
lea ecx, [esp + 0x24]
call fcn.004022c0
lea ecx, [esp + 0x28]
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004022c0
lea ecx, [esp + 0x14]
call fcn.004022c0
lea ecx, [esp + 0x1c]
call fcn.004022c0
lea ecx, [esp + 0x10]
call fcn.004022c0
jmp 0x406068
mov edx, dword [esp + 0x38]
xor eax, eax
push eax
mov ecx, 0x80
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x68]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0x200
call fcn.004013a0
add esp, 0x14
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00402a90
mov edx, dword [0x413c50]
mov ecx, 0x413c50
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edi
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x24]
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
lea edx, [esp + 0x28]
push str._key_SysID__s__Response__s__Sig__s__Enc__s__Key__s__RegID__s__Dealer__s___
push edx
mov byte [esp + 0x498], 9
call fcn.004028e0
mov esi, dword [esp + 0x30]
add esi, 0xfffffff0
push esi
call fcn.00402150
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
add esp, 0x28
mov byte [esp + 0x474], 5
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x405e69
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x474], 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405e8b
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add ebx, 0xfffffff0
mov byte [esp + 0x474], 3
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x405ead
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x474], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x474], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ef9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x474], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x474], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 8]
jmp 0x40606a
mov esi, dword [ebp + 8]
push 0x410480
mov ecx, esi
call fcn.00402b40
lea ecx, [esp + 0x30]
mov byte [esp + 0x474], 6
call fcn.0040dbb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x474], 5
call fcn.0040d910
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x474], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x474], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x474], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405ff3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x474], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406019
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x474], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40603f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x474], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406068
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x464]
call fcn.0040e0fe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8