Function at 0x10004ee4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10139ad0
mov eax, 0x2c
call fcn.10001f96
mov eax, dword [0x1025e3d4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x18], edi
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test bl, 0x40
jne 0x10139b18
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [esp + 0x20], edx
cmp edx, 0xf
jae 0x10139b45
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x10139b32
movzx eax, byte [esi + 0xf]
mov ebx, dword [esp + 0x48]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x10139b6c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.100032f1
add esp, 0x2c
ret
push ebp
mov ebp, dword [esp + 0x44]
cmp ebx, 0x10
jb 0x10139c11
mov edi, 0xfffffff8
mov eax, ebx
sub edi, esi
shr eax, 4
mov dword [esp + 0x20], eax
nop word [eax + eax]
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push esi
call dword [esp + 0x20]
add esp, 0xc
lea eax, [esi + 0x10]
add byte [eax - 1], 1
lea eax, [eax - 1]
jne 0x10139bb4
lea ecx, [edi + eax]
test ecx, ecx
jne 0x10139ba4
mov ecx, dword [ebp]
mov eax, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
xor eax, dword [esp + 0x2c]
xor ecx, dword [esp + 0x28]
push dword [esp + 0x18]
mov dword [edx + 4], eax
mov dword [edx], ecx
xor dword [esi + 0x14], eax
xor dword [esi + 0x10], ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor eax, dword [esp + 0x38]
xor ecx, dword [esp + 0x34]
mov dword [edx + 0xc], eax
mov dword [edx + 8], ecx
xor dword [esi + 0x1c], eax
lea eax, [esi + 0x10]
xor dword [esi + 0x18], ecx
push eax
push eax
call dword [esp + 0x20]
add dword [esp + 0x28], 0x10
add esp, 0xc
add ebp, 0x10
sub ebx, 0x10
sub dword [esp + 0x20], 1
jne 0x10139b90
mov edi, dword [esp + 0x1c]
test ebx, ebx
je 0x10139c64
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
push eax
push esi
call dword [esp + 0x20]
add esp, 0xc
test ebx, ebx
je 0x10139c4f
lea ecx, [esp + 0x28]
mov eax, ecx
lea edx, [esi + 0x10]
sub ebp, eax
sub edi, eax
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edi + ecx - 1], al
xor byte [edx - 1], al
sub ebx, 1
jne 0x10139c37
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x10]
mov ebx, dword [esp + 0x14]
push ebp
push eax
push eax
call ebx
add esp, 0xc
jmp 0x10139c6c
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jae 0x10139c8b
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebp
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x34]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x2c]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x30]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x34]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x38]
pop ebp
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.100032f1
add esp, 0x2c
ret