Function at 0x56a2cc
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 0x56a304
cmp dword [ebp + 0x10], 0x1c
je 0x56a304
cmp dword [ebp + 0x10], 0x20
je 0x56a304
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 0x56aa0c
cmp ebx, 0x1ff
jbe 0x56a644
add ebx, 0x3f
and ebx, 0xffffffc0
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x56a342
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x10], eax
ja 0x56a685
mov edx, dword [ebp + 0x1c]
cmp dword [ebp + 0x10], edx
jae 0x56a342
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x1c], ecx
test esi, esi
je 0x56a350
lea eax, [ebp - 0x38]
mov edi, eax
mov ecx, dword [ebp + 0x1c]
rep movsb byte es:[edi], byte [esi]
call fcn.0050dab4
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x56a64e
call fcn.00549ed0
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x56a9ad
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050dbd8
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call fcn.0050dd48
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050dd48
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050dd48
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call fcn.0050dd48
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050dd48
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050dd48
mov dword [ebp - 0xe0], eax
mov edx, dword [ebp - 0xb0]
mov dword [esp], edx
call fcn.0050dd48
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050dd48
mov dword [ebp - 0xcc], eax
dec ebx
mov dword [ebp - 0xc8], ebx
call fcn.00509eb8
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.00533878
test eax, eax
je 0x56a9ad
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.0056134c
test eax, eax
mov edx, dword [ebp - 0xe4]
je 0x56a9ad
test esi, esi
je 0x56a9df
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 0x56a536
mov ecx, dword [ebp - 0xc4]
mov al, byte [ebp + ecx - 0x78]
inc eax
mov byte [ebp + ecx - 0x78], al
test al, al
jne 0x56a536
mov eax, ecx
jmp 0x56a533
mov cl, byte [ebx + eax]
inc ecx
mov byte [ebx + eax], cl
test cl, cl
jne 0x56a536
dec eax
jns 0x56a528
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.004fdf28
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.004fdf28
mov eax, dword [ebp + 0x10]
test eax, eax
mov edx, dword [ebp - 0xe4]
jle 0x56a5bf
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 0x56a5b0
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.0050a3f8
test eax, eax
je 0x56a9ad
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.005613b8
cmp eax, 0
mov edx, dword [ebp - 0xe4]
jg 0x56a68c
jne 0x56a9ad
xor esi, esi
mov eax, dword [ebp - 0xdc]
jmp 0x56a497
mov ebx, 0x200
jmp 0x56a321
mov dword [ebp - 0xbc], 0
xor ebx, ebx
nop
mov eax, dword [ebp - 0xbc]
test eax, eax
je 0x56a2f6
mov edx, dword [ebp - 0xbc]
mov dword [esp], edx
call fcn.00549f10
mov eax, ebx
add esp, 0x10c
pop ebx
pop esi
pop edi
leave
ret
xor esi, esi
jmp 0x56a334
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.0056134c
test eax, eax
je 0x56a9ad
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call fcn.0056134c
test eax, eax
mov edx, dword [ebp - 0xe4]
je 0x56a9ad
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.0050a3a0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xac], 0
mov edx, dword [ebp - 0xe4]
nop
test edi, edi
js 0x56a752
mov al, byte [ebp + edi - 0x78]
inc eax
mov byte [ebp + edi - 0x78], al
test al, al
jne 0x56a752
mov eax, edi
jmp 0x56a74f
mov cl, byte [ebx + eax]
inc ecx
mov byte [ebx + eax], cl
test cl, cl
jne 0x56a752
dec eax
jns 0x56a744
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.004fdf28
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.0050a3f8
test eax, eax
je 0x56a9ad
mov ecx, dword [ebp - 0x9c]
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00533878
test eax, eax
je 0x56a9ad
mov dword [esp + 8], esi
mov eax, dword [ebp - 0xb4]
mov dword [esp + 4], eax
mov dword [esp], eax
call fcn.0051f064
test eax, eax
mov edx, dword [ebp - 0xe4]
je 0x56a9ad
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 0x56a72c
mov ecx, dword [ebp - 0xc8]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0xb4]
mov dword [esp], eax
call fcn.0050a774
test eax, eax
je 0x56a9ad
mov ecx, dword [ebp - 0xb4]
mov dword [esp + 4], ecx
mov eax, dword [ebp - 0xd8]
mov dword [esp], eax
call fcn.0050a134
test eax, eax
je 0x56a9ad
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.0051f064
test eax, eax
je 0x56a9ad
mov ecx, dword [ebp - 0xa0]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.005336bc
test eax, eax
je 0x56a9ad
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.00558560
test eax, eax
je 0x56a9ad
call fcn.00509eb8
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0xe0]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.0051f130
test eax, eax
je 0x56a9ad
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.0051f130
test eax, eax
je 0x56a9ad
mov eax, dword [ebp - 0xcc]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [esp], ecx
call fcn.0050a5d0
test eax, eax
mov edx, dword [ebp - 0xe4]
js 0x56a966
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.005613b8
cmp eax, 0
mov edx, dword [ebp - 0xe4]
jg 0x56aa19
jne 0x56a9ad
inc dword [ebp - 0xd0]
cmp dword [ebp - 0xd0], 0x1000
je 0x56a637
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.0056134c
test eax, eax
mov edx, dword [ebp - 0xe4]
jne 0x56a6f4
cmp dword [ebp - 0xb0], 0
je 0x56a658
nop
xor ebx, ebx
mov ecx, dword [ebp - 0xb0]
mov dword [esp], ecx
call fcn.0050dcdc
mov eax, dword [ebp - 0xb0]
mov dword [esp], eax
call fcn.0050db5c
jmp 0x56a65c
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.004f92ac
mov dword [ebp - 0xac], 1
mov edx, dword [ebp - 0xe4]
jmp 0x56a4e6
call fcn.004f0d80
mov dword [ebp + 0x14], eax
jmp 0x56a30f
mov dword [esp + 8], 1
mov dword [esp + 4], 2
mov edx, dword [ebp + 0x28]
mov dword [esp], edx
call fcn.0056134c
test eax, eax
je 0x56a9ad
call fcn.00509eb8
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.0051f130
test eax, eax
je 0x56a9ad
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.00558560
test eax, eax
je 0x56a9ad
mov dword [esp + 4], 2
mov ecx, dword [ebp - 0xcc]
mov dword [esp], ecx
call fcn.0050a3a0
test eax, eax
je 0x56a9ad
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.00549f5c
test eax, eax
je 0x56a9ad
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.0054b038
test eax, eax
je 0x56a9ad
cmp dword [esi + 4], 1
jne 0x56ab69
mov eax, dword [esi]
cmp dword [eax], 1
jne 0x56ab69
cmp dword [esi + 0xc], 0
jne 0x56ab69
call fcn.00509eb8
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edi
call fcn.0051f064
test eax, eax
je 0x56a9ad
inc ebx
jmp 0x56aafa
mov dword [esp + 8], 1
mov dword [esp + 4], 3
mov edx, dword [ebp + 0x28]
mov dword [esp], edx
call fcn.0056134c
test eax, eax
je 0x56a9ad
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x56ab9e
mov dword [esp], eax
call fcn.0050a004
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x56abb0
mov dword [esp], eax
call fcn.0050a004
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
test eax, eax
je 0x56abc2
mov dword [esp], eax
call fcn.0050a004
mov ecx, dword [ebp - 0xa4]
mov dword [esp], ecx
call fcn.0050a22c
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0xa0]
mov dword [esp], ecx
call fcn.0050a22c
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0xa8]
mov dword [esp], ecx
call fcn.0050a22c
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov edi, dword [edx + 0xc]
test edi, edi
je 0x56a9bc
mov esi, dword [edx + 0x10]
test esi, esi
je 0x56a9bc
test eax, eax
je 0x56a9bc
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x56ac2e
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x56ac44
mov edx, dword [ebp + 0x24]
mov dword [edx], ebx
mov ebx, 1
jmp 0x56a9be
mov ebx, 1
jmp 0x56a9be