Function at 0x5e79a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ad797
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
call fcn.005e9370
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x5e7aa8
mov eax, 4
mov dword [ebp - 0x50], 0x940098
mov dword [ebp - 0x54], eax
xor ecx, ecx
mov dword [ebp - 0x4c], 0x9b0084
mov dword [ebp - 0x48], 0xbc
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x50], ax
inc ecx
mov eax, dword [ebp - 0x54]
cmp ecx, eax
jb 0x5e7a04
xor ecx, ecx
xor edx, edx
mov word [ebp + eax*2 - 0x50], cx
lea ecx, [ebp - 0x74]
call fcn.005d83b0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00408060
lea edi, [esi + 0x1c]
mov byte [ebp - 4], 1
push edi
mov edx, eax
lea ecx, [ebp - 0x90]
call fcn.00413520
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.00404120
mov byte [ebp - 4], 3
call ebx
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0x5c]
call fcn.00404490
lea ecx, [ebp - 0x90]
call fcn.00404490
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
jmp 0x5e7aab
lea edi, [esi + 0x1c]
push 1
mov ecx, esi
call fcn.005e9370
test al, al
jne 0x5e7b80
mov eax, 4
mov dword [ebp - 0x50], 0x940098
mov dword [ebp - 0x54], eax
xor ecx, ecx
mov dword [ebp - 0x4c], 0x9b0084
mov dword [ebp - 0x48], 0xbc
nop dword [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x50], ax
inc ecx
mov eax, dword [ebp - 0x54]
cmp ecx, eax
jb 0x5e7ae0
xor ecx, ecx
mov word [ebp + eax*2 - 0x50], cx
lea edx, [ecx + 1]
lea ecx, [ebp - 0x90]
call fcn.005d83b0
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 4
push ecx
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00408060
push edi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.00413520
add esp, 0x10
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00404120
mov byte [ebp - 4], 7
call ebx
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0x5c]
call fcn.00404490
lea ecx, [ebp - 0x74]
call fcn.00404490
lea ecx, [ebp - 0xa8]
call fcn.00404490
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
cmp byte [esi + 0xd4], 0
je 0x5e7c84
push 0x34
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0xd0]
add esp, 0xc
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 8
call fcn.00655bb0
test al, al
jne 0x5e7c74
mov dword [ebp - 0x78], 0xb
xor ecx, ecx
mov dword [ebp - 0x74], 0xdc00eb
mov dword [ebp - 0x70], 0xc800c9
mov dword [ebp - 0x6c], 0xd200d5
mov dword [ebp - 0x68], 0x9f00d0
mov dword [ebp - 0x64], 0xff00ed
mov dword [ebp - 0x60], 0xc300e2
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x74], ax
inc ecx
mov eax, dword [ebp - 0x78]
cmp ecx, eax
jb 0x5e7c12
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push edi
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.0041ee30
add esp, 0xc
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.00404120
mov byte [ebp - 4], 0xa
call ebx
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0x5c]
call fcn.00404490
lea ecx, [ebp - 0xc0]
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0x40]
call fcn.00404490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret