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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
jle 0x43a5f2
cmp dword [ebp - 0xc], 0x20
jle 0x43a608
mov ecx, 0x43aa58
mov dl, 1
mov eax, dword [0x407b58]
call fcn.0040c938
call fcn.004043b4
cmp dword [ebp + 8], 0
jne 0x43a638
mov eax, dword [ebp - 4]
add eax, 0x10b4
xor ecx, ecx
mov edx, 0x10
call fcn.004031cc
mov eax, dword [ebp - 4]
add eax, 0x10c4
xor ecx, ecx
mov edx, 0x10
call fcn.004031cc
jmp 0x43a664
mov edx, dword [ebp - 4]
add edx, 0x10b4
mov eax, dword [ebp + 8]
mov ecx, 0x10
call fcn.004028dc
mov edx, dword [ebp - 4]
add edx, 0x10c4
mov eax, dword [ebp + 8]
mov ecx, 0x10
call fcn.004028dc
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x20
call fcn.004031cc
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004028dc
cmp dword [ebp - 0xc], 0x10
jg 0x43a68e
mov dword [ebp - 0xc], 0x80
mov dword [ebp - 0x28], 0x28
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
test eax, eax
jns 0x43a6a7
add eax, 0x3f
sar eax, 6
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43a711
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
add eax, eax
mov eax, dword [ebp + eax*4 - 0x4c]
mov edx, dword [ebp - 0x14]
mov dword [ebp + edx*4 - 0x5c], eax
mov eax, dword [ebp - 0x14]
add eax, eax
mov eax, dword [ebp + eax*4 - 0x48]
mov edx, dword [ebp - 0x14]
mov dword [ebp + edx*4 - 0x6c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + eax*4 - 0x6c]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x5c]
call fcn.0043a2a8
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [edx + ecx*4 + 0xa4], eax
dec dword [ebp - 0x18]
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x43a6c6
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
sar eax, 1
jns 0x43a720
adc eax, 0
dec eax
test eax, eax
jl 0x43a7b0
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.0043a388
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 0x24]
add eax, 0x1010101
mov ecx, dword [ebp - 0xc]
call fcn.0043a388
mov dword [ebp - 0x20], eax
mov edx, 8
mov eax, dword [ebp - 0x20]
call fcn.0043a014
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x20]
mov dword [edx + eax*4 + 4], ecx
mov eax, dword [ebp - 0x20]
add eax, eax
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov edx, 9
mov eax, dword [ebp - 0x20]
call fcn.0043a014
mov edx, dword [ebp - 0x14]
add edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*4 + 8], eax
add dword [ebp - 0x24], 0x2020202
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x43a734
mov eax, dword [ebp - 0xc]
sub eax, 0x80
jne 0x43aa4a
push ebp
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + 0xa8]
and cl, 0xff
mov edx, 0x489938
lea eax, [ebp - 0x16c]
call fcn.0043a594
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
and eax, 0xff
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x100
jge 0x43a85e
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16c]
movzx ecx, byte [ecx + 0x489938]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48e79c]
mov dword [edx + eax*4 + 0xb4], ecx
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16b]
movzx ecx, byte [ecx + 0x489938]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48e79c]
mov dword [edx + eax*4 + 0xbc], ecx
add dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], 0x100
jl 0x43a7fb
push ebp
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xa8]
shr ecx, 8
and cl, 0xff
mov edx, 0x489a38
lea eax, [ebp - 0x16c]
call fcn.0043a594
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x100
jge 0x43a905
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16c]
movzx ecx, byte [ecx + 0x489938]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48eb9c]
mov dword [edx + eax*4 + 0xb8], ecx
mov eax, dword [ebp - 0x14]
add eax, eax
inc eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16b]
movzx ecx, byte [ecx + 0x489938]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48eb9c]
mov dword [edx + eax*4 + 0xbc], ecx
add dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], 0x100
jl 0x43a8a1
push ebp
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xa8]
shr ecx, 0x10
and cl, 0xff
mov edx, 0x489938
lea eax, [ebp - 0x16c]
call fcn.0043a594
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
shr eax, 0x10
and eax, 0xff
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x100
jge 0x43a9ab
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16c]
movzx ecx, byte [ecx + 0x489a38]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48ef9c]
mov dword [edx + eax*4 + 0x8b4], ecx
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16b]
movzx ecx, byte [ecx + 0x489a38]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48ef9c]
mov dword [edx + eax*4 + 0x8bc], ecx
add dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], 0x100
jl 0x43a948
push ebp
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xa8]
shr ecx, 0x18
mov edx, 0x489a38
lea eax, [ebp - 0x16c]
call fcn.0043a594
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
shr eax, 0x18
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x100
jge 0x43aa4a
mov eax, dword [ebp - 0x14]
add eax, eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16c]
movzx ecx, byte [ecx + 0x489a38]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48f39c]
mov dword [edx + eax*4 + 0x8b8], ecx
mov eax, dword [ebp - 0x14]
add eax, eax
inc eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ebp + ecx - 0x16b]
movzx ecx, byte [ecx + 0x489a38]
xor ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx*4 + 0x48f39c]
mov dword [edx + eax*4 + 0x8bc], ecx
add dword [ebp - 0x14], 2
cmp dword [ebp - 0x14], 0x100
jl 0x43a9e6
mov esp, ebp
pop ebp
ret 4