Function at 0x10041b10
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071ccb
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x1008f180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov edi, dword [ecx + 0x10]
mov dword [ebp - 0xa0], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x18], 0
cmp edi, 0xf
jae 0x10041bc2
push 0
movups xmmword [eax], xmm0
push 0x1007d807
mov ecx, eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.10016bc0
mov eax, dword [ebp - 0x98]
jmp 0x10041ed5
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp edi, 0x7fffffff
ja 0x10041ef3
push edi
lea ecx, [ebp - 0x24]
call fcn.1000d700
mov esi, dword [ebp - 0x24]
push edi
push 0
push esi
call fcn.1004f4a0
lea eax, [esi + edi]
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor edi, edi
movq qword [ebp - 0x30], xmm0
xor eax, eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x34], eax
push 0xc
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
call fcn.1004d760
mov esi, eax
xorps xmm0, xmm0
add esp, 0x10
mov dword [ebp - 0x3c], esi
lea eax, [esi + 0xc]
movq qword [esi], xmm0
mov dword [ebp - 0x34], eax
mov dword [esi + 8], edi
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x90]
mov byte [ebp - 4], 3
cmp dword [ecx + 0x14], 0xf
jbe 0x10041c7c
mov edx, dword [ecx]
mov ecx, dword [ecx]
add edx, 0xf
jmp 0x10041c7f
lea edx, [ecx + 0xf]
lea eax, [ecx + 3]
sub edx, eax
push edx
push eax
push esi
call fcn.1004ef20
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov edx, dword [ebp - 0x88]
cmp dword [ecx + 0x14], 0xf
jbe 0x10041ca7
add edx, dword [ecx]
mov ecx, dword [ecx]
jmp 0x10041ca9
add edx, ecx
lea eax, [ecx + 0xf]
sub edx, eax
push edx
push eax
push dword [ebp - 0x24]
call fcn.1004ef20
add esp, 0xc
lea eax, [ebp - 0x40]
push 0
push 0
push 0x1007e294
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x10041ef8
push 0
push 0x20
push str.ChainingModeGCM
push str.ChainingMode
push dword [ebp - 0x40]
call dword [sym.imp.bcrypt.dll_BCryptSetProperty]
push 0
test eax, eax
js 0x10041f44
push dword [ebp - 0xa0]
lea eax, [ebp - 0x44]
push dword [ebp - 0x8c]
push 0
push 0
push eax
push dword [ebp - 0x40]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
push 0
test eax, eax
js 0x10041f99
mov edx, dword [ebp - 0x88]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x24]
add edx, 0xffffffe1
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
lea eax, [ecx + edx]
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x84]
movlpd qword [ebp - 0x4c], xmm0
push eax
push edx
push ecx
push dword [ebp - 0x44]
mov dword [ebp - 0x84], 0x40
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0xc
mov dword [ebp - 0x68], 0x10
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x10041fee
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10041dba
push ecx
push ecx
lea ecx, [ebp - 0x30]
call fcn.1002b960
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x94], eax
push 0
lea eax, [ebp - 0x18]
push eax
push ecx
push edi
push 0
push 0
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
push dword [ebp - 0x24]
push dword [ebp - 0x44]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x1004203a
push 0
push dword [ebp - 0x40]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
push ecx
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x98]
push edi
call fcn.10031b50
test esi, esi
je 0x10041e33
mov ecx, dword [ebp - 0x34]
sub ecx, esi
cmp ecx, 0x1000
jb 0x10041e29
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x10042086
mov esi, edx
push ecx
push esi
call fcn.1004d752
add esp, 8
test edi, edi
je 0x10041e67
mov ecx, dword [ebp - 0x94]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x10041e5d
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042086
push ecx
push edi
call fcn.1004d752
add esp, 8
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10041e9b
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10041e91
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10042086
push edx
push ecx
call fcn.1004d752
add esp, 8
mov eax, dword [ebp - 0x98]
jmp 0x10041ed5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d713
mov esp, ebp
pop ebp
ret 0x10
call fcn.1000d6f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xbc]
call fcn.1000daf0
push eax
mov edx, str.bopen
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd4]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 5
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0xe0]
push eax
call fcn.1004eeb0
push dword [ebp - 0x40]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xd4]
call fcn.1000daf0
push eax
mov edx, str.Bset
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 7
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0xec]
push eax
call fcn.1004eeb0
push dword [ebp - 0x40]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xd4]
call fcn.1000daf0
push eax
mov edx, 0x1007d4b4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xbc]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 9
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0xf8]
push eax
call fcn.1004eeb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xd4]
call fcn.1000daf0
push eax
mov edx, 0x1007e2e8
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xbc]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xb
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x104]
push eax
call fcn.1004eeb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0xd4]
call fcn.1000daf0
push eax
mov edx, 0x1007e2ec
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xbc]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 0xd
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0x110]
push eax
call fcn.1004eeb0
call fcn.1005260f
int3