Function at 0x56f7cb
Capabilities:
Encode data using xor

Disassembly:
mov dword [esi + 0x12c], eax
jmp 0x46404c
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46403e
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x128], eax
mov byte [esi + 0x120], 1
lea ecx, [ecx]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x120], 0
jne 0x464062
mov esi, dword [esi + 0x124]
jmp 0x551ff6
cmp eax, 8
jl 0x4c8422
mov edx, dword [ebx]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
jmp dword [0x498ef6]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x1e0]
push ebx
push esi
push edi
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x50d7fa
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004419d3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x20c]
jmp dword [0x4a0fbc]
jne 0x55202e
sub eax, edi
push eax
push 0
push edx
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x214]
add esp, 0xc
mov edx, dword [ebx + 0xc]
mov dword [edx], esi
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x53d633
mov ebx, dword [ebp - 0x218]
mov eax, dword [ebp - 0x20c]
mov eax, dword [eax + 0x22c]
jmp 0x554832
mov ecx, dword [ebx + 4]
xor eax, eax
test ecx, ecx
je 0x4c8422
lea edx, [eax + 1]
imul edx, edx, 0x2613
xor dx, word [eax*2 + 0x59d420]
inc eax
mov word [ebp + eax*2 - 0x20a], dx
cmp eax, 8
jl 0x4c83f9
push ecx
jmp 0x498ec2
lea ecx, [eax + 1]
imul ecx, ecx, 0x2fe7
xor cx, word [eax*2 + 0x59d434]
inc eax
mov word [ebp + eax*2 - 0x20a], cx
jmp 0x498eb6
jae 0x4e7075
mov dword [esi + 0x12c], eax
jmp 0x4e7085
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4e7077
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x128], eax
mov byte [esi + 0x120], 1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x120], 0
jne 0x4e7098
jmp 0x464077
mov eax, dword [ebx]
mov byte [edx], 0
cmp eax, 0x1000
jae 0x464039
jmp 0x46402e
mov eax, dword [ebp - 0x210]
mov ebx, dword [eax]
mov eax, dword [ebx]
mov ecx, dword [ecx + 0x248]
mov esi, dword [ecx]
mov dword [ebp - 0x218], ebx
test eax, eax
jne 0x50d825
mov dword [ebp - 0x21c], eax
jmp 0x53d61d
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax + 0x20], cl
inc eax
test cl, cl
jne 0x50d829
mov byte [esi + 0x18], 1
nop
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x53d60a
cmp byte [esi + 0x18], 0
jne 0x50d83d
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x21c], eax
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x214], edi
test edi, edi
je 0x4ad336
jmp 0x53d639
mov edi, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x20c]
mov ebx, dword [edi]
mov edx, dword [ecx + 0x248]
mov eax, dword [ebx + 4]
mov esi, dword [edx]
lea edx, [esi + 0x130]
test eax, eax
je 0x4e70b2
mov byte [edx], 0
cmp eax, 0x1000
jmp 0x4e7064
test esi, esi
je 0x4c83ec
mov ecx, dword [ebp - 0x20c]
mov eax, dword [ecx + 0x22c]
test eax, eax
je 0x4ad31a
cmp byte [eax + 0x14], 0
je 0x4ad31a
cmp dword [ebx + 4], 0
je 0x4ad31a
mov edx, dword [ebx + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jmp 0x4ad300
test eax, eax
je 0x554865
cmp byte [eax + 0x14], 0
je 0x554865
mov edx, dword [ebx + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x55484c
sub eax, esi
push eax
push 0
push edx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x210]
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x4a0fae
jmp 0x4a0f98
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [section..data]
jmp 0x4a0f76