Function at 0x10164980
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d10c0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1022c068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
push 0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x40]
push str.SHA256
push eax
mov dword [ebp - 0x40], 0
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x10164bb5
mov edi, dword [ebp - 0x40]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 4], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], ebx
push esi
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], esi
push eax
push str.ObjectLength
push edi
mov dword [ebp - 0x44], esi
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
jne 0x10164bd0
mov byte [ebp - 0x39], al
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10164a3e
push ecx
push eax
lea ecx, [ebp - 0x54]
lfence
call fcn.1004ae70
mov esi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x54]
push 0
push 0
push 0
sub esi, ebx
mov dword [ebp - 0x2c], 0
push esi
push ebx
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
je 0x10164a6a
push str.BCryptCreateHash_failed
jmp 0x10164bd5
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x44], esi
push 0
push 8
push dword [ebp - 0x58]
mov byte [ebp - 4], 2
push esi
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x10164a90
push str.BCryptHashData_failed
jmp 0x10164bd5
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
add eax, 0
adc ecx, 0xffffffff
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10164910
add esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push 0
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x10164ad5
push str.BCryptHashData_failed
jmp 0x10164bd5
push 0
push 0xb
push str.CYBERDEMON
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x10164af5
push str.BCryptHashData_failed
jmp 0x10164bd5
push 0
push 0xb
push str.profile.bin
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
je 0x10164b15
push str.BCryptHashData_failed
jmp 0x10164bd5
push 0
push 0x20
push dword [ebp - 0x64]
push dword [ebp - 0x2c]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
je 0x10164b33
push str.BCryptFinishHash_failed
jmp 0x10164bd5
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x10164b67
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10164b5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10164beb
push edx
push ecx
call fcn.101866c8
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test esi, esi
je 0x10164b84
push esi
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
lea ecx, [ebp - 0x54]
call fcn.10004e00
test edi, edi
je 0x10164b99
push 0
push edi
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10186332
mov esp, ebp
pop ebp
ret
push str.BCryptOpenAlgorithmProvider_failed
lea ecx, [ebp - 0x54]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x54]
push eax
call fcn.101878e5
push str.BCryptGetProperty_failed
lea ecx, [ebp - 0x38]
call fcn.10001480
push 0x10229d38
lea eax, [ebp - 0x38]
push eax
call fcn.101878e5
call fcn.1018f750
int3