Function at 0x45c5c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4bc660]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
movzx eax, word [esi]
push edi
mov edi, dword [ebp + 8]
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x21c], esi
call fcn.0046aba0
test eax, eax
pop ecx
je 0x45c616
inc esi
inc esi
movzx eax, word [esi]
push eax
call fcn.0046aba0
test eax, eax
pop ecx
jne 0x45c600
mov dword [ebp - 0x21c], esi
movzx eax, word [ebx]
push eax
call fcn.0046aba0
test eax, eax
pop ecx
je 0x45c63a
inc ebx
inc ebx
movzx eax, word [ebx]
push eax
call fcn.0046aba0
test eax, eax
pop ecx
jne 0x45c624
mov dword [ebp - 0x210], ebx
push ebx
call fcn.00466d7b
push esi
mov dword [ebp - 0x214], eax
call fcn.00466d7b
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x218], esi
jbe 0x45c683
lea ebx, [ebx + eax*2 - 2]
movzx eax, word [ebx]
push eax
call fcn.0046aba0
test eax, eax
pop ecx
je 0x45c683
dec dword [ebp - 0x214]
dec ebx
dec ebx
cmp dword [ebp - 0x214], 0
ja 0x45c664
test esi, esi
jbe 0x45c6ac
mov eax, dword [ebp - 0x21c]
lea ebx, [eax + esi*2 - 2]
movzx eax, word [ebx]
push eax
call fcn.0046aba0
test eax, eax
pop ecx
je 0x45c6ac
dec esi
dec ebx
dec ebx
test esi, esi
mov dword [ebp - 0x218], esi
ja 0x45c691
push dword [edi + 0x38]
call fcn.00466d7b
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x220], eax
add eax, esi
add eax, dword [ebp - 0x214]
lea ebx, [ecx + eax*2 + 9]
and ebx, 0xfffffffc
lea eax, [ebx + 0xa8]
push eax
call fcn.00467263
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x45c8c5
push 0x30
push edi
push esi
call fcn.00466a00
add ebx, 0xa8
movzx eax, bx
mov ebx, dword [ebp - 0x220]
mov dword [esi], eax
lea eax, [esi + 0xa8]
mov ecx, eax
sub ecx, esi
mov word [esi + 0x38], cx
add ebx, ebx
lea ecx, [ebx + 2]
push ecx
push dword [edi + 0x38]
push eax
call fcn.00466a00
lea ebx, [esi + ebx + 0xaa]
mov eax, ebx
sub eax, esi
mov word [esi + 0x3a], ax
mov eax, dword [ebp - 0x214]
add eax, eax
push eax
push dword [ebp - 0x210]
push ebx
call fcn.00466a00
mov eax, dword [ebp - 0x214]
add eax, eax
add eax, ebx
and word [eax], 0
add esp, 0x24
and dword [ebp - 0x210], 0
mov edx, dword [ebp - 0x210]
lea ecx, [ebx + edx*2]
and edx, 0x3f
mov dx, word [edx*2 + 0x4bc5c0]
xor word [ecx], dx
inc dword [ebp - 0x210]
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp - 0x214]
jbe 0x45c757
lea ebx, [eax + 2]
mov eax, ebx
sub eax, esi
mov word [esi + 0x3c], ax
mov eax, dword [ebp - 0x218]
add eax, eax
push eax
push dword [ebp - 0x21c]
push ebx
call fcn.00466a00
mov eax, dword [ebp - 0x218]
add eax, eax
add eax, ebx
and word [eax], 0
add esp, 0xc
and dword [ebp - 0x210], 0
mov edx, dword [ebp - 0x210]
lea ecx, [ebx + edx*2]
and edx, 0x3f
mov dx, word [edx*2 + 0x4bc5c0]
xor word [ecx], dx
inc dword [ebp - 0x210]
mov ecx, dword [ebp - 0x210]
cmp ecx, dword [ebp - 0x218]
jbe 0x45c7ba
add eax, 2
mov ecx, eax
sub ecx, esi
mov word [esi + 0x3e], cx
push dword [edi + 0x18]
push dword [edi + 0x30]
push eax
call fcn.00466a00
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 4], 4
mov word [ebp - 0x20c], bx
jge 0x45c873
push 0x1c
lea eax, [ebp - 0x23c]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45c873
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45c873
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00468ff3
cmp eax, ebx
pop ecx
pop ecx
je 0x45c858
inc eax
inc eax
jmp 0x45c85e
lea eax, [ebp - 0x20c]
push 0x14
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0046ab11
add esp, 0xc
mov word [esi + 0x66], bx
jmp 0x45c877
mov word [esi + 0x40], bx
push 0x5c
push dword [edi + 0x34]
call fcn.00468ff3
push 0x2f
push dword [edi + 0x34]
mov ebx, eax
call fcn.00468ff3
add esp, 0x10
cmp ebx, eax
ja 0x45c896
mov ebx, eax
test ebx, ebx
jne 0x45c89f
mov ebx, dword [edi + 0x34]
jmp 0x45c8a1
inc ebx
inc ebx
push 0x20
lea eax, [esi + 0x68]
push ebx
push eax
call fcn.0046ab11
and word [esi + 0xa6], 0
add esp, 0xc
push esi
call fcn.0045c4ee
mov ecx, eax
call fcn.0045c53d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004648e8
leave
ret