Function at 0x4057d0
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4185b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov al, byte [esp + 0x80]
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], al
call fcn.00408720
mov edi, 0x41f420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41f420
lea ecx, [esp + 0x44]
call fcn.00408a80
mov cl, byte [esp + 0x90]
push ebp
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0x88], ebp
call fcn.00408720
mov edi, 0x41f420
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41f420
lea ecx, [esp + 0x24]
call fcn.00408a80
lea edx, [esp + 0x6c]
mov ecx, esi
push edx
mov byte [esp + 0x88], 1
call fcn.00405fd0
push eax
lea eax, [esi + 0x7c]
lea ecx, [esp + 0x60]
push eax
push ecx
mov byte [esp + 0x90], 2
call fcn.00409520
push 0x41c1cc
lea edx, [esp + 0x5c]
mov bl, 3
push eax
push edx
mov byte [esp + 0x9c], bl
call fcn.00409650
add esp, 0x18
mov ecx, dword [0x419158]
mov byte [esp + 0x84], 4
push ecx
push ebp
push eax
lea ecx, [esp + 0x48]
call fcn.00408200
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x88], bl
call fcn.00408720
push 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x88], 2
call fcn.00408720
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x88], 1
call fcn.00408720
push 2
lea edx, [esp + 0x16]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
push 0x41c370
call fcn.00407ca0
sub esp, 0x10
lea eax, [esp + 0x37]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
push 0x41c1bc
mov byte [esp + 0xb0], 5
call fcn.00407ca0
mov ecx, esi
mov byte [esp + 0xa8], 1
call fcn.00401720
mov ecx, esi
call fcn.00405b90
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
xor eax, eax
cmp ecx, ebp
jle 0x405968
mov bl, byte [eax + edx]
xor bl, 0x6b
mov byte [eax + edx], bl
inc eax
cmp eax, ecx
jl 0x40595a
push ecx
lea ecx, [esp + 0x30]
push edx
push ecx
mov ecx, esi
call fcn.00406f80
push 1
lea edx, [esp + 0x30]
sub esp, 0x10
mov bl, 6
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
mov byte [esp + 0x9c], bl
call fcn.00407b80
sub esp, 0x10
lea eax, [esp + 0xb4]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
push 0x41c358
mov byte [esp + 0xb0], 7
call fcn.00407ca0
mov ecx, esi
mov byte [esp + 0xa8], bl
call fcn.00401720
push ebp
lea edx, [esp + 0x40]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0xa4], esp
push edx
call fcn.00407b80
lea eax, [esp + 0x80]
push 2
push eax
mov ecx, esi
call fcn.00401dd0
mov ecx, dword [0x419158]
mov byte [esp + 0x84], 8
push ecx
push ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00408200
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x88], bl
call fcn.00408720
lea edx, [esp + 0x6c]
mov ecx, esi
push edx
call fcn.00403360
mov ecx, dword [0x419158]
mov byte [esp + 0x84], 9
push ecx
push ebp
push eax
lea ecx, [esp + 0x28]
call fcn.00408200
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x88], bl
call fcn.00408720
mov edi, 0x41f420
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x41f420
push edx
push ebp
lea ecx, [esp + 0x2c]
call fcn.0040a050
cmp eax, ebp
jne 0x405aef
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 1
call fcn.00408720
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x405ab3
mov al, byte [ecx - 1]
test al, al
je 0x405aa9
cmp al, 0xff
je 0x405aa9
dec al
mov byte [ecx - 1], al
jmp 0x405ab3
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], ebp
cmp ecx, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
je 0x405ae8
mov al, byte [ecx - 1]
test al, al
je 0x405ade
cmp al, 0xff
je 0x405ade
dec al
mov byte [ecx - 1], al
xor al, al
jmp 0x405b75
dec ecx
push ecx
call fcn.0040d580
add esp, 4
xor al, al
jmp 0x405b75
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
je 0x405b13
mov al, byte [ecx - 1]
test al, al
je 0x405b09
cmp al, 0xff
je 0x405b09
dec al
mov byte [ecx - 1], al
jmp 0x405b13
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ebp
cmp ecx, ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
je 0x405b43
mov al, byte [ecx - 1]
test al, al
je 0x405b39
cmp al, 0xff
je 0x405b39
dec al
mov byte [ecx - 1], al
jmp 0x405b43
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x20], ebp
cmp ecx, ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
je 0x405b73
mov al, byte [ecx - 1]
test al, al
je 0x405b69
cmp al, 0xff
je 0x405b69
dec al
mov byte [ecx - 1], al
jmp 0x405b73
dec ecx
push ecx
call fcn.0040d580
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x78
ret 8