Function at 0x4152a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x46aff0]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebp
mov ebp, dword [esp + 0x44]
push esi
mov esi, dword [esp + 0x3c]
cmp byte [esi + 0x148], 9
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], esi
je 0x4152e1
pop edi
pop esi
mov eax, 0xfffffffb
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00434664
add esp, 0x30
ret
cmp byte [esi + 1], 1
je 0x4152fe
pop edi
pop esi
mov eax, 0xfffffffa
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00434664
add esp, 0x30
ret
test edi, edi
je 0x415623
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x415623
cdq
and edx, 0x7f
add eax, edx
push ebx
mov ebx, eax
movsx eax, byte [esi]
sar ebx, 7
sub eax, 3
mov dword [esp + 0x14], ebx
je 0x4155ee
sub eax, 1
je 0x41556a
sub eax, 1
je 0x415352
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00434664
add esp, 0x30
ret
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x415552
xor edi, edi
jmp 0x415394
mov esi, dword [esp + 0x18]
xor edi, edi
jmp 0x415394
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x2c]
mov dword [esp + 0x34], eax
push edx
mov eax, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x44], ecx
call fcn.00414970
movzx eax, byte [esp + 0x38]
movzx ebx, byte [esp + 0x28]
add bl, bl
mov ecx, edi
shr ecx, 3
lea esi, [ecx + ebp]
mov edx, edi
and edx, 7
and al, 0x80
mov cl, dl
shr al, cl
movzx ecx, byte [esp + 0x29]
shr cl, 7
or cl, bl
movzx ebx, byte [esp + 0x29]
mov byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x2a]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x2a]
mov byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x2b]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x2b]
mov byte [esp + 0x2a], cl
movzx ecx, byte [esp + 0x2c]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x2c]
mov byte [esp + 0x2b], cl
movzx ecx, byte [esp + 0x2d]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x2d]
mov byte [esp + 0x2c], cl
movzx ecx, byte [esp + 0x2e]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x2e]
xor byte [esi], al
mov byte [esp + 0x2d], cl
movzx ecx, byte [esp + 0x2f]
mov al, byte [esi]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x2f]
mov byte [esp + 0x2e], cl
movzx ecx, byte [esp + 0x30]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x30]
mov byte [esp + 0x2f], cl
movzx ecx, byte [esp + 0x31]
shr cl, 7
add bl, bl
add esp, 0xc
or cl, bl
mov byte [esp + 0x24], cl
movzx ecx, byte [esp + 0x26]
movzx ebx, byte [esp + 0x25]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x26]
mov byte [esp + 0x25], cl
movzx ecx, byte [esp + 0x27]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x27]
mov byte [esp + 0x26], cl
movzx ecx, byte [esp + 0x28]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x28]
mov byte [esp + 0x27], cl
movzx ecx, byte [esp + 0x29]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x29]
mov byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x2a]
shr cl, 7
add bl, bl
or cl, bl
movzx ebx, byte [esp + 0x2a]
mov byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x2b]
shr cl, 7
add bl, bl
or cl, bl
mov byte [esp + 0x2a], cl
mov cl, 7
sub cl, dl
mov dl, byte [esp + 0x2b]
shr al, cl
add dl, dl
inc edi
and al, 1
or al, dl
cmp edi, 0x80
mov byte [esp + 0x2b], al
jl 0x415390
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x415380
mov ebx, dword [esp + 0x14]
mov eax, ebx
pop ebx
pop edi
pop esi
shl eax, 7
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00434664
add esp, 0x30
ret
mov eax, dword [esi + 0x44]
xor eax, dword [edi]
mov ecx, dword [esi + 0x48]
xor ecx, dword [edi + 4]
mov edx, dword [esi + 0x4c]
xor edx, dword [edi + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x50]
xor eax, dword [edi + 0xc]
mov dword [esp + 0x30], ecx
push ebp
lea ecx, [esp + 0x30]
push ecx
push esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.00414970
dec ebx
add esp, 0xc
add edi, 0x10
test ebx, ebx
jle 0x41554e
mov edx, dword [ebp]
xor edx, dword [edi]
mov eax, dword [ebp + 4]
xor eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
xor ecx, dword [edi + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0xc]
xor edx, dword [edi + 0xc]
mov dword [esp + 0x30], eax
add ebp, 0x10
push ebp
lea eax, [esp + 0x30]
push eax
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
call fcn.00414970
dec ebx
add esp, 0xc
add edi, 0x10
test ebx, ebx
jg 0x4155a8
jmp 0x41554e
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x415552
lea ebx, [ebx]
push ebp
push edi
push esi
call fcn.00414970
mov eax, dword [esp + 0x1c]
dec eax
add esp, 0xc
add edi, 0x10
add ebp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jg 0x415600
jmp 0x415552
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00434664
add esp, 0x30
ret