Function at 0x56a0ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
xor eax, eax
xor edx, edx
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
xor eax, eax
xor edx, edx
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], ecx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x30], eax
shr ebx, 3
mov dword [ebp - 0x38], 2
cmp ebx, 0x14
je 0x56a13e
cmp ebx, 0x1c
je 0x56a13e
cmp ebx, 0x20
je 0x56a13e
xor eax, eax
jmp 0x56a7b1
cmp dword [ebp + 0x14], 0
jne 0x56a14c
call fcn.00587784
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0xc], 0x200
jae 0x56a15c
mov dword [ebp + 0xc], pe_nt_image_headers32
mov edx, dword [ebp + 0xc]
add edx, 0x3f
shr edx, 6
shl edx, 6
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0x1c], 0
je 0x56a17d
mov ecx, dword [ebp + 0x1c]
cmp ecx, ebx
jae 0x56a17d
xor eax, eax
mov dword [ebp + 0x18], eax
cmp ebx, dword [ebp + 0x1c]
jae 0x56a185
mov dword [ebp + 0x1c], ebx
cmp dword [ebp + 0x18], 0
je 0x56a19f
mov edx, dword [ebp + 0x1c]
push edx
mov ecx, dword [ebp + 0x18]
push ecx
lea eax, [ebp - 0x60]
push eax
call fcn.0050a50c
add esp, 0xc
call fcn.00557f44
mov dword [ebp - 0x34], eax
test eax, eax
je 0x56a6b0
call fcn.005613d4
mov dword [ebp - 0x24], eax
test eax, eax
je 0x56a6b0
mov edx, dword [ebp - 0x34]
push edx
call fcn.00557fc8
pop ecx
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00558058
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.00558058
pop ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x34]
push edx
call fcn.00558058
pop ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00558058
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.00558058
pop ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x34]
push edx
call fcn.00558058
pop ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00558058
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.00558058
pop ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
dec edx
push edx
call fcn.005574ac
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0055abcc
add esp, 0xc
test eax, eax
je 0x56a6b0
mov eax, dword [ebp - 0x2c]
inc dword [ebp - 0x2c]
push eax
push 0
mov edx, dword [ebp + 0x2c]
push edx
call fcn.0055cb84
add esp, 0xc
test eax, eax
je 0x56a6b0
cmp dword [ebp + 0x1c], 0
jne 0x56a288
push ebx
lea ecx, [ebp - 0x60]
push ecx
call fcn.00582124
mov dword [ebp - 0x3c], 1
add esp, 8
jmp 0x56a292
xor eax, eax
xor edx, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp + 0x1c], edx
mov edi, ebx
push edi
lea eax, [ebp - 0x60]
push eax
lea edx, [ebp - 0xa0]
push edx
call fcn.0050a50c
add esp, 0xc
push edi
lea ecx, [ebp - 0x60]
push ecx
lea eax, [ebp - 0xc0]
push eax
call fcn.0050a50c
add esp, 0xc
lea edx, [ebx - 1]
lea eax, [ebp + edx - 0xa0]
test edx, edx
jl 0x56a2d7
inc byte [eax]
cmp byte [eax], 0
jne 0x56a2d7
dec edx
dec eax
test edx, edx
jge 0x56a2ca
push 0
lea ecx, [ebp - 0x80]
mov edx, dword [ebp + 0x14]
mov edi, ebx
push edx
push 0
push ecx
push edi
lea eax, [ebp - 0x60]
push eax
call fcn.0058636c
add esp, 0x18
test eax, eax
je 0x56a6b0
push 0
lea ecx, [ebp - 0xc0]
mov edx, dword [ebp + 0x14]
lea eax, [ebp - 0xa0]
push edx
push 0
push ecx
push edi
push eax
call fcn.0058636c
add esp, 0x18
test eax, eax
je 0x56a6b0
xor edx, edx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0xc0]
cmp ebx, edx
jle 0x56a343
mov cl, byte [eax]
mov edi, dword [ebp - 0x40]
xor byte [edi], cl
inc edx
inc dword [ebp - 0x40]
inc eax
cmp ebx, edx
jg 0x56a333
or byte [ebp - 0x80], 0x80
or byte [ebp + ebx - 0x81], 1
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x80]
push eax
push ebx
push edx
call fcn.005579f8
add esp, 0xc
test eax, eax
je 0x56a6b0
mov ecx, dword [ebp + 0x2c]
push ecx
mov eax, dword [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x34]
push edx
push 0x32
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0055ce40
add esp, 0x14
test eax, eax
jg 0x56a393
test eax, eax
jne 0x56a6b0
jmp 0x56a24f
push 0
push 2
mov eax, dword [ebp + 0x2c]
push eax
call fcn.0055cb84
add esp, 0xc
test eax, eax
je 0x56a6b0
push 0
push 3
mov edx, dword [ebp + 0x2c]
push edx
call fcn.0055cb84
add esp, 0xc
test eax, eax
je 0x56a6b0
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x30], ecx
mov ecx, 0xa0
mov eax, dword [ebp + 0xc]
dec eax
div ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x30], 0
je 0x56a3f8
mov eax, dword [ebp - 0x30]
push eax
push 0
mov edx, dword [ebp + 0x2c]
push edx
call fcn.0055cb84
add esp, 0xc
test eax, eax
je 0x56a6b0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.005579b0
add esp, 8
xor edi, edi
cmp edi, dword [ebp - 0x28]
jg 0x56a4a3
lea edx, [ebx - 1]
lea eax, [ebp + edx - 0xa0]
test edx, edx
jl 0x56a42c
inc byte [eax]
cmp byte [eax], 0
jne 0x56a42c
dec edx
dec eax
test edx, edx
jge 0x56a41f
push 0
lea eax, [ebp - 0x80]
mov ecx, dword [ebp + 0x14]
lea edx, [ebp - 0xa0]
push ecx
push 0
push eax
push ebx
push edx
call fcn.0058636c
add esp, 0x18
test eax, eax
je 0x56a6b0
push esi
push ebx
lea ecx, [ebp - 0x80]
push ecx
call fcn.005579f8
add esp, 0xc
test eax, eax
je 0x56a6b0
mov eax, ebx
shl eax, 3
imul edi
push eax
push esi
push esi
call fcn.0055abcc
add esp, 0xc
test eax, eax
je 0x56a6b0
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 8]
push ecx
call fcn.00555530
add esp, 0xc
test eax, eax
je 0x56a6b0
inc edi
cmp edi, dword [ebp - 0x28]
jle 0x56a411
mov eax, dword [ebp + 0xc]
dec eax
push eax
mov edx, dword [ebp - 8]
push edx
call fcn.00557da4
add esp, 8
test eax, eax
je 0x56a6b0
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00557824
add esp, 8
test eax, eax
je 0x56a6b0
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0xc]
push ecx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00555530
add esp, 0xc
test eax, eax
je 0x56a6b0
mov edx, dword [ebp - 0x1c]
push edx
push esi
call fcn.0055aa00
add esp, 8
test eax, eax
je 0x56a6b0
mov ecx, dword [ebp - 0x34]
push ecx
push esi
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x10]
push edx
push 0
call fcn.00555940
add esp, 0x14
test eax, eax
je 0x56a6b0
call fcn.005574ac
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push esi
call fcn.00555848
add esp, 0xc
test eax, eax
je 0x56a6b0
push esi
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.00555848
add esp, 0xc
test eax, eax
je 0x56a6b0
mov ecx, dword [ebp - 0x14]
push ecx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00557b98
add esp, 8
test eax, eax
jl 0x56a590
mov edx, dword [ebp + 0x2c]
push edx
push 1
mov ecx, dword [ebp - 0x34]
push ecx
push 0x32
mov eax, dword [ebp - 0x20]
push eax
call fcn.0055ce40
add esp, 0x14
test eax, eax
jg 0x56a5a5
test eax, eax
jne 0x56a6b0
inc dword [ebp - 0x30]
cmp dword [ebp - 0x30], 0x1000
jl 0x56a3d8
jmp 0x56a24f
push 1
push 2
mov edx, dword [ebp + 0x2c]
push edx
call fcn.0055cb84
add esp, 0xc
test eax, eax
je 0x56a6b0
call fcn.005574ac
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00555848
add esp, 0xc
test eax, eax
je 0x56a6b0
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
mov eax, dword [ebp - 0x14]
push eax
push 0
push esi
call fcn.00555940
add esp, 0x14
test eax, eax
je 0x56a6b0
mov edx, dword [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.005579b0
add esp, 8
test eax, eax
je 0x56a6b0
mov eax, dword [ebp - 0x34]
push eax
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00561480
add esp, 0xc
test eax, eax
je 0x56a6b0
mov eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
push esi
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x18]
push edx
call fcn.00556400
add esp, 0x18
test eax, eax
je 0x56a6b0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 1
jne 0x56a695
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
cmp dword [edx], 1
je 0x56a66d
jmp 0x56a695
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0xc], 0
jne 0x56a695
call fcn.005574ac
push eax
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00555530
add esp, 0xc
test eax, eax
je 0x56a6b0
inc dword [ebp - 0x38]
jmp 0x56a62e
push 1
push 3
mov eax, dword [ebp + 0x2c]
push eax
call fcn.0055cb84
add esp, 0xc
test eax, eax
je 0x56a6b0
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x56a784
mov edx, dword [ebp + 8]
cmp dword [edx + 0xc], 0
je 0x56a6d0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
push eax
call fcn.0055758c
pop ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x10], 0
je 0x56a6e6
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
push eax
call fcn.0055758c
pop ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 0
je 0x56a6fc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x14]
push eax
call fcn.0055758c
pop ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.005577e4
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.005577e4
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005577e4
pop ecx
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
je 0x56a747
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x10], 0
je 0x56a747
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x56a751
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x56a6b0
cmp dword [ebp + 0x24], 0
je 0x56a75f
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp - 0x30]
mov dword [ecx], eax
cmp dword [ebp + 0x28], 0
je 0x56a76d
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x38]
mov dword [edx], ecx
cmp dword [ebp + 0x20], 0
je 0x56a784
push ebx
lea eax, [ebp - 0x60]
push eax
mov edx, dword [ebp + 0x20]
push edx
call fcn.0050a50c
add esp, 0xc
cmp dword [ebp - 0x34], 0
je 0x56a79e
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00558018
pop ecx
mov eax, dword [ebp - 0x34]
push eax
call fcn.00557fa0
pop ecx
cmp dword [ebp - 0x24], 0
je 0x56a7ae
mov edx, dword [ebp - 0x24]
push edx
call fcn.00561444
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret