Function at 0x5b72c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x64916c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x6bb700]
lea ecx, [eax*8]
sub ecx, eax
push esi
or eax, 0x4f440000
push edi
lea edi, [edx + ecx*8]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov eax, dword [edi]
mov esi, 1
mov dword [ebp - reloc.MSVCRT.dll_strncpy], esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edi
test eax, eax
je 0x5b79f2
push eax
call fcn.005b8810
mov ecx, dword [edi + 0x14]
add esp, 4
test ecx, ecx
je 0x5b79f2
mov eax, dword [edi + 8]
mov esi, dword [edi + 4]
push ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], esi
test eax, 0x40000000
je 0x5b751f
push 0
cmp ecx, reloc.MSVCRT.dll_strncpy
jne 0x5b7377
push 0
push esi
call fcn.00565140
add esp, 0xc
test eax, eax
jne 0x5b79b5
test byte [edi + 8], 1
je 0x5b7360
push 1
jmp 0x5b7362
push 0
push esi
call fcn.005b66d0
add esp, 8
push esi
call dword [0x5c0110]
jmp 0x5b79b5
mov ebx, dword [edi + 0xc]
push ebx
push esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
call fcn.00565140
add esp, 0xc
cmp eax, ebx
jne 0x5b79b5
push esi
call dword [0x5c0110]
test byte [edi + 8], 1
je 0x5b748b
push 4
lea ecx, reloc.MSVCRT.dll_strncpy
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0x605444f
mov eax, dword [edi + 0x10]
push ecx
push esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
call fcn.00565020
mov edx, dword [ebp - reloc.MSVCRT.dll_strncpy]
push edx
call fcn.00565530
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x5b79b5
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push eax
push eax
mov eax, dword [edi + 0x14]
push eax
push ebx
call fcn.005481c0
mov edi, eax
push edi
push ebx
push esi
call fcn.00565020
push ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
call fcn.00565600
add esp, 0x20
cmp edi, dword [ebp - reloc.MSVCRT.dll_strncpy]
jne 0x5b79af
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
xor edx, edx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0x605444f
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edi
mov word [ebp - 0x10c], dx
mov ecx, dword [eax + 0x1c]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
mov eax, 4
mov edi, edi
mov dl, al
add dl, dl
lea ecx, [edx + eax - 0x5b]
xor byte [ebp + eax - 0x120], cl
inc eax
cmp eax, 0x16
jb 0x5b7450
push 0x16
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push esi
call fcn.00565020
add esp, 0xc
cmp eax, 0x16
jne 0x5b79af
mov edi, dword [ebp - reloc.MSVCRT.dll_strncpy]
jmp 0x5b79bf
mov eax, dword [edi + 0x10]
push eax
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov eax, dword [edi + 0x14]
push eax
push esi
call fcn.00565020
add esp, 0xc
cmp eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
jne 0x5b79b5
sub eax, dword [0x6bb828]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov ecx, dword [edi + 0x1c]
lea edx, reloc.MSVCRT.dll_strncpy
push edx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
mov ecx, dword [edi + 0x1c]
push ecx
add eax, ebx
push eax
push esi
call fcn.005b71a0
add esp, 0x10
test eax, eax
je 0x5b79b5
push 0x16
lea eax, reloc.MSVCRT.dll_strncpy
push eax
xor edx, edx
push esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0x6054b50
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0
mov word [ebp - 0x10c], dx
call fcn.00565020
add esp, 0xc
cmp eax, 0x16
jne 0x5b79b5
jmp 0x5b79bf
test eax, eax
jns 0x5b79bf
mov ebx, dword [edi + 0x18]
push 0
push ebx
push esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
call fcn.00565140
add esp, 0xc
cmp eax, ebx
jne 0x5b79b5
push esi
call dword [0x5c0110]
test eax, eax
je 0x5b79b5
mov ecx, dword [edi]
push ecx
call fcn.005b8bb0
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
imul eax, eax, 0x132
lea edx, reloc.MSVCRT.dll_strncpy
xor ebx, ebx
push edi
push edx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
call fcn.005b6ba0
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
sub eax, dword [0x6bb828]
xor ecx, ecx
xor edx, edx
add esp, 0xc
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0x6054b50
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov word [ebp - 0x10c], cx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
call fcn.005b5ce0
cmp eax, reloc.MSVCRT.dll_strncpy
je 0x5b79b5
mov edx, dword [0x6bb6fc]
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edx + ecx*8]
mov dword [eax + 0x20], 0x40000000
test byte [edi + 8], 1
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
je 0x5b7828
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea ecx, [eax + eax]
push ecx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0x605444f
call fcn.00565530
add esp, 4
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
test eax, eax
je 0x5b79b5
mov edx, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea ecx, [eax + edx]
lea edx, [ebp - 0x108]
push edx
push 0x80
mov ebx, eax
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push 0
push eax
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
call fcn.005b6990
add esp, 0x10
cmp eax, reloc.MSVCRT.dll_strncpy
je 0x5b7814
jmp 0x5b7660
cmp byte [ebp - 0x108], 0
je 0x5b7732
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
cmp dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
jge 0x5b7814
mov esi, dword [0x6bb704]
mov edx, dword [esi + 0x18]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
mov eax, dword [esi]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov ecx, dword [esi + 8]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
mov edx, dword [esi + 0xc]
lea eax, [ebp - 0x108]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b76b1
sub eax, edx
mov word [ebp - 0x134], ax
mov eax, dword [esi + 0x10]
sub eax, dword [0x6bb828]
mov edi, ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov cx, word [esi + 4]
mov word [ebp - 0x146], cx
mov ecx, 0xb
lea esi, reloc.MSVCRT.dll_strncpy
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsx edx, word [ebp - 0x134]
push edx
lea eax, [ebp - 0x108]
push eax
add ebx, 0x2e
push ebx
call fcn.0059eca0
movsx eax, word [ebp - 0x134]
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov esi, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov edi, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea edx, [ecx + eax + 0x2e]
add esp, 0xc
add ebx, eax
inc dword [ebp - reloc.MSVCRT.dll_strncpy]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.005b6a20
add esp, 8
cmp eax, reloc.MSVCRT.dll_strncpy
jne 0x5b7660
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push 4
lea edx, reloc.MSVCRT.dll_strncpy
xor ecx, ecx
push edx
push esi
mov dword [eax + 8], ecx
mov dword [eax + 0x20], ecx
call fcn.00565020
add esp, 0xc
cmp eax, 4
jne 0x5b7814
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov edx, dword [ebp - reloc.MSVCRT.dll_strncpy]
push eax
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push ecx
push edx
push eax
call fcn.005481c0
mov edx, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov ebx, eax
push ebx
push edx
push esi
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
call fcn.00565020
add esp, 0x1c
cmp eax, ebx
jne 0x5b7814
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push eax
call fcn.00565600
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
add esp, 4
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ebx
mov dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
mov eax, 4
mov dl, al
add dl, dl
lea ecx, [edx + eax - 0x5b]
xor byte [ebp + eax - 0x120], cl
inc eax
cmp eax, 0x16
jb 0x5b77e4
push 0x16
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push esi
call fcn.00565020
add esp, 0xc
cmp eax, 0x16
je 0x5b79bf
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push eax
call fcn.00565600
add esp, 4
jmp 0x5b79b5
mov edx, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea ecx, [ebp - 0x108]
push ecx
push 0x80
push 0
push edx
call fcn.005b6990
add esp, 0x10
cmp eax, reloc.MSVCRT.dll_strncpy
je 0x5b79b5
mov edi, edi
cmp byte [ebp - 0x108], 0
je 0x5b792d
cmp ebx, dword [ebp - reloc.MSVCRT.dll_strncpy]
jge 0x5b79b5
mov ecx, dword [0x6bb704]
mov eax, dword [ecx + 0x18]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov edx, dword [ecx]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
mov eax, dword [ecx + 8]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
mov edx, dword [ecx + 0xc]
lea eax, [ebp - 0x108]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
lea ebx, [eax + 1]
jmp 0x5b78a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5b78a0
sub eax, ebx
mov word [ebp - 0x134], ax
mov edx, dword [ecx + 0x10]
cwde
sub edx, eax
sub edx, dword [0x6bb828]
push 0x2e
sub edx, 0x1e
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
mov ax, word [ecx + 4]
lea ecx, reloc.MSVCRT.dll_strncpy
push ecx
push esi
mov word [ebp - 0x146], ax
call fcn.00565020
add esp, 0xc
cmp eax, 0x2e
jne 0x5b79b5
mov ax, word [ebp - 0x134]
movsx edx, ax
movsx ebx, ax
push edx
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.00565020
add esp, 0xc
cmp eax, ebx
jne 0x5b79b5
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
inc dword [ebp - reloc.MSVCRT.dll_strncpy]
lea edx, [ecx + ebx + 0x2e]
mov ebx, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], edx
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.005b6a20
add esp, 8
cmp eax, reloc.MSVCRT.dll_strncpy
jne 0x5b7850
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
add eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
lea ecx, reloc.MSVCRT.dll_strncpy
sub eax, dword [0x6bb828]
push ecx
push ebx
push eax
push esi
mov word [ebp - 0x118], bx
mov word [ebp - 0x116], bx
call fcn.005b71a0
add esp, 0x10
test eax, eax
je 0x5b79b5
push 0x16
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push esi
call fcn.00565020
add esp, 0xc
cmp eax, 0x16
je 0x5b79bf
jmp 0x5b79b5
mov edi, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], 0
mov eax, dword [edi + 0x14]
pop ebx
cmp eax, reloc.MSVCRT.dll_strncpy
je 0x5b79d5
test eax, eax
je 0x5b79d5
push eax
call fcn.00565600
add esp, 4
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
mov dword [edi + 0x14], 0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059ea5e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0059ea5e
mov esp, ebp
pop ebp
ret