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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov ebx, 0x64ce54
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
lea edx, [ebx + 0x100]
lea eax, [ebp - 0x210]
call fcn.005323e4
mov eax, pe_nt_image_headers32
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx + 0x100]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x532721
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005323e4
mov eax, dword [ebp + 8]
movzx edx, byte [eax - 0x18]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 0x14]
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 4]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi]
xor esi, ecx
movzx esi, byte [ebx + esi]
xor esi, edx
mov esi, dword [esi*4 + 0x64d054]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
mov dword [edi + eax*4], esi
inc eax
inc dword [ebp - 4]
cmp eax, 0x100
jne 0x532763
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 8
mov edx, ebx
lea eax, [ebp - 0x210]
call fcn.005323e4
mov eax, pe_nt_image_headers32
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx + 0x100]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x5327b7
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 8
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005323e4
mov eax, dword [ebp + 8]
movzx edx, byte [eax - 0x17]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 0x13]
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi + 0x100]
xor esi, ecx
movzx esi, byte [ebx + esi]
xor esi, edx
mov esi, dword [esi*4 + 0x64d454]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
mov dword [edi + eax*4 + 0x400], esi
inc eax
inc dword [ebp - 8]
cmp eax, 0x100
jne 0x5327fc
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x10
mov edx, ebx
lea eax, [ebp - 0x210]
call fcn.005323e4
mov eax, pe_nt_image_headers32
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x532858
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x10
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005323e4
mov eax, dword [ebp + 8]
movzx edx, byte [eax - 0x16]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 0x12]
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0xc]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi]
xor esi, ecx
movzx esi, byte [ebx + esi + 0x100]
xor esi, edx
mov esi, dword [esi*4 + 0x64d854]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
mov dword [edi + eax*4 + 0x800], esi
inc eax
inc dword [ebp - 0xc]
cmp eax, 0x100
jne 0x532899
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
shr ecx, 0x18
lea edx, [ebx + 0x100]
lea eax, [ebp - 0x210]
call fcn.005323e4
mov eax, pe_nt_image_headers32
lea edx, [ebp - 0x210]
lea esi, [ebp - 0x110]
movzx ecx, byte [edx]
movzx ecx, byte [ebx + ecx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x5328f9
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x18
lea edx, [ebp - 0x110]
lea eax, [ebp - 0x110]
call fcn.005323e4
mov eax, dword [ebp + 8]
movzx edx, byte [eax - 0x15]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 0x11]
xor eax, eax
lea esi, [ebp - 0x110]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x10]
movzx esi, byte [esi]
movzx esi, byte [ebx + esi + 0x100]
xor esi, ecx
movzx esi, byte [ebx + esi + 0x100]
xor esi, edx
mov esi, dword [esi*4 + str.9g]
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
mov dword [edi + eax*4 + 0xc00], esi
inc eax
inc dword [ebp - 0x10]
cmp eax, 0x100
jne 0x53293a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret