Function at 0x432610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c34d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6aef20
call fcn.00409430
mov eax, dword [0x6aef24]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
mov edx, dword [0x6aef38]
test dl, 1
jne 0x432886
mov edi, dword [ebp + 8]
xor esi, esi
test dl, 2
jne 0x4326dc
mov eax, dword [edi + 0x1c]
xor eax, dword [edi + 0x18]
xor eax, dword [edi + 0x14]
xor eax, dword [edi + 0x10]
movzx edx, word [edi + 0x20]
movzx ecx, word [edi + 0x22]
bswap eax
shl edx, 0x10
or edx, ecx
xor eax, edx
xor edx, edx
xor eax, dword [edi + 0xc]
xor eax, dword [edi + 8]
xor eax, dword [edi + 4]
xor eax, dword [edi]
div dword [0x6aef30]
mov eax, dword [0x6aef34]
lea esi, [eax + edx*4]
mov dword [ebp - 0x14], esi
mov esi, dword [esi]
test esi, esi
je 0x4326d3
nop word [eax + eax]
push edi
lea ecx, [esi + 4]
call fcn.0042c870
test al, al
jne 0x43270f
mov esi, dword [esi]
test esi, esi
jne 0x4326c0
mov edx, dword [0x6aef38]
mov esi, dword [ebp - 0x14]
mov eax, dword [0x6aef28]
cmp dword [0x6aef2c], eax
jb 0x432869
mov esi, 2
lea ecx, [eax + eax]
cmp eax, esi
cmovb ecx, esi
cmp ecx, dword [0x6aef2c]
jae 0x43271c
mov eax, dword [ebp - 0x10]
mov esi, 3
jmp 0x4328b4
mov eax, dword [ebp - 0x10]
mov esi, 1
jmp 0x4328b4
mov eax, dword [0x6aef20]
push edx
push 0x6aef20
push ecx
mov eax, dword [eax + 8]
mov ecx, 0x6aef20
call eax
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x432886
mov cl, byte [esi + 0x18]
not cl
test cl, 1
je 0x432886
mov edx, dword [0x6aef34]
test edx, edx
je 0x43281a
cmp dword [0x6aef30], 0
mov dword [ebp - 0x14], 0
jbe 0x43281a
xor eax, eax
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
nop dword [eax]
mov ecx, dword [eax + edx]
test ecx, ecx
je 0x4327ea
nop word [eax + eax]
mov edi, dword [ecx]
dec dword [0x6aef2c]
mov eax, dword [ecx + 0x20]
xor eax, dword [ecx + 0x1c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx + 0x14]
movzx esi, word [ecx + 0x24]
movzx edx, word [ecx + 0x26]
bswap eax
shl esi, 0x10
or esi, edx
xor edx, edx
xor eax, esi
mov esi, dword [ebp - 0x20]
xor eax, dword [ecx + 0x10]
xor eax, dword [ecx + 0xc]
xor eax, dword [ecx + 8]
xor eax, dword [ecx + 4]
div dword [esi + 0x10]
mov eax, dword [esi + 0x14]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [ecx], eax
mov dword [edx], ecx
mov ecx, edi
inc dword [esi + 0xc]
test edi, edi
jne 0x432790
mov edx, dword [0x6aef34]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add eax, 4
mov dword [edi + edx], 0
inc ecx
add edi, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
cmp ecx, dword [0x6aef30]
jae 0x432817
mov edx, dword [0x6aef34]
jmp 0x432780
mov edi, dword [ebp + 8]
mov eax, dword [0x6aef20]
mov ecx, 0x6aef20
push esi
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0xc]
mov eax, dword [edi + 0x1c]
xor eax, dword [edi + 0x18]
xor eax, dword [edi + 0x14]
xor eax, dword [edi + 0x10]
movzx edx, word [edi + 0x20]
movzx ecx, word [edi + 0x22]
bswap eax
shl edx, 0x10
or edx, ecx
xor eax, edx
xor edx, edx
xor eax, dword [edi + 0xc]
xor eax, dword [edi + 8]
xor eax, dword [edi + 4]
xor eax, dword [edi]
div dword [0x6aef30]
mov eax, dword [0x6aef34]
lea esi, [eax + edx*4]
push ecx
mov ecx, dword [0x6aef24]
push 0x6aef24
call fcn.00433140
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x432890
lea esi, [eax + 2]
jmp 0x4328b4
mov eax, dword [ebp - 0x10]
mov esi, 2
jmp 0x4328b4
push dword [ebp + 0xc]
mov ecx, eax
push edi
call fcn.00433350
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
xor eax, eax
inc dword [0x6aef2c]
xor esi, esi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4328c6
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00432500
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc