Function at 0x858657
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x44f911
mov eax, dword fs:[0]
push eax
mov eax, 0x1274
call fcn.008931e7
mov eax, dword [0x4597d0]
xor eax, esp
mov dword [esp + reloc.MSVCRT.dll_strncpy], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4597d0]
xor eax, esp
push eax
lea eax, reloc.MSVCRT.dll_strncpy
mov dword fs:[0], eax
mov edi, dword [esp + reloc.MSVCRT.dll_strncpy]
xor ebp, ebp
mov esi, ecx
cmp edi, ebp
je 0x858ad4
push 0xe00
call fcn.00883b77
push eax
call fcn.00863237
push 0x452430
call fcn.00863237
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
or word [esi + 0x5798], 0x40
add esp, 8
push ebp
add eax, 7
push ebp
push eax
mov ecx, esi
call fcn.0086c3d7
push ebp
push 0x73
mov ecx, esi
call fcn.00857737
push 2
push ebp
push ebp
mov ecx, esi
call fcn.0086c3d7
mov ecx, esi
call fcn.0086bba7
mov ebx, eax
push edx
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
call fcn.008568a7
mov edi, eax
push 0x14
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [esp + reloc.MSVCRT.dll_strncpy], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00858607
push ebp
push 0x4523f4
push ebp
mov ecx, 0x4000
or word [esi + 0x64c0], cx
push ebp
push ebp
mov ecx, esi
call fcn.00857e57
push ebp
push ebp
push ebp
mov ecx, esi
call fcn.0086c3d7
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov ebp, edi
shl ebp, 9
push ebp
mov dword [esp + 0x48], ebp
call fcn.00892944
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
jne 0x85878d
test ebp, ebp
je 0x85878d
mov ecx, 0x46362c
call fcn.00867a17
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
push ebp
push 0
push eax
mov dword [esp + reloc.MSVCRT.dll_strncpy], 0
call fcn.00892d87
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esp + 0x2c], 0xfffffff
jl 0x8589b9
jg 0x8587cf
test ebx, ebx
jbe 0x8589b9
jmp 0x8587cf
mov ebx, dword [esp + 0x14]
call fcn.008891c7
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jg 0x85880b
jl 0x8587e6
cmp ebx, 0x200
jae 0x85880b
mov edx, 0x200
sub edx, ebx
push edx
lea eax, [esp + ebx + 0x88]
push ebp
push eax
mov edi, ebx
call fcn.00892d87
add esp, 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x85881f
add ebx, 0xfffffe00
adc dword [esp + 0x18], 0xffffffff
mov edi, 0x200
mov dword [esp + 0x14], ebx
push edi
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call fcn.0086c6e7
mov eax, dword [esp + 0x20]
shl eax, 9
add eax, dword [esp + 0x38]
mov ecx, eax
neg ecx
lea edi, [esp + ecx + 0x84]
lea ebp, [esp + ecx + 0x85]
lea edx, [esp + ecx + 0x86]
lea ecx, [esp + ecx + 0x87]
mov dword [esp + 0x48], ecx
mov ecx, 0x80
lea esp, [esp]
movzx ebx, byte [edi + eax]
xor byte [eax], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 1], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 2], bl
mov ebx, dword [esp + 0x48]
movzx ebx, byte [ebx + eax]
xor byte [eax + 3], bl
add eax, 4
sub ecx, 1
jne 0x858867
push 0x200
lea edx, [esp + 0x88]
push edx
push 0xffffffffffffffff
call fcn.00863b17
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx + 0x284], al
inc ecx
shr eax, 8
mov byte [esp + ecx + 0x284], al
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, 0x1000
jne 0x858929
push esi
lea ecx, [esp + 0x70]
call fcn.00885c47
push 2
xor ebx, ebx
push ebx
push ebx
mov ecx, esi
mov byte [esp + 0x129c], 1
call fcn.0086c3d7
push 0x1000
lea eax, reloc.MSVCRT.dll_strncpy
push eax
mov ecx, esi
call fcn.0086c4b7
mov edx, dword [esp + 0x2c]
push 0x1000
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
push edx
call fcn.00863b17
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1290], bl
call fcn.00885c77
jmp 0x85892b
xor ebx, ebx
mov edi, dword [esp + 0x24]
mov eax, edi
and eax, 0xff
xor ecx, ecx
or eax, ecx
jne 0x85897a
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
cmp byte [eax + 0x3938], cl
jne 0x85897a
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
push edx
push ebx
push 0x200
push eax
push edi
call fcn.00893447
push edx
push eax
call fcn.008884c7
push eax
push 0x452424
call fcn.00863237
add esp, 8
mov eax, dword [esp + 0x20]
add edi, 1
adc dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov edi, dword [esp + reloc.MSVCRT.dll_strncpy]
inc eax
mov dword [esp + 0x20], eax
cmp eax, edi
jb 0x85899d
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], ebx
jg 0x8587cb
jl 0x8589b5
mov ebx, dword [esp + 0x14]
test ebx, ebx
ja 0x8587cf
mov ebp, dword [esp + 0x44]
push 2
push 0
push 0
mov ecx, esi
call fcn.0086c3d7
mov ebx, dword [esp + 0x1c]
push ebx
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
mov ecx, esi
call fcn.0086c4b7
mov eax, dword [esp + 0x2c]
push ebx
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push eax
call fcn.00863b17
mov ecx, dword [esp + 0x38]
push ebp
push ecx
mov ecx, esi
mov ebx, eax
call fcn.0086c4b7
push ebp
mov ebp, dword [esp + 0x3c]
push ebp
push ebx
call fcn.00863b17
mov edx, dword [esp + 0x34]
not eax
push 0
mov dword [esi + reloc.MSVCRT.dll_strncpy], eax
mov eax, dword [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0086c3d7
push 0
lea ecx, [esp + 0x50]
call fcn.0087e8c7
push 8
push 0x452418
lea ecx, [esp + 0x54]
mov byte [esp + 0x1298], 2
call fcn.0087e797
push edi
lea ecx, [esp + 0x50]
call fcn.0087e6d7
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push ecx
push ebx
lea ecx, [esp + 0x54]
call fcn.0087e767
lea edx, reloc.MSVCRT.dll_strncpy
push edx
lea ecx, [esp + 0x50]
call fcn.0087ea57
push 0
push 0x4523f4
shl edi, 8
push 0
add edi, ebx
add edi, edi
push edi
push 0
mov ecx, esi
call fcn.00857e57
push 2
push 0
push 0
mov ecx, esi
call fcn.0086c3d7
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
cmp byte [eax + 0x3938], 0
jne 0x858ab6
push 0x45240c
call fcn.00863237
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1290], 0
call fcn.0087e957
test ebp, ebp
je 0x858ad4
push ebp
call fcn.008925c0
add esp, 4
mov ecx, dword [esp + reloc.MSVCRT.dll_strncpy]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + reloc.MSVCRT.dll_strncpy]
xor ecx, esp
call fcn.00892869
add esp, 0x1280
ret 4