Function at 0x4a41e0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.00486260
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
xor ebx, ebx
test ebp, ebp
je 0x4a4220
movzx eax, byte [ebx + esi]
mov edx, dword [esp + 0x10]
push ebx
mov ecx, ebx
push eax
shr ecx, 3
lea eax, [edx + ecx*4]
push eax
call fcn.004a3ce0
inc ebx
add esp, 0xc
cmp ebx, ebp
jne 0x4a4200
cmp ebp, 0x10
jne 0x4a4411
xor eax, eax
jmp 0x4a4230
mov ecx, dword [esp + 0x10]
movzx ebx, byte [ecx]
movzx ecx, byte [ecx + 4]
movzx edx, byte [eax + 0x508010]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
xor edx, ecx
mov edx, dword [edx*4 + 0x508430]
mov ecx, dword [edi + 0x14]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 1]
movzx ebx, byte [eax + 0x508110]
movzx ecx, byte [ecx + 5]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
xor edx, ecx
mov edx, dword [edx*4 + 0x508830]
mov ecx, dword [edi + 0x24]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 2]
movzx ebx, byte [eax + 0x508010]
movzx ecx, byte [ecx + 6]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
xor edx, ecx
mov edx, dword [edx*4 + 0x508c30]
mov ecx, dword [edi + 0x34]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 3]
movzx ebx, byte [eax + 0x508110]
movzx ecx, byte [ecx + 7]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
xor edx, ecx
mov ecx, dword [edi + 0x44]
mov edx, dword [edx*4 + 0x509030]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, 0x100
jne 0x4a4230
xor edx, edx
lea esp, [esp]
movzx eax, byte [edx + 0x508011]
movzx ebx, byte [esi + 0xc]
xor ebx, eax
movzx eax, byte [ebx + 0x508010]
movzx ebx, byte [esi + 4]
movzx ecx, byte [edx + 0x508111]
xor eax, ebx
movzx ebx, byte [esi + 0xf]
xor ebx, ecx
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 7]
mov eax, dword [eax*4 + 0x508430]
xor ebx, ebp
xor eax, dword [ebx*4 + 0x509030]
movzx ebx, byte [esi + 0xd]
xor ebx, ecx
movzx ecx, byte [ebx + 0x508010]
movzx ebx, byte [esi + 5]
xor ecx, ebx
xor eax, dword [ecx*4 + 0x508830]
movzx ecx, byte [edx + 0x508011]
movzx ebx, byte [esi + 0xe]
xor ebx, ecx
movzx ecx, byte [ebx + 0x508110]
movzx ebx, byte [esi + 6]
movzx ebp, byte [esi + 3]
xor ecx, ebx
xor eax, dword [ecx*4 + 0x508c30]
movzx ecx, byte [edx + 0x508110]
movzx ebx, byte [esi + 0xb]
xor ebx, ecx
movzx ebx, byte [ebx + 0x508110]
xor ebx, ebp
movzx ebp, byte [esi + 9]
xor ebp, ecx
movzx ebp, byte [ebp + 0x508010]
movzx ecx, byte [esi + 1]
xor ebp, ecx
mov ecx, dword [ebx*4 + 0x509030]
xor ecx, dword [ebp*4 + 0x508830]
movzx ebx, byte [edx + 0x508010]
movzx ebp, byte [esi + 0xa]
xor ebp, ebx
movzx ebx, byte [ebp + 0x508110]
movzx ebp, byte [esi + 2]
xor ebx, ebp
xor ecx, dword [ebx*4 + 0x508c30]
movzx ebx, byte [edx + 0x508010]
movzx ebp, byte [esi + 8]
xor ebp, ebx
movzx ebx, byte [ebp + 0x508010]
movzx ebp, byte [esi]
xor ebx, ebp
xor ecx, dword [ebx*4 + 0x508430]
mov ebx, dword [edi + 0x54]
rol eax, 8
add ecx, eax
add eax, ecx
mov dword [ebx + edx*4], ecx
mov ecx, dword [edi + 0x54]
rol eax, 9
mov dword [ecx + edx*4 + 4], eax
add edx, 2
cmp edx, 0x28
jne 0x4a42f0
jmp 0x4a49b6
cmp ebp, 0x18
jne 0x4a46a0
xor eax, eax
lea esp, [esp]
mov ecx, dword [esp + 0x10]
movzx ebx, byte [ecx]
movzx edx, byte [eax + 0x508110]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
movzx ebx, byte [ecx + 4]
movzx ecx, byte [ecx + 8]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
xor edx, ecx
mov edx, dword [edx*4 + 0x508430]
mov ecx, dword [edi + 0x14]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 1]
movzx ebx, byte [eax + 0x508110]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
movzx ebx, byte [ecx + 5]
movzx ecx, byte [ecx + 9]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
xor edx, ecx
mov edx, dword [edx*4 + 0x508830]
mov ecx, dword [edi + 0x24]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 2]
movzx ebx, byte [eax + 0x508010]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
movzx ebx, byte [ecx + 6]
movzx ecx, byte [ecx + 0xa]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
xor edx, ecx
mov edx, dword [edx*4 + 0x508c30]
mov ecx, dword [edi + 0x34]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 3]
movzx ebx, byte [eax + 0x508010]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
movzx ebx, byte [ecx + 7]
movzx ecx, byte [ecx + 0xb]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
xor edx, ecx
mov ecx, dword [edi + 0x44]
mov edx, dword [edx*4 + 0x509030]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, 0x100
jne 0x4a4420
xor edx, edx
lea ecx, [ecx]
movzx ecx, byte [edx + 0x508011]
movzx ebx, byte [esi + 0x17]
xor ebx, ecx
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 0xf]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 7]
xor ebx, ebp
movzx eax, byte [edx + 0x508111]
movzx ebp, byte [esi + 0x15]
xor ebp, eax
movzx eax, byte [ebp + 0x508110]
movzx ebp, byte [esi + 0xd]
xor eax, ebp
movzx ebp, byte [eax + 0x508010]
movzx eax, byte [esi + 5]
xor ebp, eax
mov eax, dword [ebx*4 + 0x509030]
xor eax, dword [ebp*4 + 0x508830]
movzx ebx, byte [edx + 0x508111]
movzx ebp, byte [esi + 0x14]
xor ebp, ebx
movzx ebx, byte [ebp + 0x508010]
movzx ebp, byte [esi + 0xc]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi + 4]
xor ebx, ebp
xor eax, dword [ebx*4 + 0x508430]
movzx ebx, byte [esi + 0x16]
xor ebx, ecx
movzx ecx, byte [ebx + 0x508010]
movzx ebx, byte [esi + 0xe]
xor ecx, ebx
movzx ecx, byte [ecx + 0x508110]
movzx ebx, byte [esi + 6]
movzx ebp, byte [esi + 0x10]
xor ecx, ebx
movzx ebx, byte [edx + 0x508110]
xor ebp, ebx
movzx ebx, byte [ebp + 0x508010]
movzx ebp, byte [esi + 8]
xor eax, dword [ecx*4 + 0x508c30]
movzx ecx, byte [edx + 0x508010]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi]
xor ebx, ebp
movzx ebp, byte [esi + 0x13]
xor ebp, ecx
movzx ecx, byte [ebp + 0x508110]
movzx ebp, byte [esi + 0xb]
xor ecx, ebp
movzx ebp, byte [ecx + 0x508110]
movzx ecx, byte [esi + 3]
xor ebp, ecx
mov ecx, dword [ebx*4 + 0x508430]
xor ecx, dword [ebp*4 + 0x509030]
movzx ebx, byte [edx + 0x508110]
movzx ebp, byte [esi + 0x11]
xor ebp, ebx
movzx ebx, byte [ebp + 0x508110]
movzx ebp, byte [esi + 9]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi + 1]
xor ebx, ebp
xor ecx, dword [ebx*4 + 0x508830]
movzx ebx, byte [edx + 0x508010]
movzx ebp, byte [esi + 0x12]
xor ebp, ebx
movzx ebx, byte [ebp + 0x508010]
movzx ebp, byte [esi + 0xa]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 2]
xor ebx, ebp
xor ecx, dword [ebx*4 + 0x508c30]
rol eax, 8
add ecx, eax
mov ebx, dword [edi + 0x54]
add eax, ecx
mov dword [ebx + edx*4], ecx
mov ecx, dword [edi + 0x54]
rol eax, 9
mov dword [ecx + edx*4 + 4], eax
add edx, 2
cmp edx, 0x28
jne 0x4a4510
jmp 0x4a49b6
cmp ebp, 0x20
jne 0x4a49b6
xor eax, eax
jmp 0x4a46b0
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx]
movzx ebx, byte [eax + 0x508110]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
movzx ebx, byte [ecx + 4]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
movzx ebx, byte [ecx + 8]
movzx ecx, byte [ecx + 0xc]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
xor edx, ecx
mov edx, dword [edx*4 + 0x508430]
mov ecx, dword [edi + 0x14]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 1]
movzx ebx, byte [eax + 0x508010]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
movzx ebx, byte [ecx + 5]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
movzx ebx, byte [ecx + 9]
movzx ecx, byte [ecx + 0xd]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
xor edx, ecx
mov edx, dword [edx*4 + 0x508830]
mov ecx, dword [edi + 0x24]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 2]
movzx ebx, byte [eax + 0x508010]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
movzx ebx, byte [ecx + 6]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
movzx ebx, byte [ecx + 0xa]
movzx ecx, byte [ecx + 0xe]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
xor edx, ecx
mov edx, dword [edx*4 + 0x508c30]
mov ecx, dword [edi + 0x34]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x10]
movzx edx, byte [ecx + 3]
movzx ebx, byte [eax + 0x508110]
xor edx, ebx
movzx edx, byte [edx + 0x508010]
movzx ebx, byte [ecx + 7]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
movzx ebx, byte [ecx + 0xb]
movzx ecx, byte [ecx + 0xf]
xor edx, ebx
movzx edx, byte [edx + 0x508110]
xor edx, ecx
mov ecx, dword [edi + 0x44]
mov edx, dword [edx*4 + 0x509030]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, 0x100
jne 0x4a46b0
xor edx, edx
movzx eax, byte [edx + 0x508111]
movzx ebx, byte [esi + 0x1f]
xor ebx, eax
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi + 0x17]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 0xf]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 7]
xor ebx, ebp
movzx ebp, byte [esi + 0x1c]
xor ebp, eax
movzx eax, byte [ebp + 0x508110]
movzx ebp, byte [esi + 0x14]
xor eax, ebp
movzx eax, byte [eax + 0x508010]
movzx ebp, byte [esi + 0xc]
movzx ecx, byte [edx + 0x508011]
xor eax, ebp
movzx ebp, byte [eax + 0x508010]
movzx eax, byte [esi + 4]
xor ebp, eax
mov eax, dword [ebx*4 + 0x509030]
xor eax, dword [ebp*4 + 0x508430]
movzx ebx, byte [esi + 0x1d]
xor ebx, ecx
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 0x15]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 0xd]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi + 5]
xor ebx, ebp
xor eax, dword [ebx*4 + 0x508830]
movzx ebx, byte [esi + 0x1e]
xor ebx, ecx
movzx ecx, byte [ebx + 0x508010]
movzx ebx, byte [esi + 0x16]
xor ecx, ebx
movzx ecx, byte [ecx + 0x508010]
movzx ebx, byte [esi + 0xe]
xor ecx, ebx
movzx ecx, byte [ecx + 0x508110]
movzx ebx, byte [esi + 6]
movzx ebp, byte [esi + 0x11]
xor ecx, ebx
xor eax, dword [ecx*4 + 0x508c30]
movzx ecx, byte [edx + 0x508010]
movzx ebx, byte [esi + 0x19]
xor ebx, ecx
movzx ebx, byte [ebx + 0x508110]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 9]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi + 1]
xor ebx, ebp
movzx ebp, byte [esi + 0x1a]
xor ebp, ecx
movzx ecx, byte [ebp + 0x508010]
movzx ebp, byte [esi + 0x12]
xor ecx, ebp
movzx ecx, byte [ecx + 0x508010]
movzx ebp, byte [esi + 0xa]
xor ecx, ebp
movzx ebp, byte [ecx + 0x508110]
movzx ecx, byte [esi + 2]
xor ebp, ecx
mov ecx, dword [ebx*4 + 0x508830]
xor ecx, dword [ebp*4 + 0x508c30]
movzx ebx, byte [edx + 0x508110]
movzx ebp, byte [esi + 0x18]
rol eax, 8
xor ebp, ebx
movzx ebx, byte [ebp + 0x508110]
movzx ebp, byte [esi + 0x10]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi + 8]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508010]
movzx ebp, byte [esi]
xor ebx, ebp
xor ecx, dword [ebx*4 + 0x508430]
movzx ebx, byte [edx + 0x508110]
movzx ebp, byte [esi + 0x1b]
xor ebp, ebx
movzx ebx, byte [ebp + 0x508010]
movzx ebp, byte [esi + 0x13]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 0xb]
xor ebx, ebp
movzx ebx, byte [ebx + 0x508110]
movzx ebp, byte [esi + 3]
xor ebx, ebp
xor ecx, dword [ebx*4 + 0x509030]
mov ebx, dword [edi + 0x54]
add ecx, eax
add eax, ecx
mov dword [ebx + edx*4], ecx
mov ecx, dword [edi + 0x54]
rol eax, 9
mov dword [ecx + edx*4 + 4], eax
add edx, 2
cmp edx, 0x28
jne 0x4a47d1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x14]
push eax
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8