Function at 0x5e5da8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00430dfc
test al, al
jne 0x5e5dd0
mov dl, 6
mov eax, dword [ebp - 8]
call fcn.00431e60
mov eax, dword [ebp - 8]
call fcn.00430dfc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.00431e60
mov eax, dword [ebp - 8]
call fcn.00430dfc
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x16c]
call fcn.00431e60
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3e0], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3e4], eax
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
dec edi
test edi, edi
jl 0x5e5e75
inc edi
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00430e80
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
dec eax
test eax, eax
jl 0x5e5e6f
inc eax
xor ebx, ebx
mov edx, dword [ebp - 0x10]
movzx edx, byte [edx + ebx]
cmp esi, edx
jge 0x5e5e6b
mov edx, dword [ebp - 0x10]
movzx esi, byte [edx + ebx]
inc ebx
dec eax
jne 0x5e5e59
inc dword [ebp - 0xc]
dec edi
jne 0x5e5e3b
mov edx, dword [ebp - 4]
mov eax, esi
mov dword [edx + 0x3e8], eax
cmp eax, 0x80
jle 0x5e5e94
mov eax, dword [ebp - 4]
mov dword [eax + 0x3e8], 0x80
mov eax, dword [ebp - 8]
call fcn.00430dfc
sub al, 3
je 0x5e5eb5
sub al, 3
je 0x5e61f8
dec al
je 0x5e6204
jmp 0x5e620e
mov eax, dword [ebp - 4]
mov byte [eax + 0x184], 8
mov dword [ebp - 0x18], 0x404
mov eax, dword [ebp - 0x18]
call fcn.004098fc
mov dword [ebp - 0x1c], eax
xor ecx, ecx
push ebp
push 0x5e611f
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov ebx, dword [ebp - 0x1c]
mov word [ebx + 2], pe_nt_image_headers32
mov word [ebx], 0x300
lea eax, [ebp - 0x41c]
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
call fcn.00407c94
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x3e8]
test edi, edi
jle 0x5e5f3c
mov eax, 1
lea edx, [ebp - 0x418]
mov cl, byte [edx]
mov byte [ebx + eax*4 + 4], cl
mov cl, byte [edx + 1]
mov byte [ebx + eax*4 + 5], cl
mov cl, byte [edx + 2]
mov byte [ebx + eax*4 + 6], cl
inc eax
add edx, 4
dec edi
jne 0x5e5f21
lea eax, [ebp - 0x41c]
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
mov eax, dword [eax + 0x444]
push eax
call fcn.00407c94
mov al, byte [ebp - 0x41c]
mov byte [ebx + 4], al
mov al, byte [ebp - 0x41b]
mov byte [ebx + 5], al
mov al, byte [ebp - 0x41a]
mov byte [ebx + 6], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
inc eax
cmp eax, 0xff
jg 0x5e5fb1
lea edx, [ebp + eax*4 - 0x41c]
mov cl, byte [edx]
mov byte [ebx + eax*4 + 4], cl
mov cl, byte [edx + 1]
mov byte [ebx + eax*4 + 5], cl
mov cl, byte [edx + 2]
mov byte [ebx + eax*4 + 6], cl
inc eax
add edx, 4
cmp eax, 0x100
jne 0x5e5f92
lea eax, [ebp - 0x41c]
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x24]
push eax
call fcn.00407c94
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x3e8]
test edi, edi
jle 0x5e6012
mov eax, 1
lea edx, [ebp - 0x418]
mov cl, byte [edx]
xor cl, 0x80
mov byte [ebx + eax*4 + 0x194], cl
mov cl, byte [edx + 1]
xor cl, 0x40
mov byte [ebx + eax*4 + 0x195], cl
mov cl, byte [edx + 2]
xor cl, 0x20
mov byte [ebx + eax*4 + 0x196], cl
inc eax
add edx, 4
dec edi
jne 0x5e5fe5
lea eax, [ebp - 0x41c]
push eax
push pe_nt_image_headers32
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x170]
mov eax, dword [eax + 0x444]
push eax
call fcn.00407c94
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov edx, eax
add edx, 0x64
sub edx, eax
mov al, byte [ebp - 0x41c]
xor al, 0x80
mov byte [ebx + edx*4 + 4], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov edx, eax
add edx, 0x64
sub edx, eax
mov al, byte [ebp - 0x41b]
xor al, 0x40
mov byte [ebx + edx*4 + 5], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov edx, eax
add edx, 0x64
sub edx, eax
mov al, byte [ebp - 0x41a]
xor al, 0x20
mov byte [ebx + edx*4 + 6], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov dl, byte [ebp - 0xfc]
xor dl, 0x80
mov byte [ebx + eax*4 + 0x198], dl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov dl, byte [ebp - 0xfb]
xor dl, 0x40
mov byte [ebx + eax*4 + 0x199], dl
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e8]
mov dl, byte [ebp - 0xfa]
xor dl, 0x20
mov byte [ebx + eax*4 + 0x19a], dl
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00407b84
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x16c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00407b84
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e6126
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.00402bb0
ret
mov eax, dword [ebp - 4]
mov byte [eax + 0x184], 0x18
jmp 0x5e620e
mov eax, dword [ebp - 4]
mov byte [eax + 0x184], 0x20
mov eax, dword [ebp - 4]
cmp byte [eax + 0x184], 8
je 0x5e6268
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00430d10
call fcn.0042c2f4
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x168]
call fcn.00430d10
call fcn.0042c2f4
push eax
call fcn.00407b14
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret