Function at 0x66b1b0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xe4]
mov dword [eax], ebp
mov eax, dword [esp + 0xd8]
cmp eax, 0x38
jbe 0x66b1f5
pop edi
pop esi
pop ebp
mov ax, 0x1d10
pop ebx
add esp, 0xb4
ret
cmp eax, ebp
lea edi, [esp + 0x74]
je 0x66b204
mov edi, dword [esp + 0xd4]
mov ebx, dword [esp + 0xc8]
push ebx
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x20], ecx
call fcn.0066ba30
add esp, 4
test al, al
jne 0x66b83b
test byte [ebx], 2
je 0x66b44e
lea edx, [esp + 0x2a]
push 2
push edx
mov dword [esp + 0x28], 0x48
mov byte [esp + 0x2c], 7
call fcn.00663990
mov al, byte [esp + 0xcc]
mov cl, byte [esp + 0xd0]
mov dl, byte [edi]
mov byte [esp + 0x2c], al
mov al, byte [edi + 1]
mov byte [esp + 0x2d], cl
mov cl, byte [edi + 2]
mov byte [esp + 0x2f], al
mov byte [esp + 0x2e], dl
mov dl, byte [edi + 3]
lea eax, [esp + 0x32]
push 2
push eax
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], dl
call fcn.00663990
mov eax, dword [esp + 0xd8]
cmp eax, 4
jbe 0x66b2b5
lea ecx, [eax - 4]
lea esi, [edi + 4]
mov edx, ecx
lea edi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + eax + 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x39
sub ecx, eax
push ecx
push edx
jmp 0x66b2bc
lea eax, [esp + 0x34]
push 0x35
push eax
call fcn.00663990
mov eax, dword [esp + 0xd8]
cmp eax, 4
jbe 0x66b2d5
sub al, 4
mov byte [esp + 0x69], al
jmp 0x66b2da
mov byte [esp + 0x69], 0
mov cl, byte [esp + 0x32]
mov dl, byte [esp + 0x33]
mov byte [esp + 0x6a], cl
mov ecx, dword [ebx + 0x30]
lea eax, [esp + 0x5c]
mov byte [esp + 0x6b], dl
push eax
push ecx
call fcn.0066ae50
add esp, 8
xor eax, eax
mov dl, byte [esp + eax + 0x4c]
mov cl, byte [esp + eax + 0x5c]
xor cl, dl
mov byte [esp + eax + 0x5c], cl
inc eax
cmp eax, 0x10
jb 0x66b2fd
mov ecx, dword [ebx + 0x30]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.0066ae50
add esp, 8
xor eax, eax
mov dl, byte [esp + eax + 0x3c]
mov cl, byte [esp + eax + 0x4c]
xor cl, dl
mov byte [esp + eax + 0x4c], cl
inc eax
cmp eax, 0x10
jb 0x66b324
mov ecx, dword [ebx + 0x30]
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.0066ae50
add esp, 8
xor eax, eax
mov dl, byte [esp + eax + 0x2c]
mov cl, byte [esp + eax + 0x3c]
xor cl, dl
mov byte [esp + eax + 0x3c], cl
inc eax
cmp eax, 0x10
jb 0x66b34b
mov ecx, dword [ebx + 0x30]
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.0066ae50
lea edx, [esp + 0x2c]
push edx
call fcn.00679600
mov ebp, dword [esp + 0xe8]
add esp, 0xc
test ebp, ebp
jne 0x66b398
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ebp
push ebp
push 0x58
push ecx
jmp 0x66b60a
lea edx, [esp + 0x14]
lea eax, [esp + 0x74]
push edx
push 0x48
push eax
lea ecx, [esp + 0x28]
push 0x58
push ecx
push 0x22000c
call fcn.0066afa0
add esp, 0x18
mov dword [esp + 0x10], eax
test al, al
jne 0x66b82d
cmp dword [esp + 0x14], 0x48
je 0x66b3e3
push ebx
call fcn.0066ba60
add esp, 4
mov ax, 0x1d0d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
mov edx, dword [ebx + 0x30]
lea eax, [esp + 0x74]
push edx
push eax
call fcn.0066b030
add esp, 8
mov dword [esp + 0x10], eax
test al, al
jne 0x66b82d
mov ecx, dword [esp + 0xe4]
mov edi, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
mov eax, ebp
lea ebp, [esp + 0x76]
xor esi, esi
mov dword [ecx], edi
sub ebp, edx
test edi, edi
jbe 0x66b432
mov cl, byte [eax + ebp]
inc esi
mov byte [eax], cl
inc eax
dec edi
cmp esi, 4
jb 0x66b421
mov ecx, edi
lea edi, [edx + 4]
mov edx, ecx
lea esi, [esp + 0x7c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x66b82d
mov al, byte [ebx + 0xc]
mov dword [esp + 0x20], 8
test al, 4
mov eax, dword [esp + 0xd8]
mov esi, 4
je 0x66b53e
cmp eax, esi
jbe 0x66b5a7
mov al, byte [esp + 0xcc]
mov cl, byte [esp + 0xd0]
mov dl, byte [edi]
mov byte [esp + 0x24], al
mov al, byte [edi + 1]
mov byte [esp + 0x25], cl
mov cl, byte [edi + 2]
mov byte [esp + 0x27], al
mov byte [esp + 0x26], dl
mov dl, byte [edi + 3]
lea eax, [esp + 0x2a]
push 2
push eax
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], dl
call fcn.00663990
cmp dword [esp + 0xd8], esi
jbe 0x66b51a
lea ebp, [esp + 0x2e]
mov ecx, dword [esp + 0x20]
push 2
add ecx, 8
inc esi
mov dword [esp + 0x24], ecx
mov cl, byte [esi + edi - 1]
mov byte [ebp - 2], cl
mov dl, byte [esi + edi]
inc esi
mov byte [ebp - 1], dl
mov al, byte [esi + edi]
inc esi
mov byte [ebp], al
mov cl, byte [esi + edi]
inc esi
mov byte [ebp + 1], cl
lea ecx, [ebp + 4]
mov dl, byte [esi + edi]
inc esi
mov byte [ebp + 2], dl
push ecx
mov al, byte [esi + edi]
inc esi
mov byte [ebp + 3], al
call fcn.00663990
lea eax, [ebp - 2]
push eax
call fcn.00679600
mov eax, dword [esp + 0xdc]
add esp, 4
add ebp, 8
cmp esi, eax
jb 0x66b4bf
mov eax, dword [esp + 0xd8]
xor edx, edx
mov ecx, 6
div ecx
mov al, byte [esp + 0x2a]
and al, 0xf9
add dl, 2
or dl, al
mov byte [esp + 0x2a], dl
jmp 0x66b5e4
cmp eax, esi
jbe 0x66b5a7
mov eax, 0xfffffffe
lea esi, [edi + 6]
sub eax, edi
mov dword [esp + 0x18], eax
jmp 0x66b556
mov eax, dword [esp + 0x18]
mov ebp, dword [ebx]
lea edx, [esp + 0x74]
mov ecx, ebp
push edx
and ecx, 0xfffffff3
xor edx, edx
mov dword [ebx], ecx
mov dh, byte [esi - 1]
mov dl, byte [esi - 2]
xor ecx, ecx
mov ch, byte [esi + 1]
lea eax, [eax + esi - 4]
mov cl, byte [esi]
push ecx
push edx
push eax
push 3
push ebx
call fcn.0066b850
add esp, 0x18
mov dword [esp + 0x10], eax
test al, al
mov dword [ebx], ebp
jne 0x66b82d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0xd8]
add esi, 4
add ecx, esi
cmp ecx, eax
jb 0x66b552
mov dl, byte [esp + 0xcc]
mov al, byte [esp + 0xd0]
mov cl, byte [edi]
mov byte [esp + 0x24], dl
mov dl, byte [edi + 1]
mov byte [esp + 0x25], al
mov al, byte [edi + 2]
mov byte [esp + 0x27], dl
mov byte [esp + 0x26], cl
mov cl, byte [edi + 3]
lea edx, [esp + 0x2a]
push 2
push edx
mov byte [esp + 0x30], al
mov byte [esp + 0x31], cl
call fcn.00663990
lea eax, [esp + 0x24]
push eax
call fcn.00679600
mov ebp, dword [esp + 0xe0]
add esp, 4
test ebp, ebp
jne 0x66b62d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push ebp
push ebp
push 0x58
push edx
push 0x22000c
call fcn.0066afa0
push ebx
mov esi, eax
call fcn.0066ba60
add esp, 0x1c
mov ax, si
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
test byte [ebx + 0xc], 4
je 0x66b731
mov eax, dword [esp + 0xe0]
cmp eax, 4
jbe 0x66b731
lea ecx, [eax + 7]
mov eax, 0xaaaaaaab
mul ecx
mov esi, edx
lea edx, [esp + 0x14]
shr esi, 2
shl esi, 3
push edx
lea eax, [esp + 0x78]
push esi
push eax
lea ecx, [esp + 0x28]
push 0x58
push ecx
push 0x22000c
call fcn.0066afa0
add esp, 0x18
mov dword [esp + 0x10], eax
test al, al
jne 0x66b82d
cmp dword [esp + 0x14], esi
je 0x66b6a2
push ebx
call fcn.0066ba60
add esp, 4
mov ax, 0x1d0d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
lea edx, [esp + 0x74]
push 0
push edx
call fcn.0066b030
add esp, 8
mov dword [esp + 0x10], eax
test al, al
jne 0x66b82d
mov cl, byte [esp + 0x77]
mov al, byte [esp + 0x76]
mov dl, byte [esp + 0x78]
mov byte [ebp + 1], cl
mov ecx, dword [esp + 0xe0]
mov byte [ebp], al
mov al, byte [esp + 0x79]
mov edi, 4
cmp ecx, edi
mov byte [ebp + 2], dl
mov byte [ebp + 3], al
mov esi, 8
jbe 0x66b723
mov eax, esi
and eax, 7
mov dword [esp + 0x18], eax
jne 0x66b711
lea ecx, [esp + esi + 0x74]
push ecx
call fcn.00679600
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xe4]
add esp, 4
cmp eax, 6
jae 0x66b71e
mov dl, byte [esp + esi + 0x74]
mov byte [edi + ebp], dl
inc edi
inc esi
cmp edi, ecx
jb 0x66b6ee
mov eax, dword [esp + 0xe4]
mov dword [eax], ecx
jmp 0x66b82d
lea ecx, [esp + 0x14]
lea edx, [esp + 0x74]
push ecx
push 8
push edx
lea eax, [esp + 0x28]
push 0x58
push eax
push 0x22000c
call fcn.0066afa0
add esp, 0x18
mov dword [esp + 0x10], eax
test al, al
jne 0x66b82d
cmp dword [esp + 0x14], 8
je 0x66b76e
mov dword [esp + 0x10], 0x1d0d
jmp 0x66b781
lea ecx, [esp + 0x74]
push 0
push ecx
call fcn.0066b030
add esp, 8
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x10]
test al, al
jne 0x66b82d
lea edi, [esp + 0x76]
xor esi, esi
mov eax, ebp
sub edi, ebp
mov ecx, dword [esp + 0xe0]
test ecx, ecx
jbe 0x66b7c9
mov dl, byte [edi + eax]
mov ecx, dword [esp + 0xe4]
mov byte [eax], dl
mov edx, dword [ecx]
inc edx
inc esi
mov dword [ecx], edx
mov edx, dword [esp + 0xe0]
inc eax
dec edx
cmp esi, 4
mov dword [esp + 0xe0], edx
jb 0x66b797
xor edi, edi
add ebp, 4
cmp edi, dword [esp + 0xe0]
jae 0x66b82d
mov esi, dword [ebx]
lea ecx, [esp + 0x74]
push ecx
push 0
mov eax, esi
push 0
push edi
and al, 0xf3
push 2
push ebx
mov dword [ebx], eax
call fcn.0066b850
add esp, 0x18
mov dword [esp + 0x10], eax
test al, al
mov dword [ebx], esi
jne 0x66b82d
xor eax, eax
cmp eax, dword [esp + 0xe0]
jae 0x66b822
mov dl, byte [esp + eax + 0x76]
mov ecx, dword [esp + 0xe4]
mov byte [eax + ebp], dl
mov esi, dword [ecx]
inc esi
inc eax
cmp eax, 4
mov dword [ecx], esi
jb 0x66b800
add edi, 4
add ebp, 4
cmp edi, 0x40
jb 0x66b7ce
push ebx
call fcn.0066ba60
mov ax, word [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret