Function at 0x45c655
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.0046ad50
test eax, eax
pop ecx
je 0x45c6a4
inc esi
inc esi
movzx eax, word [esi]
push eax
call fcn.0046ad50
test eax, eax
pop ecx
jne 0x45c68e
mov dword [ebp - 0x21c], esi
movzx eax, word [ebx]
push eax
call fcn.0046ad50
test eax, eax
pop ecx
je 0x45c6c8
inc ebx
inc ebx
movzx eax, word [ebx]
push eax
call fcn.0046ad50
test eax, eax
pop ecx
jne 0x45c6b2
mov dword [ebp - 0x210], ebx
push ebx
call fcn.00466f2b
push esi
mov dword [ebp - 0x214], eax
call fcn.00466f2b
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x218], esi
jbe 0x45c711
lea ebx, [ebx + eax*2 - 2]
movzx eax, word [ebx]
push eax
call fcn.0046ad50
test eax, eax
pop ecx
je 0x45c711
dec dword [ebp - 0x214]
dec ebx
dec ebx
cmp dword [ebp - 0x214], 0
ja 0x45c6f2
test esi, esi
jbe 0x45c73a
mov eax, dword [ebp - 0x21c]
lea ebx, [eax + esi*2 - 2]
movzx eax, word [ebx]
push eax
call fcn.0046ad50
test eax, eax
pop ecx
je 0x45c73a
dec esi
dec ebx
dec ebx
test esi, esi
mov dword [ebp - 0x218], esi
ja 0x45c71f
push dword [edi + 0x38]
call fcn.00466f2b
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.00467413
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x45c953
push 0x30
push edi
push esi
call fcn.00466bb0
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.00466bb0
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.00466bb0
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 0x45c7e5
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.00466bb0
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 0x45c848
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.00466bb0
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 4], 4
mov word [ebp - 0x20c], bx
jge 0x45c901
push 0x1c
lea eax, [ebp - 0x23c]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45c901
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45c901
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004691a3
cmp eax, ebx
pop ecx
pop ecx
je 0x45c8e6
inc eax
inc eax
jmp 0x45c8ec
lea eax, [ebp - 0x20c]
push 0x14
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0046acc1
add esp, 0xc
mov word [esi + 0x66], bx
jmp 0x45c905
mov word [esi + 0x40], bx
push 0x5c
push dword [edi + 0x34]
call fcn.004691a3
push 0x2f
push dword [edi + 0x34]
mov ebx, eax
call fcn.004691a3
add esp, 0x10
cmp ebx, eax
ja 0x45c924
mov ebx, eax
test ebx, ebx
jne 0x45c92d
mov ebx, dword [edi + 0x34]
jmp 0x45c92f
inc ebx
inc ebx
push 0x20
lea eax, [esi + 0x68]
push ebx
push eax
call fcn.0046acc1
and word [esi + 0xa6], 0
add esp, 0xc
push esi
call fcn.0045c57c
mov ecx, eax
call fcn.0045c5cb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00464a9b
leave
ret