Function at 0x66be10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68c380
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x740184]
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 edi, ecx
mov dword [ebp - 0x84], edi
cmp byte [edi + 0x78], 0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x88], esi
je 0x66bf20
xor edx, edx
mov eax, ebx
div dword [edi + 0x6c]
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x88], eax
mov eax, dword [edi]
mov dword [ebp - 0x84], edx
call dword [eax + 0xa8]
mov ecx, eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp dword [edi + 0x58], eax
jae 0x66beb4
mov edx, dword [ecx]
lea eax, [ebp - 0x7c]
push eax
push 0x744e1c
call dword [edx + 0x88]
mov edx, eax
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x88]
cmp dword [ebp - 0x7c], eax
jae 0x66beba
push eax
lea ecx, [edi + 0x50]
call fcn.0065ab70
mov edx, dword [edi + 0x5c]
mov dword [ebp - 0x80], edx
sub ebx, dword [ebp - 0x84]
je 0x66bee8
mov ecx, dword [edi + 0x64]
push ebx
push esi
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa8]
push 1
push 0
push ebx
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 0x80]
call dword [edx + 0x18]
add esi, ebx
mov ecx, dword [edi + 0x64]
mov edx, dword [ebp - 0x84]
mov ebx, dword [ebp - 0x80]
mov eax, dword [ecx]
test edx, edx
je 0x66bf1a
push edx
push esi
push dword [edi + 0x74]
push ebx
call dword [eax + 0x24]
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
call dword [edx + 0xa8]
push 1
push 0
push esi
push ebx
jmp 0x66c19a
push 0
push 0
jmp 0x66befc
mov eax, dword [edi + 0x68]
cmp eax, 4
ja case.default.0x66bf2c
jmp dword [eax*4 + 0x66c314]
test ebx, ebx
je case.default.0x66bf2c
mov ecx, dword [edi + 0x64]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [edi + 0x64]
mov esi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
call edx
test al, al
je 0x66bfca
cmp dword [edi + 0x68], 1
jne 0x66bfca
test esi, esi
je 0x66bf61
cmp ebx, esi
jae 0x66bfca
cmp esi, dword [edi + 0x6c]
mov ecx, edi
mov eax, dword [edi]
cmovb esi, dword [edi + 0x6c]
push esi
push 0x744e1c
call dword [eax + 0xa8]
push eax
lea ecx, [edi + 0x4c]
call fcn.0066b8d0
mov ecx, eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x84], ecx
test eax, eax
je 0x66bfa4
push ebx
push eax
push ecx
call fcn.004a1db0
mov ecx, dword [ebp - 0x84]
add esp, 0xc
mov eax, esi
sub eax, ebx
push eax
lea eax, [ebx + ecx]
push 0
push eax
call fcn.004a28b0
mov ecx, dword [edi + 0x64]
add esp, 0xc
mov ebx, dword [ebp - 0x84]
mov eax, dword [ecx]
push esi
push ebx
push esi
jmp 0x66beff
test esi, esi
jne 0x66bfde
lea ecx, [ebp - 0x28]
test al, al
je 0x66c25d
jmp 0x66c232
push dword [edi + 0x70]
mov eax, dword [edi]
mov ecx, edi
push ebx
push 0x744e1c
call dword [eax + 0xa8]
push eax
lea ecx, [edi + 0x4c]
call fcn.0066b910
mov ecx, dword [ebp - 0x84]
mov edi, eax
push ebx
push dword [ebp - 0x88]
mov ecx, dword [ecx + 0x64]
push ebx
push edi
mov edx, dword [ecx]
call dword [edx + 0x24]
mov esi, eax
mov eax, dword [ebp - 0x84]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xa8]
push 1
push 0
push esi
push edi
jmp 0x66c19a
push dword [edi + 0x70]
mov eax, dword [edi + 0x6c]
push eax
mov dword [ebp - 0x7c], eax
mov eax, dword [edi]
push 0x744e1c
call dword [eax + 0xa8]
push eax
lea ecx, [edi + 0x4c]
call fcn.0066b910
mov ecx, dword [edi + 0x64]
mov esi, eax
mov dword [ebp - 0x80], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
call edx
test al, al
je 0x66c10f
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x66c07c
push ebx
push eax
push esi
call fcn.004a1db0
add esp, 0xc
mov eax, dword [edi + 0x68]
cmp eax, 2
jne 0x66c0a2
mov ecx, dword [ebp - 0x7c]
mov eax, ecx
sub eax, ebx
push eax
mov al, cl
sub al, bl
movzx eax, al
push eax
lea eax, [ebx + esi]
push eax
call fcn.004a28b0
mov esi, dword [ebp - 0x7c]
jmp 0x66c0e9
cmp eax, 4
jne 0x66c0ce
mov eax, dword [ebp - 0x7c]
sub eax, ebx
dec eax
push eax
mov eax, esi
add eax, ebx
push 0
push eax
call fcn.004a28b0
mov ecx, dword [ebp - 0x7c]
add esp, 0xc
mov al, cl
sub al, bl
mov ebx, esi
mov esi, ecx
mov byte [ebx + ecx - 1], al
jmp 0x66c0ef
mov byte [ebx + esi], 0x80
mov esi, dword [ebp - 0x7c]
mov eax, esi
sub eax, ebx
inc ebx
dec eax
push eax
mov eax, dword [ebp - 0x80]
add eax, ebx
push 0
push eax
call fcn.004a28b0
mov ebx, dword [ebp - 0x80]
add esp, 0xc
mov ecx, dword [edi + 0x64]
push esi
push ebx
push ebx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa8]
push 1
push 0
push esi
push ebx
jmp 0x66c19a
mov esi, dword [ebp - 0x7c]
cmp ebx, esi
jne 0x66c288
mov ecx, dword [edi + 0x64]
push esi
push dword [ebp - 0x88]
mov esi, dword [ebp - 0x80]
mov eax, dword [ecx]
push esi
call dword [eax + 0x20]
mov eax, dword [edi + 0x68]
cmp eax, 2
jne 0x66c1bf
mov ecx, dword [ebp - 0x7c]
mov dl, byte [esi + ecx - 1]
lea ebx, [esi + ecx]
mov byte [ebp - 0x89], dl
cmp dl, 1
jb 0x66c2b6
movzx eax, dl
mov dword [ebp - 0x84], eax
cmp eax, ecx
ja 0x66c2b6
mov eax, esi
sub eax, dword [ebp - 0x84]
add eax, ecx
cmp eax, ebx
je 0x66c182
cmp dl, byte [eax]
jne 0x66c17a
inc eax
cmp eax, ebx
jne 0x66c171
cmp eax, ebx
jne 0x66c2b6
mov ebx, ecx
sub ebx, dword [ebp - 0x84]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa8]
push 1
push 0
push ebx
push esi
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
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.0048b49a
mov esp, ebp
pop ebp
ret 8
cmp eax, 4
jne 0x66c1e5
mov eax, dword [ebp - 0x7c]
mov cl, byte [esi + eax - 1]
cmp cl, 1
jb 0x66c2e4
movzx ecx, cl
cmp ecx, eax
ja 0x66c2e4
mov ebx, eax
sub ebx, ecx
jmp 0x66c18a
cmp ebx, 1
jbe 0x66c1fd
nop word [eax + eax]
cmp byte [ebx + esi - 1], 0
jne 0x66c1fd
dec ebx
cmp ebx, 1
ja 0x66c1f0
dec ebx
cmp byte [ebx + esi], 0x80
je 0x66c18a
push str.StreamTransformationFilter:_invalid_ones_and_zeros_padding_found
lea ecx, [ebp - 0x28]
call fcn.0044dac0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x78]
call fcn.00658920
push 0x73b2ec
lea eax, [ebp - 0x78]
push eax
call fcn.004a18e8
push str.StreamTransformationFilter:_plaintext_length_is_not_a_multiple_of_block_size_and_NO_PADDING_is_specified
call fcn.0044dac0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.0066ab00
push 0x73bbb4
lea eax, [ebp - 0x50]
push eax
call fcn.004a18e8
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
call fcn.0044dac0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x50]
call fcn.00658920
push 0x73b2ec
lea eax, [ebp - 0x50]
push eax
call fcn.004a18e8
push str.StreamTransformationFilter:_ciphertext_length_is_not_a_multiple_of_block_size
lea ecx, [ebp - 0x28]
call fcn.0044dac0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00658920
push 0x73b2ec
lea eax, [ebp - 0x50]
push eax
call fcn.004a18e8
push str.StreamTransformationFilter:_invalid_PKCS_7_block_padding_found
lea ecx, [ebp - 0x28]
call fcn.0044dac0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x50]
call fcn.00658920
push 0x73b2ec
lea eax, [ebp - 0x50]
push eax
call fcn.004a18e8
push str.StreamTransformationFilter:_invalid_W3C_block_padding_found
lea ecx, [ebp - 0x28]
call fcn.0044dac0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
call fcn.00658920
push 0x73b2ec
lea eax, [ebp - 0x50]
push eax
call fcn.004a18e8
nop
xor edi, dword [edi - 0x40ccff9a]
add byte [eax], dh
shl byte [esi], 0x30
shl byte [esi], 0x30
shl byte [esi], 0xcc
int3