Function at 0x873d27
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
cmp dword [esi + reloc.MSVCRT.dll_strncpy], eax
lea ecx, reloc.MSVCRT.dll_strncpy
jne 0x873d4a
pop esi
add esp, 8
jmp fcn.00878f77
mov ecx, dword [ecx]
sub ecx, eax
and ecx, dword [esi + 0x24]
cmp ecx, 0x101
jb 0x873d5e
mov ecx, 0x101
mov dword [esi + reloc.MSVCRT.dll_strncpy], ecx
mov ecx, dword [esi]
movzx edx, byte [ecx + eax]
push ebx
add ecx, eax
push ebp
push edi
movzx edi, byte [ecx + 1]
shl edi, 5
xor edi, edx
mov ecx, dword [esi]
movzx edx, byte [eax + ecx + 2]
mov ecx, dword [esi + 0x10]
shl edi, 5
xor edx, edi
and edx, 0x7fff
mov edi, edx
mov edx, dword [esi + 0x24]
and edx, dword [ecx + edi*4]
lea ecx, [ecx + edi*4]
mov dword [ecx], eax
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
mov ecx, dword [esi + 0x14]
mov dword [ecx + eax*4], edx
mov eax, 3
cmp dword [esi + reloc.MSVCRT.dll_strncpy], eax
mov dword [esp + 0x10], edx
mov dword [esi + 0x58], 1
jle 0x873fa3
mov dword [esp + 0x14], eax
nop
mov eax, dword [esi + 0x58]
cmp eax, 3
jl 0x873de8
mov ecx, dword [esi]
lea ebx, [eax + ecx]
add eax, ecx
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov al, byte [eax + ecx]
cmp al, byte [ebx + edx]
jne 0x873e66
mov eax, dword [esi]
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
lea ebp, [eax + ecx]
lea ebx, [eax + edx]
mov al, byte [ebp]
cmp al, byte [ebx]
jne 0x873e66
mov al, byte [ebp + 1]
cmp al, byte [ebx + 1]
jne 0x873e66
mov al, byte [ebp + 2]
cmp al, byte [ebx + 2]
jne 0x873e66
mov eax, 3
cmp dword [esi + reloc.MSVCRT.dll_strncpy], eax
jle 0x873e2f
mov dl, byte [eax + ebp]
cmp dl, byte [ebx + eax]
jne 0x873e2b
inc eax
cmp eax, dword [esi + reloc.MSVCRT.dll_strncpy]
jl 0x873e1a
mov edx, dword [esp + 0x10]
cmp eax, dword [esi + 0x58]
jle 0x873e66
sub ecx, edx
and ecx, dword [esi + 0x24]
cmp ecx, dword [esi + 0x28]
ja 0x873e66
test ecx, ecx
je 0x873e66
cmp eax, 4
jg 0x873e60
jne 0x873e53
cmp ecx, 0x40000
jb 0x873e60
jmp 0x873e66
cmp eax, 3
jne 0x873e66
cmp ecx, 0x2000
jae 0x873e66
mov dword [esi + 0x54], ecx
mov dword [esi + 0x58], eax
sub dword [esp + 0x14], 1
je 0x873e7f
mov eax, dword [esi + 0x14]
mov edx, dword [eax + edx*4]
and edx, dword [esi + 0x24]
mov dword [esp + 0x10], edx
jmp 0x873dc7
mov eax, dword [esi + 0x58]
cmp eax, 3
jl 0x873fa3
cmp byte [esi + 0x14a5], 0
jne 0x873ea3
mov ecx, dword [esi + 0x54]
cmp ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
ja 0x873fa3
mov edx, dword [esi + 0x54]
push edx
push eax
mov ecx, esi
call fcn.00873a07
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov edx, dword [esi + 0x24]
mov eax, dword [esi]
inc ecx
and ecx, edx
mov dword [esi + reloc.MSVCRT.dll_strncpy], ecx
movzx eax, byte [ecx + eax + 2]
shl edi, 5
xor eax, edi
mov edi, dword [esi + 0x10]
and eax, 0x7fff
and edx, dword [edi + eax*4]
mov dword [edi + eax*4], ecx
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
lea edi, [edi + eax*4]
mov edi, dword [esi + 0x14]
mov dword [edi + ecx*4], edx
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov edi, dword [esi + 0x24]
mov edx, dword [esi]
inc ecx
and ecx, edi
mov dword [esi + reloc.MSVCRT.dll_strncpy], ecx
movzx edx, byte [ecx + edx + 2]
shl eax, 5
xor edx, eax
mov eax, dword [esi + 0x10]
and edx, 0x7fff
and edi, dword [eax + edx*4]
mov dword [eax + edx*4], ecx
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
lea eax, [eax + edx*4]
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], edi
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
inc ecx
and ecx, dword [esi + 0x24]
or ebx, reloc.MSVCRT.dll_strncpy
add dword [esi + 0x58], ebx
mov ebp, 2
cmp dword [esi + 0x58], ebp
mov edi, edx
mov dword [esi + reloc.MSVCRT.dll_strncpy], ecx
jle 0x873ff5
jmp 0x873f57
mov edx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov eax, dword [esi]
movzx eax, byte [edx + eax + 2]
mov ecx, dword [esi + 0x10]
shl edi, 5
xor eax, edi
and eax, 0x7fff
lea edi, [ecx + eax*4]
mov ecx, dword [esi + 0x24]
and ecx, dword [edi]
mov dword [edi], edx
mov edx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov edi, dword [esi + 0x14]
mov dword [edi + edx*4], ecx
mov edi, eax
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
inc eax
and eax, dword [esi + 0x24]
mov dword [esi + reloc.MSVCRT.dll_strncpy], eax
add dword [esi + 0x58], ebx
cmp dword [esi + 0x58], ebp
jg 0x873f57
jmp 0x873ff5
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
mov edx, dword [esi]
mov dl, byte [ecx + edx]
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
mov ebx, dword [esi + reloc.MSVCRT.dll_strncpy]
lea ecx, reloc.MSVCRT.dll_strncpy
lea eax, [eax + eax*2]
mov byte [ebx + eax*4], 0
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ecx + 0x18]
lea eax, [eax + eax*2]
mov byte [ebx + eax*4 + 1], dl
inc dword [ecx + 0x1c]
cmp dword [ecx + 0x1c], 0x4000
jb 0x873fe5
call fcn.0085dea7
mov ecx, dword [esi + reloc.MSVCRT.dll_strncpy]
inc ecx
and ecx, dword [esi + 0x24]
mov dword [esi + reloc.MSVCRT.dll_strncpy], ecx
mov eax, dword [esi + reloc.MSVCRT.dll_strncpy]
mov edx, dword [esi + reloc.MSVCRT.dll_strncpy]
lea ecx, reloc.MSVCRT.dll_strncpy
sub edx, eax
and edx, dword [ecx + reloc.MSVCRT.dll_strncpy]
cmp edx, 0x111
jae 0x873d78
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
jmp fcn.00878f77