Function at 0x413ff4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0x4c
pop eax
call fcn.004653a0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov ecx, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41484e
mov dword [ebp - 0x4c], eax
movzx eax, byte [esi]
xor edx, edx
inc esi
mov dh, byte [esi]
push 3
or eax, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x10
or eax, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x18
or eax, edx
mov dword [ebp - 0xc], eax
xor edx, edx
inc esi
movzx eax, byte [esi]
inc esi
mov dh, byte [esi]
or eax, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x10
or eax, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x18
or eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp - 4]
inc esi
and eax, ebx
xor eax, dword [ebp + 0xc]
add eax, dword [ebp - 0xc]
add eax, ecx
push eax
call fcn.004667c3
mov dword [ebp + 8], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 7
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
xor eax, ebx
and eax, dword [ebp + 8]
inc esi
xor eax, dword [ebp - 4]
add eax, dword [ebp - 0x2c]
add eax, dword [ebp + 0xc]
push eax
call fcn.004667c3
xor ecx, ecx
mov dword [ebp + 0xc], eax
movzx eax, byte [esi]
inc esi
mov ch, byte [esi]
push 0xb
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
mov dword [ebp - 0x3c], eax
mov eax, ebx
xor eax, dword [ebp + 8]
and eax, dword [ebp + 0xc]
xor eax, ebx
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 4]
push eax
call fcn.004667c3
mov dword [ebp - 4], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 0x13
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp + 8]
inc esi
and eax, dword [ebp - 4]
xor eax, dword [ebp + 8]
add eax, dword [ebp - 0x3c]
add eax, ebx
push eax
call fcn.004667c3
mov ebx, eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 3
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp - 4]
inc esi
and eax, ebx
xor eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
add eax, dword [ebp + 8]
push eax
call fcn.004667c3
mov dword [ebp + 8], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 7
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
xor eax, ebx
and eax, dword [ebp + 8]
inc esi
xor eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
add eax, dword [ebp + 0xc]
push eax
call fcn.004667c3
mov dword [ebp + 0xc], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 0xb
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x44], eax
mov eax, ebx
xor eax, dword [ebp + 8]
inc esi
and eax, dword [ebp + 0xc]
xor eax, ebx
add eax, dword [ebp - 0x24]
add eax, dword [ebp - 4]
push eax
call fcn.004667c3
mov dword [ebp - 4], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 0x13
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp + 8]
inc esi
and eax, dword [ebp - 4]
xor eax, dword [ebp + 8]
add eax, dword [ebp - 0x44]
add eax, ebx
push eax
call fcn.004667c3
mov ebx, eax
movzx eax, byte [esi]
xor ecx, ecx
add esp, 0x40
inc esi
mov ch, byte [esi]
push 3
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp - 4]
inc esi
and eax, ebx
xor eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
add eax, dword [ebp + 8]
push eax
call fcn.004667c3
mov dword [ebp + 8], eax
movzx eax, byte [esi]
inc esi
xor ecx, ecx
mov ch, byte [esi]
push 7
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
xor eax, ebx
and eax, dword [ebp + 8]
inc esi
xor eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
add eax, dword [ebp + 0xc]
push eax
call fcn.004667c3
mov dword [ebp + 0xc], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 0xb
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x40], eax
mov eax, ebx
xor eax, dword [ebp + 8]
inc esi
and eax, dword [ebp + 0xc]
xor eax, ebx
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 4]
push eax
call fcn.004667c3
mov dword [ebp - 4], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 0x13
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp + 8]
inc esi
and eax, dword [ebp - 4]
xor eax, dword [ebp + 8]
add eax, dword [ebp - 0x40]
add eax, ebx
push eax
call fcn.004667c3
xor ecx, ecx
mov dword [ebp + 0x10], eax
movzx eax, byte [esi]
inc esi
mov ch, byte [esi]
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebp - 4]
push 3
and eax, dword [ebp + 0x10]
inc esi
xor eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x18]
add eax, dword [ebp + 8]
push eax
call fcn.004667c3
mov dword [ebp + 8], eax
movzx eax, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 7
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp + 0x10]
inc esi
and eax, dword [ebp + 8]
xor eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
add eax, dword [ebp + 0xc]
push eax
call fcn.004667c3
movzx ebx, byte [esi]
xor ecx, ecx
inc esi
mov ch, byte [esi]
push 0xb
mov dword [ebp + 0xc], eax
or ebx, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or ebx, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or ebx, ecx
mov ecx, dword [ebp + 0x10]
xor ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
and ecx, eax
xor ecx, dword [ebp + 0x10]
inc esi
add ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 4]
push ecx
call fcn.004667c3
mov ecx, dword [ebp + 0xc]
xor ecx, dword [ebp + 8]
push 0x13
and ecx, eax
xor ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
add ecx, ebx
add ecx, dword [ebp + 0x10]
push ecx
call fcn.004667c3
mov ebx, eax
mov eax, dword [ebp - 4]
add esp, 0x40
mov dword [ebp + 0x10], ebx
push 3
mov ecx, dword [ebp - 4]
or eax, ebx
and eax, dword [ebp + 0xc]
and ecx, ebx
or eax, ecx
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 0x5a827999]
push eax
call fcn.004667c3
or ebx, eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
and eax, dword [ebp + 8]
mov ecx, ebx
and ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
or ecx, eax
add ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
lea eax, [ecx + eax + 0x5a827999]
push 5
push eax
call fcn.004667c3
and ebx, eax
or ebx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
add ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
lea eax, [ebx + eax + 0x5a827999]
push 9
push eax
call fcn.004667c3
mov ebx, dword [ebp + 8]
mov ecx, eax
or ecx, ebx
and ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
and eax, ebx
or ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
lea eax, [ecx + eax + 0x5a827999]
push 0xd
push eax
call fcn.004667c3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
or ecx, eax
and ecx, dword [ebp + 0xc]
and edx, eax
or ecx, edx
add ecx, dword [ebp - 0x2c]
mov dword [ebp + 0x10], eax
lea eax, [ecx + ebx + 0x5a827999]
push 3
push eax
call fcn.004667c3
mov ebx, dword [ebp + 0x10]
or ebx, eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
and eax, dword [ebp + 8]
mov ecx, ebx
and ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
or ecx, eax
add ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 0xc]
lea eax, [ecx + eax + 0x5a827999]
push 5
push eax
call fcn.004667c3
and ebx, eax
or ebx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
add ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
push 9
lea eax, [ebx + eax + 0x5a827999]
push eax
call fcn.004667c3
mov ebx, dword [ebp + 8]
mov ecx, eax
or ecx, ebx
and ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
and eax, ebx
or ecx, eax
add ecx, dword [ebp - 0x38]
mov eax, dword [ebp + 0x10]
lea eax, [ecx + eax + 0x5a827999]
push 0xd
push eax
call fcn.004667c3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
or ecx, eax
and ecx, dword [ebp + 0xc]
and edx, eax
or ecx, edx
add ecx, dword [ebp - 0x1c]
add esp, 0x40
mov dword [ebp + 0x10], eax
lea eax, [ecx + ebx + 0x5a827999]
push 3
push eax
call fcn.004667c3
mov ebx, dword [ebp + 0x10]
or ebx, eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
and eax, dword [ebp + 8]
mov ecx, ebx
and ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
or ecx, eax
add ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
lea eax, [ecx + eax + 0x5a827999]
push 5
push eax
call fcn.004667c3
and ebx, eax
or ebx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
add ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
lea eax, [ebx + eax + 0x5a827999]
push 9
push eax
call fcn.004667c3
mov ebx, dword [ebp + 8]
mov ecx, eax
or ecx, ebx
and ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
and eax, ebx
or ecx, eax
add ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0x10]
lea eax, [ecx + eax + 0x5a827999]
push 0xd
push eax
call fcn.004667c3
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
or ecx, eax
and ecx, dword [ebp + 0xc]
and edx, eax
or ecx, edx
add ecx, dword [ebp - 0x3c]
mov dword [ebp + 0x10], eax
lea eax, [ecx + ebx + 0x5a827999]
push 3
push eax
call fcn.004667c3
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
or ebx, eax
mov eax, dword [ebp + 0x10]
and eax, dword [ebp + 8]
mov ecx, ebx
and ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
or ecx, eax
add ecx, dword [ebp - 0x44]
mov eax, dword [ebp + 0xc]
lea eax, [ecx + eax + 0x5a827999]
push 5
push eax
call fcn.004667c3
and ebx, eax
or ebx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
add ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 4]
lea eax, [ebx + eax + 0x5a827999]
push 9
push eax
call fcn.004667c3
mov ebx, eax
or eax, dword [ebp + 8]
mov ecx, ebx
and eax, dword [ebp + 0xc]
and ecx, dword [ebp + 8]
push 0xd
or eax, ecx
add eax, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x10]
lea eax, [eax + ecx + 0x5a827999]
push eax
call fcn.004667c3
mov ecx, dword [ebp + 0xc]
xor ecx, ebx
xor ecx, eax
add ecx, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
add esp, 0x40
lea eax, [ecx + eax + 0x6ed9eba1]
push 3
push eax
call fcn.004667c3
mov ecx, ebx
xor ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
xor ecx, eax
add ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
lea eax, [ecx + eax + 0x6ed9eba1]
push 9
push eax
call fcn.004667c3
mov dword [ebp + 0xc], eax
xor eax, dword [ebp + 0x10]
push 0xb
xor eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
lea eax, [eax + ebx + 0x6ed9eba1]
push eax
call fcn.004667c3
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor ebx, eax
mov dword [ebp - 4], eax
mov eax, ebx
xor eax, dword [ebp + 8]
push 0xf
add eax, dword [ebp - 0x18]
lea eax, [eax + ecx + 0x6ed9eba1]
push eax
call fcn.004667c3
xor ebx, eax
add ebx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
lea eax, [ebx + eax + 0x6ed9eba1]
push 3
push eax
call fcn.004667c3
mov dword [ebp + 8], eax
push 9
mov ebx, dword [ebp - 4]
mov ecx, ebx
xor ecx, dword [ebp + 0x10]
xor ecx, eax
add ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
lea eax, [ecx + eax + 0x6ed9eba1]
push eax
call fcn.004667c3
mov dword [ebp + 0xc], eax
xor eax, dword [ebp + 0x10]
push 0xb
xor eax, dword [ebp + 8]
add eax, dword [ebp - 0x24]
lea eax, [eax + ebx + 0x6ed9eba1]
push eax
call fcn.004667c3
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor ebx, eax
mov dword [ebp - 4], eax
mov eax, ebx
xor eax, dword [ebp + 8]
push 0xf
add eax, dword [ebp - 0x28]
lea eax, [eax + ecx + 0x6ed9eba1]
push eax
call fcn.004667c3
xor ebx, eax
add ebx, dword [ebp - 0x2c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
add esp, 0x40
lea eax, [ebx + eax + 0x6ed9eba1]
push 3
push eax
call fcn.004667c3
mov ebx, dword [ebp - 4]
mov ecx, ebx
xor ecx, dword [ebp + 0x10]
mov dword [ebp + 8], eax
xor ecx, eax
add ecx, dword [ebp - 0x30]
mov eax, dword [ebp + 0xc]
lea eax, [ecx + eax + 0x6ed9eba1]
push 9
push eax
call fcn.004667c3
mov dword [ebp + 0xc], eax
xor eax, dword [ebp + 0x10]
push 0xb
xor eax, dword [ebp + 8]
add eax, dword [ebp - 0x34]
lea eax, [eax + ebx + 0x6ed9eba1]
push eax
call fcn.004667c3
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
xor ebx, eax
mov dword [ebp - 4], eax
mov eax, ebx
xor eax, dword [ebp + 8]
push 0xf
add eax, dword [ebp - 0x38]
lea eax, [eax + ecx + 0x6ed9eba1]
push eax
call fcn.004667c3
xor ebx, eax
add ebx, dword [ebp - 0x3c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
lea eax, [ebx + eax + 0x6ed9eba1]
push 3
push eax
call fcn.004667c3
mov ebx, eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp + 0x10]
push 9
xor eax, ebx
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx + 0x6ed9eba1]
push eax
call fcn.004667c3
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], eax
xor eax, dword [ebp + 0x10]
push 0xb
xor eax, ebx
add eax, dword [ebp - 0x44]
lea eax, [eax + ecx + 0x6ed9eba1]
push eax
call fcn.004667c3
mov ecx, dword [ebp + 0xc]
xor ecx, eax
xor ecx, ebx
add ecx, dword [ebp - 0x48]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
lea eax, [ecx + eax + 0x6ed9eba1]
push 0xf
push eax
call fcn.004667c3
add dword [edi + 4], eax
mov eax, dword [ebp - 4]
add dword [edi + 8], eax
mov eax, dword [edi + 8]
add dword [edi], ebx
mov ecx, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
add dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
add esp, 0x40
dec dword [ebp - 0x4c]
mov dword [ebp + 0xc], eax
jne 0x414027
pop edi
pop esi
pop ebx
leave
ret