Function at 0x4038b0
Capabilities:
Encrypt or decrypt data via bcrypt
Hash data via bcrypt

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ba5d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x43c770]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], edx
mov eax, ecx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], eax
mov esi, dword [ebx + 8]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], al
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x28], eax
movq qword [ebp - 0x30], xmm0
push 1
mov byte [ebp - 0x75], al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00410690
mov ecx, dword [ebp - 0x30]
mov al, byte [ebp - 0x75]
mov byte [ecx], al
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov byte [ebp - 4], 2
xor edi, edi
mov dword [ebp - 0x34], 0
sub esi, dword [ebp - 0x80]
xorps xmm0, xmm0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x84], esi
je 0x4039f2
cmp esi, 0x7fffffff
ja 0x403eb4
push esi
lea ecx, [ebp - 0x3c]
call fcn.00410690
mov edi, dword [ebp - 0x84]
mov esi, dword [ebp - 0x3c]
push edi
push dword [ebp - 0x80]
push esi
call fcn.00414e60
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add edi, esi
mov dword [ebp - 0x38], edi
sub edi, eax
mov byte [ebp - 4], 3
cmp dword [ebx + 0xc], 0
mov dword [ebp - 0x80], edi
jne 0x403cf8
lea ecx, [ebp - 0xa4]
call fcn.00402d90
push eax
lea ecx, [ebp - 0x60]
call fcn.004101e0
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x403a53
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403eb9
push edx
push ecx
call fcn.00413ec3
add esp, 8
cmp dword [ebp - 0x50], 0
mov esi, dword [ebp - 0x60]
jne 0x403b59
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
mov dword [edi], eax
mov eax, edi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], 0
mov dword [eax + 8], edx
test ecx, ecx
je 0x403b2a
mov edx, dword [ebp - 0x34]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x403abc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ec3
push edx
push ecx
call fcn.00413ec3
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
test ecx, ecx
je 0x403b24
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x403b05
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ec3
push edx
push ecx
call fcn.00413ec3
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x4c]
cmp edi, 0x10
jb 0x403e93
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x403b52
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ec3
push edi
push esi
jmp 0x403e8b
push 0xb
push str.u8nFJsWVCna
push ecx
lea ecx, [ebp - 0x60]
call fcn.00410ba0
lea ecx, [ebp - 0x60]
cmp ecx, eax
je 0x403b85
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x403b7b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00402c50
mov edi, dword [ebp - 0x80]
push 0
push 0
push 0x43778c
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x403d32
push 0
lea eax, [ebp - 0x64]
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push str.ObjectLength
push dword [ebp - 0x68]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x403d32
mov esi, dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x64]
push eax
push 4
lea eax, [ebp - 0x48]
push eax
push str.HashDigestLength
push dword [ebp - 0x68]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x403d32
mov esi, dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push 0
push dword [ebp - 0x44]
mov esi, eax
mov eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x8c], esi
push eax
push dword [ebp - 0x68]
call dword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x403d32
cmp dword [ebp - 0x4c], 0x10
lea eax, [ebp - 0x60]
push 0
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x60]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
js 0x403d32
push 0
push dword [ebp - 0x48]
push esi
push dword [ebp - 0x70]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
js 0x403d32
movups xmm0, xmmword [esi]
push 0
push 0
push 0x4377dc
lea eax, [ebp - 0x74]
push eax
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x403d32
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x403d32
mov esi, dword [sym.imp.bcrypt.dll_BCryptDecrypt]
lea eax, [ebp - 0x40]
push 1
push eax
push 0
push 0
push 0
push 0
push 0
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x6c]
call esi
test eax, eax
js 0x403d32
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
sub eax, edx
mov ecx, dword [ebp - 0x40]
cmp ecx, eax
jbe 0x403d1b
cmp ecx, 0x7fffffff
ja 0x403ebe
jmp 0x403d0c
push 0xb
push str.u8nFJsWVCna
lea ecx, [ebp - 0x60]
call fcn.00402c50
jmp 0x403b88
push ecx
lea ecx, [ebp - 0x30]
call fcn.00410710
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
push 1
lea eax, [ebp - 0x40]
push eax
push ecx
push edx
push 0
push 0
push 0
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x6c]
call esi
mov eax, dword [ebp - 0x68]
mov esi, dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
test eax, eax
je 0x403d44
push 0
push eax
call esi
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x403d50
push 0
push eax
call esi
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x403d5e
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x403d6c
push eax
call dword [sym.imp.bcrypt.dll_BCryptDestroyHash]
mov eax, dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x403d8a
push eax
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x403d9c
push eax
push 0
call edi
push eax
call esi
mov esi, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
add eax, edx
cmp eax, ecx
mov dword [esi], edx
mov edx, esi
mov dword [ebp - 0x2c], 0
cmovne ecx, eax
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 8], eax
test ecx, ecx
je 0x403e63
mov edx, dword [ebp - 0x34]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x403dff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ec3
push edx
push ecx
call fcn.00413ec3
mov ecx, dword [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
test ecx, ecx
je 0x403e63
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x403e44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ec3
push edx
push ecx
call fcn.00413ec3
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x403e93
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403e89
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403ec3
push edx
push ecx
call fcn.00413ec3
add esp, 8
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413918
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00410680
call fcn.00419536
call fcn.00410680
call fcn.00419536
int3