Function at 0x5e92b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
cmp dword [ebp + 0xc], 0
je 0x5e94df
mov eax, dword [ebp + 0x1c]
lea esi, [eax + 4]
cmp eax, 0xfffffffb
mov dword [ebp - 0x10], esi
ja 0x5e94ec
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [eax + 1]
add eax, 0x10
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
jmp 0x5e931c
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x5e94df
test esi, esi
je 0x5e9340
js 0x5e94e7
push 1
push esi
call fcn.004ed060
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5e9345
jmp 0x5e9506
mov ebx, 1
mov edi, dword [ebp + 0x1c]
push edi
push dword [ebp + 0x18]
push ebx
call sub.msvcrt.dll_memcpy
add esp, 0xc
movzx eax, byte [ebp - 0x28]
movzx ecx, byte [ebp - 0x14]
movzx edx, byte [ebp - 0x1c]
shl eax, 0x18
shl ecx, 0x10
or ecx, eax
movzx eax, byte [ebp - 0x20]
shl eax, 8
or eax, ecx
or edx, eax
mov dword [ebx + edi], edx
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 0xc]
push esi
push ebx
mov esi, dword [ebp + 0x10]
push esi
call eax
add esp, 0xc
mov eax, dword [edi + 0x10]
push esi
call eax
add esp, 4
test edx, edx
mov dword [ebp - 0x24], ebx
je 0x5e93d0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x18]
cmp edi, ecx
jae 0x5e9473
mov esi, edi
lea ebx, [edx - 1]
not esi
mov dword [ebp - 0x3c], ebx
add esi, ecx
cmp esi, ebx
cmovb ebx, esi
xor ecx, ecx
inc ebx
cmp ebx, 0x20
jae 0x5e93e0
mov esi, dword [ebp + 8]
jmp 0x5e9450
mov edi, dword [ebp - 0x18]
jmp 0x5e9473
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp + 8]
add ebx, edi
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x3c]
cmp esi, ebx
cmovb ebx, esi
lea esi, [eax + ebx + 1]
cmp dword [ebp - 0x38], esi
jae 0x5e940a
mov esi, dword [ebp - 0x34]
add esi, edi
add ebx, esi
mov esi, dword [ebp + 8]
cmp eax, ebx
jb 0x5e9450
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
and ecx, 0xffffffe0
lea ebx, [esi + edi]
xor esi, esi
add edi, ecx
nop word [eax + eax]
movups xmm0, xmmword [eax + esi]
movups xmm2, xmmword [ebx + esi - 0x10]
movups xmm1, xmmword [eax + esi + 0x10]
movups xmm3, xmmword [ebx + esi]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [ebx + esi - 0x10], xmm2
movups xmmword [ebx + esi], xmm3
add esi, 0x20
cmp ecx, esi
jne 0x5e9420
cmp dword [ebp - 0x2c], ecx
mov esi, dword [ebp + 8]
je 0x5e9473
inc ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
movzx ebx, byte [eax + ecx - 1]
xor byte [esi + edi], bl
inc edi
cmp ecx, edx
jae 0x5e9473
inc ecx
cmp edi, dword [ebp + 0xc]
jb 0x5e9460
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
inc cl
mov dword [ebp - 0x28], ecx
jne 0x5e94b0
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
inc cl
mov dword [ebp - 0x14], ecx
jne 0x5e94a6
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
add cl, 1
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
adc cl, 0
mov dword [ebp - 0x1c], ecx
mov edi, dword [ebp - 0x24]
test edx, edx
jne 0x5e94ba
jmp 0x5e94c6
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
test edx, edx
je 0x5e94c6
push 1
push edx
push eax
call fcn.004ed020
add esp, 0xc
test esi, esi
je 0x5e9310
push 1
push esi
push edi
call fcn.004ed020
add esp, 0xc
jmp 0x5e9310
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ed360
mov ebx, 1
test esi, esi
je 0x5e950e
push 1
push esi
call fcn.004ed060
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5e950e
push esi
push 1
call fcn.004ed3a0
push 0x6e7b80
push esi
push dword [ebp + 0x1c]
call fcn.005006e0
add esp, 0xc
ud2