Function at 0x56908c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10c
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
shr dword [ebp + 0x10], 3
cmp dword [ebp + 0x10], 0x14
je 0x5690c4
cmp dword [ebp + 0x10], 0x1c
je 0x5690c4
cmp dword [ebp + 0x10], 0x20
je 0x5690c4
xor ebx, ebx
mov eax, ebx
add esp, 0x10c
pop ebx
pop esi
pop edi
leave
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5697cc
cmp ebx, 0x1ff
jbe 0x569404
add ebx, 0x3f
and ebx, 0xffffffc0
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x569102
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x10], eax
ja 0x569445
mov edx, dword [ebp + 0x1c]
cmp dword [ebp + 0x10], edx
jae 0x569102
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x1c], ecx
test esi, esi
je 0x569110
lea eax, [ebp - 0x38]
mov edi, eax
mov ecx, dword [ebp + 0x1c]
rep movsb byte es:[edi], byte [esi]
call fcn.0050c854
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x56940e
call fcn.00548c90
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x56976d
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050c978
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call fcn.0050cae8
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050cae8
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050cae8
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call fcn.0050cae8
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050cae8
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050cae8
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call fcn.0050cae8
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050cae8
mov dword [ebp - 0xcc], eax
dec ebx
mov dword [ebp - 0xc8], ebx
call fcn.00508c58
mov ebx, dword [ebp - 0xc8]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xcc]
mov dword [esp], eax
call fcn.00532618
test eax, eax
je 0x56976d
mov ecx, 0xcccccccd
mov eax, dword [ebp - 0xc8]
mul ecx
shr edx, 7
mov dword [ebp - 0xb8], edx
mov ecx, dword [ebp + 0x10]
shl ecx, 3
mov dword [ebp - 0xc0], ecx
xor eax, eax
lea ebx, [ebp - 0x78]
lea edx, [ebp - 0x98]
mov dword [ebp - 0xec], edx
mov ecx, dword [ebp + 0x10]
dec ecx
mov dword [ebp - 0xc4], ecx
lea edx, [ebp - 0x58]
mov esi, dword [ebp + 0x1c]
lea ecx, [eax + 1]
mov dword [ebp - 0xdc], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
mov dword [ebp - 0xe4], edx
call fcn.0056010c
test eax, eax
mov edx, dword [ebp - 0xe4]
je 0x56976d
test esi, esi
je 0x56979f
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x9c], ecx
mov edi, ebx
mov esi, dword [ebp - 0x9c]
mov ecx, dword [ebp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0xec]
mov esi, dword [ebp - 0x9c]
mov ecx, dword [ebp + 0x10]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc4]
test ecx, ecx
js 0x5692f6
mov ecx, dword [ebp - 0xc4]
mov al, byte [ebp + ecx - 0x78]
inc eax
mov byte [ebp + ecx - 0x78], al
test al, al
jne 0x5692f6
mov eax, ecx
jmp 0x5692f3
mov cl, byte [ebx + eax]
inc ecx
mov byte [ebx + eax], cl
test cl, cl
jne 0x5692f6
dec eax
jns 0x5692e8
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0x9c]
mov dword [esp], eax
mov dword [ebp - 0xe4], edx
call fcn.004fccc8
mov dword [esp + 0x14], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x98]
mov dword [esp + 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.004fccc8
mov eax, dword [ebp + 0x10]
test eax, eax
mov edx, dword [ebp - 0xe4]
jle 0x56937f
xor eax, eax
mov esi, dword [ebp + 0x10]
nop
mov cl, byte [ebp + eax - 0x98]
xor byte [edx + eax], cl
inc eax
cmp esi, eax
jne 0x569370
or byte [ebp - 0x58], 0x80
mov eax, dword [ebp - 0xc4]
or byte [ebp + eax - 0x58], 1
mov ecx, dword [ebp - 0xa0]
mov dword [esp + 8], ecx
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], edx
mov dword [ebp - 0xe4], edx
call fcn.00509198
test eax, eax
je 0x56976d
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp - 0xac]
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0xb0]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x32
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call fcn.00560178
cmp eax, 0
mov edx, dword [ebp - 0xe4]
jg 0x56944c
jne 0x56976d
xor esi, esi
mov eax, dword [ebp - 0xdc]
jmp 0x569257
mov ebx, 0x200
jmp 0x5690e1
mov dword [ebp - 0xbc], 0
xor ebx, ebx
nop
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x5690b6
mov edx, dword [ebp - 0xbc]
mov dword [esp], edx
call fcn.00548cd0
mov eax, ebx
add esp, 0x10c
pop ebx
pop esi
pop edi
leave
ret
xor esi, esi
jmp 0x5690f4
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov ecx, dword [ebp + 0x28]
mov dword [esp], ecx
mov dword [ebp - 0xe4], edx
call fcn.0056010c
test eax, eax
je 0x56976d
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call fcn.0056010c
test eax, eax
mov edx, dword [ebp - 0xe4]
je 0x56976d
mov dword [ebp - 0xd0], 0
mov esi, dword [ebp - 0xd4]
mov edi, dword [ebp - 0xc4]
mov dword [esp + 4], 0
mov ecx, dword [ebp - 0xb4]
mov dword [esp], ecx
mov dword [ebp - 0xe4], edx
call fcn.00509140
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xac], 0
mov edx, dword [ebp - 0xe4]
nop
test edi, edi
js 0x569512
mov al, byte [ebp + edi - 0x78]
inc eax
mov byte [ebp + edi - 0x78], al
test al, al
jne 0x569512
mov eax, edi
jmp 0x56950f
mov cl, byte [ebx + eax]
inc ecx
mov byte [ebx + eax], cl
test cl, cl
jne 0x569512
dec eax
jns 0x569504
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [ebp - 0xe4], edx
call fcn.004fccc8
mov dword [esp + 8], esi
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0xe4]
mov dword [esp], edx
call fcn.00509198
test eax, eax
je 0x56976d
mov ecx, dword [ebp - 0x9c]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00532618
test eax, eax
je 0x56976d
mov dword [esp + 8], esi
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.0051de04
test eax, eax
mov edx, dword [ebp - 0xe4]
je 0x56976d
inc dword [ebp - 0xac]
mov ecx, dword [ebp - 0xc0]
add dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0xb8], eax
jge 0x5694ec
mov ecx, dword [ebp - 0xc8]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.00509514
test eax, eax
je 0x56976d
mov ecx, dword [ebp - 0xb4]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0xd8]
mov dword [esp], eax
call fcn.00508ed4
test eax, eax
je 0x56976d
mov ecx, dword [ebp - 0xcc]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0xd8]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.0051de04
test eax, eax
je 0x56976d
mov ecx, dword [ebp - 0xa0]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.0053245c
test eax, eax
je 0x56976d
mov eax, dword [ebp - 0xb0]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
mov ecx, dword [ebp - 0xd8]
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0xe0]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00557320
test eax, eax
je 0x56976d
call fcn.00508c58
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0xe0]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.0051ded0
test eax, eax
je 0x56976d
mov dword [esp + 8], esi
mov eax, dword [ebp - 0xd8]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [esp], ecx
call fcn.0051ded0
test eax, eax
je 0x56976d
mov eax, dword [ebp - 0xcc]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [esp], ecx
call fcn.00509370
test eax, eax
mov edx, dword [ebp - 0xe4]
js 0x569726
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov ecx, dword [ebp - 0xb0]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x32
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
call fcn.00560178
cmp eax, 0
mov edx, dword [ebp - 0xe4]
jg 0x5697d9
jne 0x56976d
inc dword [ebp - 0xd0]
cmp dword [ebp - 0xd0], 0x1000
je 0x5693f7
mov ecx, dword [ebp - 0xd0]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
mov dword [ebp - 0xe4], edx
call fcn.0056010c
test eax, eax
mov edx, dword [ebp - 0xe4]
jne 0x5694b4
cmp dword [ebp - 0xb0], 0
je 0x569418
nop
xor ebx, ebx
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050ca7c
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050c8fc
jmp 0x56941c
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], ecx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x9c], eax
mov dword [esp], eax
call fcn.004f804c
mov dword [ebp - 0xac], 1
mov edx, dword [ebp - 0xe4]
jmp 0x5692a6
call fcn.004efb20
mov dword [ebp + 0x14], eax
jmp 0x5690cf
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov edx, dword [ebp + 0x28]
mov dword [esp], edx
call fcn.0056010c
test eax, eax
je 0x56976d
call fcn.00508c58
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0xa4]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0xcc]
mov dword [esp], eax
call fcn.0051ded0
test eax, eax
je 0x56976d
mov edx, dword [ebp - 0xb0]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0xa0]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0xcc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword [ebp - 0xd4]
mov dword [esp], edx
call fcn.00557320
test eax, eax
je 0x56976d
mov dword [esp + 4], 2
mov ecx, dword [ebp - 0xcc]
mov dword [esp], ecx
call fcn.00509140
test eax, eax
je 0x56976d
mov eax, dword [ebp - 0xb0]
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xa4]
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0xbc]
mov dword [esp], ecx
call fcn.00548d1c
test eax, eax
je 0x56976d
mov ebx, 2
mov esi, dword [ebp - 0xa8]
mov edi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xbc]
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0xb0]
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0xa4]
mov dword [esp + 0xc], ecx
mov eax, dword [ebp - 0xd4]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00549df8
test eax, eax
je 0x56976d
cmp dword [esi + 4], 1
jne 0x569929
mov eax, dword [esi]
cmp dword [eax], 1
jne 0x569929
cmp dword [esi + 0xc], 0
jne 0x569929
call fcn.00508c58
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edi
call fcn.0051de04
test eax, eax
je 0x56976d
inc ebx
jmp 0x5698ba
mov dword [esp + 8], 1
mov dword [esp + 4], 3
mov edx, dword [ebp + 0x28]
mov dword [esp], edx
call fcn.0056010c
test eax, eax
je 0x56976d
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x56995e
mov dword [esp], eax
call fcn.00508da4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x569970
mov dword [esp], eax
call fcn.00508da4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
test eax, eax
je 0x569982
mov dword [esp], eax
call fcn.00508da4
mov ecx, dword [ebp - 0xa4]
mov dword [esp], ecx
call fcn.00508fcc
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0xa0]
mov dword [esp], ecx
call fcn.00508fcc
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0xa8]
mov dword [esp], ecx
call fcn.00508fcc
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov edi, dword [edx + 0xc]
test edi, edi
je 0x56977c
mov esi, dword [edx + 0x10]
test esi, esi
je 0x56977c
test eax, eax
je 0x56977c
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x5699ee
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x569a04
mov edx, dword [ebp + 0x24]
mov dword [edx], ebx
mov ebx, 1
jmp 0x56977e
mov ebx, 1
jmp 0x56977e