Function at 0x656650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b9bb3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x831184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0x7cf388
lea ecx, [esi + 4]
call fcn.004044f0
push 0
push 0x7cf388
lea ecx, [esi + 0x1c]
call fcn.004044f0
mov eax, 0x10
mov dword [ebp - 0x34], 0xe900f5
mov dword [ebp - 0x38], eax
mov ebx, 0xdf
mov dword [ebp - 0x30], 0xde00de
xor ecx, ecx
mov dword [ebp - 0x2c], 0xcb00df
mov dword [ebp - 0x28], 0xc400c1
mov dword [ebp - 0x24], 0xe10091
mov dword [ebp - 0x20], 0xc700d6
mov dword [ebp - 0x1c], 0xdf00c6
mov dword [ebp - 0x18], 0xd600d8
mov dword [ebp - 0x14], 0xb9
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x34], ax
inc ecx
mov eax, dword [ebp - 0x38]
cmp ecx, eax
jb 0x6566f0
xor ecx, ecx
mov word [ebp + eax*2 - 0x34], cx
lea ecx, [ebp - 0x50]
mov eax, dword [esi]
add eax, 0x84
push eax
call fcn.00404120
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00408060
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00655db0
lea ecx, [ebp - 0x68]
mov byte [ebp - 0xd], al
call fcn.00404490
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov dword [ebp - 0x30], 0xd
xor ecx, ecx
mov dword [ebp - 0x2c], 0xe900f5
mov dword [ebp - 0x28], 0xde00de
mov dword [ebp - 0x24], 0xcb00df
mov dword [ebp - 0x20], 0xc400c1
mov dword [ebp - 0x1c], 0xe60091
mov dword [ebp - 0x18], 0xd600d2
mov dword [ebp - 0x14], 0xb600c6
nop word [eax + eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x2c], ax
inc ecx
mov eax, dword [ebp - 0x30]
cmp ecx, eax
jb 0x6567a0
xor ecx, ecx
mov word [ebp + eax*2 - 0x2c], cx
lea ecx, [ebp - 0x50]
mov eax, dword [esi]
add eax, 0x84
push eax
call fcn.00404120
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00408060
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00655db0
lea ecx, [ebp - 0x68]
mov bh, al
call fcn.00404490
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov dword [ebp - 0x30], 0xd
xor eax, eax
mov dword [ebp - 0x2c], 0xe600f5
mov dword [ebp - 0x28], 0xdf00ca
mov dword [ebp - 0x24], 0x8e00d9
mov dword [ebp - 0x20], 0xd500fc
mov dword [ebp - 0x1c], 0xc100c2
mov dword [ebp - 0x18], 0xdb00da
mov dword [ebp - 0x14], 0xb600db
lea ecx, [eax + 0xa9]
xor word [ebp + eax*2 - 0x2c], cx
inc eax
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jb 0x656844
xor eax, eax
mov word [ebp + ecx*2 - 0x2c], ax
lea ecx, [ebp - 0x80]
mov eax, dword [esi]
add eax, 0x84
push eax
call fcn.00404120
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00408060
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00655db0
lea ecx, [ebp - 0x98]
mov bl, al
call fcn.00404490
lea ecx, [ebp - 0x80]
call fcn.00404490
cmp byte [ebp - 0xd], 0
jne 0x6568cf
test bh, bh
jne 0x6568cf
test bl, bl
jne 0x6568cf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret