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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor esi, esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x24]
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
test ebx, ebx
je 0x100272b6
push ebx
lea ecx, [esp + 0x30]
call fcn.1005d480
mov edi, dword [esp + 0x2c]
push ebx
push esi
push edi
call fcn.1011ce00
mov esi, dword [esp + 0x40]
add esp, 0xc
mov dword [esp + 0x28], esi
push 0xc
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.1005d480
mov ebx, dword [esp + 0x2c]
push 0xc
push 0
push ebx
call fcn.1011ce00
add esp, 0xc
cmp dword [esp + 0x38], 0xf
jae 0x1002740a
mov eax, dword [esp + 0x10]
mov ecx, eax
push 0
push 0x1018dee3
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.10056190
test ebx, ebx
je 0x10027365
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x1002735b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
push ebx
call fcn.1011a823
add esp, 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1002739b
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10027391
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
add esp, 8
test edi, edi
je 0x100273c9
sub esi, edi
mov eax, edi
cmp esi, 0x1000
jb 0x100273bf
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push esi
push edi
call fcn.1011a823
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x100273fd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100273f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
add esp, 8
mov esi, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
lea eax, [ebp + 8]
cmovae esi, dword [ebp + 8]
add esi, 0xf
cmp dword [ebp + 0x1c], 0x10
cmovae eax, dword [ebp + 8]
add eax, 3
sub esi, eax
push esi
push eax
push ebx
call fcn.1011b630
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, dword [esp + 0x44]
cmovae eax, dword [ebp + 8]
add esi, eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
add eax, 0xf
sub esi, eax
push esi
push eax
push edi
call fcn.1011b630
add esp, 0x18
lea eax, [esp + 0x24]
push 0
push 0
push 0x1018e5ac
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
push 0
test eax, eax
jns 0x10027538
mov eax, dword [esp + 0x14]
mov ecx, eax
push 0x1018dee3
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.10056190
test ebx, ebx
je 0x100274d0
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x100274c6
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
push ebx
call fcn.1011a823
add esp, 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10027506
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100274fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
add esp, 8
test edi, edi
je 0x100273c9
mov ecx, dword [esp + 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x10027532
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
jmp 0x100273c0
push 0x20
push str.ChainingModeGCM
push str.ChainingMode
push dword [esp + 0x34]
call dword [sym.imp.bcrypt.dll_BCryptSetProperty]
push 0
test eax, eax
jns 0x10027626
push dword [esp + 0x28]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [esp + 0x10]
mov ecx, eax
push 0
push 0x1018dee3
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.10056190
test ebx, ebx
je 0x100275ba
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x100275b0
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
push ebx
call fcn.1011a823
add esp, 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100275f0
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100275e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
add esp, 8
test edi, edi
je 0x100273c9
mov ecx, dword [esp + 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x10027532
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
jmp 0x100273c0
push dword [esp + 0x24]
lea eax, [esp + 0x44]
push dword [esp + 0x4c]
push 0
push 0
push eax
push dword [esp + 0x3c]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
jns 0x10027719
push 0
push dword [esp + 0x28]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov eax, dword [esp + 0x10]
mov ecx, eax
push 0
push 0x1018dee3
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.10056190
test ebx, ebx
je 0x100276ad
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x100276a3
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
push ebx
call fcn.1011a823
add esp, 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100276e3
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100276d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
add esp, 8
test edi, edi
je 0x100273c9
mov ecx, dword [esp + 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x10027532
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
jmp 0x100273c0
push 0x40
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.1011ce00
mov esi, dword [esp + 0x44]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], 0x40
mov dword [esp + 0x4c], 1
lea eax, [esi - 0x1f]
mov dword [esp + 0x50], ebx
add eax, edi
mov dword [esp + 0x54], 0xc
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x64], 0x10
mov dword [esp + 0x20], eax
cmp esi, edx
jae 0x10027774
lea eax, [esi + ecx]
jmp 0x100277b0
jbe 0x100277b4
mov eax, dword [esp + 0x1c]
sub eax, ecx
cmp esi, eax
jbe 0x10027791
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.1005f3a0
mov ecx, dword [esp + 0x14]
jmp 0x100277b4
sub esi, edx
push esi
push 0
push dword [esp + 0x28]
call fcn.1011ce00
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
add eax, esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
push 0
lea eax, [esp + 0x44]
push eax
push esi
push ecx
push 0
push 0
lea eax, [esp + 0x60]
push eax
lea eax, [esi - 0x1f]
push eax
push edi
push dword [esp + 0x60]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jns 0x10027889
mov eax, dword [esp + 0x10]
mov ecx, eax
push 0
push 0x1018dee3
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
call fcn.10056190
test ebx, ebx
je 0x10027835
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x1002782b
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
push ebx
call fcn.1011a823
add esp, 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10027506
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10027865
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jmp 0x10027503
mov eax, dword [esp + 0x18]
mov ecx, eax
mov edx, dword [esp + 0x14]
sub ecx, edx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], eax
cmp esi, ecx
jae 0x100278a6
lea eax, [esi + edx]
jmp 0x100278d6
jbe 0x100278da
mov eax, dword [esp + 0x1c]
sub eax, edx
cmp esi, eax
jbe 0x100278bf
push ecx
push esi
lea ecx, [esp + 0x1c]
call fcn.1005f3a0
jmp 0x100278da
sub esi, ecx
push esi
push 0
push dword [esp + 0x28]
call fcn.1011ce00
mov eax, dword [esp + 0x2c]
add esp, 0xc
add eax, esi
mov dword [esp + 0x18], eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov esi, dword [esp + 0x10]
push ecx
push dword [esp + 0x1c]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.10059990
test ebx, ebx
je 0x1002792c
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x10027922
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
push ebx
call fcn.1011a823
add esp, 8
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1002797a
mov edx, dword [esp + 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10027958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
add esp, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
test edi, edi
je 0x100279a8
mov ecx, dword [esp + 0x28]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x1002799e
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push ecx
push edi
call fcn.1011a823
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10027401
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100279d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100279e5
push edx
push ecx
call fcn.1011a823
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
int3