Function at 0x5af640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7a7d63
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x82f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 8
mov dword [ebp - 0x20], 0xcb00c8
mov dword [ebp - 0x24], eax
xor ecx, ecx
mov dword [ebp - 0x1c], 0xdd00df
mov dword [ebp - 0x18], 0x9300cf
mov dword [ebp - 0x14], 0xcc00d4
mov dword [ebp - 0x10], 0xc0
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x20], ax
inc ecx
mov eax, dword [ebp - 0x24]
cmp ecx, eax
jb 0x5af6a0
xor ecx, ecx
mov dword [ebp - 0x28], 7
mov word [ebp + eax*2 - 0x20], cx
xor eax, eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x20]
mov word [ebp - 0x3c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5af6d0
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004044f0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.005afc40
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00404490
test bl, bl
jne 0x5af7c1
mov eax, 0xc
mov dword [ebp - 0x58], 0xcb00c8
mov dword [ebp - 0x5c], eax
xor ecx, ecx
mov dword [ebp - 0x54], 0xdd00df
mov dword [ebp - 0x50], 0x9300cf
mov dword [ebp - 0x4c], 0xcc00d4
mov dword [ebp - 0x48], 0xec00e0
mov dword [ebp - 0x44], 0xe300fc
mov dword [ebp - 0x40], 0xc4
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x58], ax
inc ecx
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
jb 0x5af752
xor ecx, ecx
lea edi, [esi + 0x1c]
mov word [ebp + eax*2 - 0x58], cx
lea eax, [ebp - 0x58]
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041ee30
add esp, 0xc
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 1
call fcn.00404120
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0x54]
call fcn.00404490
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
jmp 0x5af7c4
lea edi, [esi + 0x1c]
mov dword [ebp - 0x20], 7
xor ecx, ecx
mov dword [ebp - 0x1c], 0xca00cd
mov dword [ebp - 0x18], 0xc900df
mov dword [ebp - 0x14], 0xd70092
mov dword [ebp - 0x10], 0xbf00cd
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x1c], ax
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x5af7f0
xor ecx, ecx
mov dword [ebp - 0x28], 7
mov word [ebp + eax*2 - 0x1c], cx
xor eax, eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
mov word [ebp - 0x3c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5af820
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004044f0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 3
push eax
mov ecx, esi
call fcn.005afc40
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.00404490
test bl, bl
jne 0x5af90a
mov dword [ebp - 0x58], 0xb
xor ecx, ecx
mov dword [ebp - 0x54], 0xca00cd
mov dword [ebp - 0x50], 0xc900df
mov dword [ebp - 0x4c], 0xd70092
mov dword [ebp - 0x48], 0x9f00cd
mov dword [ebp - 0x44], 0xff00ed
mov dword [ebp - 0x40], 0xc300e2
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x54], ax
inc ecx
mov eax, dword [ebp - 0x58]
cmp ecx, eax
jb 0x5af8a0
xor ecx, ecx
mov word [ebp + eax*2 - 0x54], cx
lea eax, [ebp - 0x54]
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041ee30
add esp, 0xc
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 4
call fcn.00404120
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0x54]
call fcn.00404490
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov eax, 6
mov dword [ebp - 0x1c], 0xd600ff
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov dword [ebp - 0x18], 0xdc00d5
mov dword [ebp - 0x14], 0xd800d0
mov dword [ebp - 0x10], 0xbe
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x1c], ax
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x5af930
xor ecx, ecx
mov word [ebp + eax*2 - 0x1c], cx
xor eax, eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], 7
lea edx, [ecx + 2]
mov word [ebp - 0x3c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5af960
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004044f0
mov dword [ebp - 4], 6
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.005b05a0
lea ecx, [ebp - 0x54]
mov bl, al
call fcn.00404490
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
test bl, bl
jne 0x5afa9a
mov eax, 0x18
mov dword [ebp - 0x70], 0xdc00cb
mov dword [ebp - 0x74], eax
xor ecx, ecx
mov dword [ebp - 0x6c], 0xc900db
mov dword [ebp - 0x68], 0xd500df
mov dword [ebp - 0x64], 0xd20093
mov dword [ebp - 0x60], 0xb500a5
mov dword [ebp - 0x5c], 0xa700a3
mov dword [ebp - 0x58], 0xb100a5
mov dword [ebp - 0x54], 0xe900a7
mov dword [ebp - 0x50], 0xba00a2
mov dword [ebp - 0x4c], 0xa500a5
mov dword [ebp - 0x48], 0xe000ec
mov dword [ebp - 0x44], 0xef00f0
mov dword [ebp - 0x40], 0xd0
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x70], ax
inc ecx
mov eax, dword [ebp - 0x74]
cmp ecx, eax
jb 0x5afa30
xor ecx, ecx
mov word [ebp + eax*2 - 0x70], cx
lea eax, [ebp - 0x70]
push edi
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0041ee30
add esp, 0xc
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 8
call fcn.00404120
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0x54]
call fcn.00404490
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
mov eax, 6
mov dword [ebp - 0x1c], 0xd600ff
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov dword [ebp - 0x18], 0xdc00d5
mov dword [ebp - 0x14], 0xd800d0
mov dword [ebp - 0x10], 0xbe
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x1c], ax
inc ecx
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jb 0x5afac0
xor ecx, ecx
mov word [ebp + eax*2 - 0x1c], cx
xor eax, eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], 7
lea edx, [ecx + 2]
mov word [ebp - 0x3c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5afaf0
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004044f0
mov dword [ebp - 4], 0xa
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
push ecx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
push eax
mov ecx, esi
call fcn.005b0b90
lea ecx, [ebp - 0x54]
mov bl, al
call fcn.00404490
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
test bl, bl
jne 0x5afc29
mov eax, 0x16
mov dword [ebp - 0x6c], 0xdc00cb
mov dword [ebp - 0x70], eax
xor ecx, ecx
mov dword [ebp - 0x68], 0xc900db
mov dword [ebp - 0x64], 0xd500df
mov dword [ebp - 0x60], 0xd50090
mov dword [ebp - 0x5c], 0xae00b3
mov dword [ebp - 0x58], 0xed00ac
mov dword [ebp - 0x54], 0xaa00a9
mov dword [ebp - 0x50], 0xab00bc
mov dword [ebp - 0x4c], 0xfd00b2
mov dword [ebp - 0x48], 0xe600ea
mov dword [ebp - 0x44], 0xed00f2
mov dword [ebp - 0x40], 0xce
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x6c], ax
inc ecx
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jb 0x5afbc0
xor ecx, ecx
mov word [ebp + eax*2 - 0x6c], cx
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0041ee30
add esp, 0xc
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xc
call fcn.00404120
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
push 0xa
call fcn.005a0320
lea ecx, [ebp - 0x54]
call fcn.00404490
lea ecx, [ebp - 0x8c]
call fcn.00404490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret