Function at 0xb58ff0
Capabilities:
Encode data using xor

Disassembly:
mov ebx, dword [reloc.MSVCRT.dll_strncpy]
sub ebx, 3
mov ecx, ebx
mov esi, dword [reloc.MSVCRT.dll_strncpy]
test esi, esi
jne 0xb59010
mov dword [reloc.MSVCRT.dll_strncpy], 0xffffffff
inc esi
xor ebx, ebx
mov bx, word [esi + 0x5002a800]
mov dl, byte [esi + 0x5002a802]
xor bh, dl
xor bl, dl
mov edx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov dword [ebx*4 + reloc.MSVCRT.dll_strncpy], esi
mov dword [esi*4 + reloc.MSVCRT.dll_strncpy], edx
inc esi
cmp esi, ecx
jbe 0xb59012
mov edx, dword [reloc.MSVCRT.dll_strncpy]
mov dword [reloc.MSVCRT.dll_strncpy], 2
mov ebx, dword [edx*4 + reloc.MSVCRT.dll_strncpy]
test ebx, ebx
js 0xb591c4
mov dword [reloc.MSVCRT.dll_strncpy], edx
sub dword [reloc.MSVCRT.dll_strncpy], 0x7ffe
mov eax, dword [reloc.MSVCRT.dll_strncpy]
mov dword [reloc.MSVCRT.dll_strncpy], eax
mov dword [reloc.MSVCRT.dll_strncpy], 2
mov al, byte [edx + 0x5002a802]
mov esi, dword [reloc.MSVCRT.dll_strncpy]
cmp byte [ebx + esi + 0x5002a800], al
jne 0xb590f3
cmp ebx, dword [reloc.MSVCRT.dll_strncpy]
jle 0xb59112
mov ecx, 0x103
mov esi, edx
add esi, 0x5002a800
mov edi, ebx
add edi, 0x5002a800
cld
repe cmpsb byte [esi], byte es:[edi]
sub ecx, 0x102
neg ecx
cmp ecx, dword [reloc.MSVCRT.dll_strncpy]
jbe 0xb590f3
mov dword [reloc.MSVCRT.dll_strncpy], ecx
mov dword [reloc.MSVCRT.dll_strncpy], ebx
dec ecx
mov dword [reloc.MSVCRT.dll_strncpy], ecx
mov dword [reloc.MSVCRT.dll_strncpy], ebx
mov al, byte [edx + ecx + 0x5002a801]
mov ah, byte [edx + 0x5002a800]
mov ebx, edx
inc ebx
jmp 0xb59251
dec dword [reloc.MSVCRT.dll_strncpy]
js 0xb59112
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
test ebx, ebx
js 0xb59112
cmp ebx, dword [reloc.MSVCRT.dll_strncpy]
jge 0xb59086
cmp dword [reloc.MSVCRT.dll_strncpy], 3
jb 0xb591c4
mov dword [reloc.MSVCRT.dll_strncpy], 2
mov ebx, dword [reloc.MSVCRT.dll_strncpy]
sub ebx, edx
cmp ebx, dword [reloc.MSVCRT.dll_strncpy]
jae 0xb59148
mov dword [reloc.MSVCRT.dll_strncpy], ebx
cmp dword [reloc.MSVCRT.dll_strncpy], 3
jb 0xb591c4
mov edi, edx
sub edi, dword [reloc.MSVCRT.dll_strncpy]
cmp dword [reloc.MSVCRT.dll_strncpy], 3
ja 0xb59161
cmp edi, dword [reloc.MSVCRT.dll_strncpy]
ja 0xb591c4
mov esi, dword [reloc.MSVCRT.dll_strncpy]
mov ecx, dword [esi*4 + reloc.MSVCRT.dll_strncpy]
sub esi, dword [ecx*4 + reloc.MSVCRT.dll_strncpy]
add ecx, 0x100
shl esi, 0x10
or esi, ecx
inc dword [ecx*4 + reloc.MSVCRT.dll_strncpy]
mov ecx, dword [reloc.MSVCRT.dll_strncpy]
mov dword [ecx*4 + reloc.MSVCRT.dll_strncpy], esi
mov ebx, dword [edi*4 + reloc.MSVCRT.dll_strncpy]
sub edi, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
shl edi, 0x10
or edi, ebx
inc dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov dword [ecx*4 + reloc.MSVCRT.dll_strncpy], edi
add dword [reloc.MSVCRT.dll_strncpy], 2
add edx, dword [reloc.MSVCRT.dll_strncpy]
jmp 0xb591e7
xor ebx, ebx
mov bl, byte [edx + 0x5002a800]
inc dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
mov esi, dword [reloc.MSVCRT.dll_strncpy]
mov dword [esi*4 + reloc.MSVCRT.dll_strncpy], ebx
inc dword [reloc.MSVCRT.dll_strncpy]
inc edx
cmp edx, dword [reloc.MSVCRT.dll_strncpy]
jae 0xb5936b
cmp dword [reloc.MSVCRT.dll_strncpy], 0x8000
jb 0xb5904d
pushal
call fcn.00b58e38
call fcn.00b58444
popal
jmp 0xb5904d
mov esi, dword [reloc.MSVCRT.dll_strncpy]
cmp byte [ebx + esi + 0x5002a800], al
je 0xb592c4
cmp esi, dword [reloc.MSVCRT.dll_strncpy]
jb 0xb59251
cmp byte [ebx + 0x5002a7ff], ah
jne 0xb59251
mov esi, dword [reloc.MSVCRT.dll_strncpy]
mov ecx, dword [edx + esi + reloc.MSVCRT.dll_strncpy]
cmp ecx, dword [ebx + esi + reloc.MSVCRT.dll_strncpy]
je 0xb59327
dec dword [reloc.MSVCRT.dll_strncpy]
js 0xb5926c
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_strncpy]
test ebx, ebx
js 0xb5926c
cmp ebx, dword [reloc.MSVCRT.dll_strncpy]
jge 0xb59214
cmp dword [reloc.MSVCRT.dll_strncpy], 0x103
jb 0xb5927e
dec dword [reloc.MSVCRT.dll_strncpy]
mov esi, dword [reloc.MSVCRT.dll_strncpy]
cmp dword [reloc.MSVCRT.dll_strncpy], esi
ja 0xb5911f
jb 0xb591c4
mov esi, dword [reloc.MSVCRT.dll_strncpy]
cmp esi, dword [reloc.MSVCRT.dll_strncpy]
jbe 0xb5911f
sub esi, edx
neg esi
mov edi, edx
sub edi, dword [reloc.MSVCRT.dll_strncpy]
shr edi, 2
cmp esi, edi
jae 0xb5911f
jmp 0xb591c4
mov ecx, 0x103
mov esi, edx
add esi, 0x5002a801
mov edi, ebx
add edi, 0x5002a800
cld
repe cmpsb byte [esi], byte es:[edi]
sub ecx, 0x102
neg ecx
cmp ecx, dword [reloc.MSVCRT.dll_strncpy]
jbe 0xb59251
mov dword [reloc.MSVCRT.dll_strncpy], ecx
mov dword [reloc.MSVCRT.dll_strncpy], ebx
mov al, byte [edx + ecx + 0x5002a801]
cmp ah, byte [ebx + 0x5002a7ff]
jne 0xb59251
inc ecx
mov dword [reloc.MSVCRT.dll_strncpy], ecx
mov dword [reloc.MSVCRT.dll_strncpy], ebx
dec dword [reloc.MSVCRT.dll_strncpy]
jmp 0xb59251
mov ecx, 0x102
mov esi, edx
add esi, 0x5002a801
mov edi, ebx
add edi, 0x5002a800
cld
repe cmpsb byte [esi], byte es:[edi]
sub ecx, 0x101
neg ecx
inc ecx
cmp ecx, dword [reloc.MSVCRT.dll_strncpy]
jbe 0xb59251
mov dword [reloc.MSVCRT.dll_strncpy], ecx
mov dword [reloc.MSVCRT.dll_strncpy], ebx
dec dword [reloc.MSVCRT.dll_strncpy]
jmp 0xb59251
ret