Function at 0x4a6e99
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [ebp - 0x180], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x14]
lea esi, [ebx + 0x12a]
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x158], eax
push ecx
lea ecx, [esi - 0x12a]
call fcn.004ae015
test al, al
je 0x4a6f12
test edi, edi
jne 0x4a6ef9
cmp byte [esi], 0
jmp 0x4a6f10
cmp byte [esi], 0
je 0x4a6f12
push 8
lea eax, [esi - 0x28]
push edi
push eax
call dword [sym.imp.msvcrt.dll_memcmp]
add esp, 0xc
test eax, eax
je 0x4a6f32
mov eax, dword [ebp - 0x158]
add esi, 0x12c
inc eax
mov dword [ebp - 0x158], eax
cmp eax, 4
jae 0x4a6f71
mov ecx, dword [ebp - 0x174]
jmp 0x4a6ee0
imul edi, dword [ebp - 0x158], 0x12c
mov esi, dword [sym.imp.msvcrt.dll_memcpy]
push 0x10
lea eax, [edi + 0x10a]
add eax, ebx
push eax
lea eax, [ebp - 0x14]
push eax
call esi
push 0x10
pop edx
push edx
lea eax, [edi + 0x11a]
add eax, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call esi
add esp, 0x18
push 0x10
pop esi
jmp 0x4a720a
mov ebx, dword [ebp - 0x180]
xor edx, edx
mov esi, ebx
mov al, byte [esi]
movzx ecx, word [esi]
mov byte [ebp + edx*2 - 0x12c], al
mov eax, ecx
shr eax, 8
mov byte [ebp + edx*2 - 0x12b], al
test cx, cx
je 0x4a6fa4
inc edx
add esi, 2
cmp edx, 0x108
jb 0x4a6f7b
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
add esi, esi
pop ecx
test edi, edi
je 0x4a6fcc
push 8
lea ecx, [ebp - 0x12c]
add ecx, esi
push edi
push ecx
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
add esi, 8
mov edi, dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
lea eax, [ebp - 0x160]
xor ebx, ebx
mov dword [ebp - method.micro::qsec::QBCrypt.virtual_0], vtable.micro::qsec::QBCrypt.0
push ebx
push ebx
push 0x4ef25c
push eax
mov dword [ebp - 0x160], ebx
call edi
mov dword [ebp - 0x15c], ebx
mov dword [ebp - method.micro::qsec::QSha512.virtual_0], vtable.micro::qsec::QSha1.0
push esi
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x164]
call fcn.004bcf0a
mov eax, ebx
mov byte [ebp - 0x158], bl
sar eax, 8
mov byte [ebp - 0x157], al
mov eax, ebx
sar eax, 0x10
push 0
mov byte [ebp - 0x156], al
lea eax, [ebp - 0x158]
push 3
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov eax, ebx
and eax, 0x80003fff
jns 0x4a705a
dec eax
or eax, 0xffffc000
inc eax
jne 0x4a70f7
xor eax, eax
mov dword [ebp - method.micro::qsec::QBCrypt.virtual_0], vtable.micro::qsec::QBCrypt.0
push eax
push eax
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x16c]
push 0x4ef25c
push eax
call edi
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x170]
and dword [ebp - 0x168], 0
mov dword [ebp - method.micro::qsec::QSha512.virtual_0], vtable.micro::qsec::QSha1.0
mov dword [ebp - 0x16c], eax
call fcn.004bce83
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x15c]
call dword [sym.imp.bcrypt.dll_BCryptDuplicateHash]
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x170]
call fcn.004bceb0
mov cl, byte [ebp - 0x144]
mov eax, ebx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov byte [ebp + eax - 0x24], cl
lea ecx, [ebp - 0x170]
call fcn.004bce39
inc ebx
cmp ebx, 0x40000
jl 0x4a7004
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x164]
call fcn.004bceb0
mov ebx, dword [ebp - 0x178]
xor edi, edi
push 0x10
pop edx
lea esi, [ebp - 0x14]
add esi, edi
xor ecx, ecx
mov eax, dword [ebp + edi - 0x140]
shr eax, cl
add ecx, 8
mov byte [esi], al
inc esi
cmp ecx, 0x20
jl 0x4a7128
add edi, 4
cmp edi, edx
jl 0x4a7121
imul edi, dword [ebx + 0x4b0], 0x12c
mov esi, dword [ebp - 0x174]
mov edx, dword [ebp - 0x17c]
push 0x40
pop ecx
add edi, ebx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test edx, edx
setne cl
movsw word es:[edi], word [esi]
imul eax, dword [ebx + 0x4b0], 0x12c
mov byte [eax + ebx + 0x12a], cl
cmp cl, 1
jne 0x4a719d
imul eax, dword [ebx + 0x4b0], 0x12c
push 8
push edx
add eax, 0x102
add eax, ebx
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
push 0x10
pop esi
push esi
lea eax, [ebp - 0x14]
push eax
imul eax, dword [ebx + 0x4b0], 0x12c
add eax, 0x10a
add eax, ebx
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
push esi
lea eax, [ebp - 0x24]
push eax
imul eax, dword [ebx + 0x4b0], 0x12c
add eax, 0x11a
add eax, ebx
push eax
call dword [sym.imp.msvcrt.dll_memcpy]
mov eax, dword [ebx + 0x4b0]
add esp, 0x18
inc eax
mov ecx, 0x108
and eax, 3
mov dword [ebx + 0x4b0], eax
lea eax, [ebp - 0x12c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x4a71f8
lea ecx, [ebp - 0x164]
call fcn.004bce39
lea eax, [ebp - 0x24]
push eax
push 0x80
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0xa9c]
call fcn.004ad33b
mov ecx, esi
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
dec ecx
jne 0x4a722a
lea eax, [ebp - 0x24]
mov byte [eax], 0
inc eax
dec esi
jne 0x4a7234
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x10