Function at 0x404ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a595
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x4224ec]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
jne 0x404f92
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x50c], esp
push 0x24
mov dword [ebp - 0x508], esi
mov dword [esi + 4], ebx
call fcn.004079f0
add esp, 4
cmp eax, ebx
je 0x404f55
mov dword [esi], eax
mov dword [eax], eax
mov esi, dword [esi]
mov dword [esi + 4], esi
mov dword [ebp - 4], 2
mov dword [ebp - 4], 0xffffffff
call fcn.00404620
lea eax, [ebp - 0x4f0]
push eax
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x4f0], ebx
call fcn.00408522
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4a4], 0x41b528
mov dword [ebp - 4], 0xffffffff
push 0x41ed2c
lea ecx, [ebp - 0x4a4]
push ecx
call fcn.00407953
mov dword [ebp - 0x504], ebx
mov dword [ebp - 0x500], ebx
mov dword [ebp - 0x4fc], ebx
mov dword [ebp - 4], 3
movzx edx, ax
push 0xa
push edx
push ebx
call dword [0x41b100]
mov esi, eax
cmp esi, ebx
je 0x40511c
push esi
push ebx
call dword [0x41b10c]
mov edi, eax
cmp edi, ebx
je 0x40511c
push esi
push ebx
call dword [0x41b104]
cmp eax, ebx
je 0x40511c
push eax
call dword [0x41b108]
mov esi, eax
cmp esi, ebx
je 0x40511c
push edi
lea ecx, [ebp - 0x504]
call fcn.004035a0
mov eax, dword [ebp - 0x504]
push edi
push esi
push eax
call fcn.00407af0
mov eax, dword [ebp - 0x508]
mov ecx, dword [ebp - 0x500]
mov edx, dword [ebp - 0x504]
add esp, 0xc
push eax
push ecx
push edx
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x468], 0xf
mov dword [ebp - 0x46c], ebx
mov byte [ebp - 0x47c], bl
call fcn.00403320
mov esi, 7
mov byte [ebp - 4], 7
call dword [0x41b090]
push eax
call fcn.00408756
xor eax, eax
add esp, 4
mov dword [ebp - 0x484], esi
mov dword [ebp - 0x488], ebx
mov word [ebp - 0x498], ax
mov byte [ebp - 4], 8
xor ecx, ecx
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x450], ebx
mov word [ebp - 0x460], cx
mov byte [ebp - 4], 9
xor edx, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x444], dx
mov byte [ebp - 4], 0xa
mov edi, dword [0x41b04c]
mov dword [ebp - 0x4f4], ebx
call fcn.00408768
and eax, 0x80000007
jns 0x4050c8
dec eax
or eax, 0xfffffff8
inc eax
add eax, 7
je 0x4050f4
mov esi, eax
nop
call fcn.00408768
cdq
mov ecx, 0x19
idiv ecx
lea ecx, [ebp - 0x498]
add edx, 0x41
movzx eax, dx
push eax
push 1
call fcn.00402af0
dec esi
jne 0x4050d0
mov eax, dword [ebp - 0x450]
lea ecx, [ebp - 0x460]
cmp eax, 0x104
jb 0x40518f
push 0xffffffffffffffff
push 0x104
call fcn.00401f10
jmp 0x40519d
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x508], esp
push 0x24
mov dword [ebp - 0x50c], esi
mov dword [esi + 4], ebx
call fcn.004079f0
add esp, 4
cmp eax, ebx
je 0x405154
mov dword [esi], eax
mov dword [eax], eax
mov esi, dword [esi]
mov dword [esi + 4], esi
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
call fcn.00404620
lea ecx, [ebp - 0x4f0]
push ecx
lea ecx, [ebp - 0x4a4]
mov dword [ebp - 0x4f0], ebx
call fcn.00408522
mov byte [ebp - 4], 4
mov dword [ebp - 0x4a4], 0x41b528
mov byte [ebp - 4], 3
push 0x41ed2c
lea edx, [ebp - 0x4a4]
push edx
call fcn.00407953
mov edx, 0x104
push ebx
sub edx, eax
push edx
call fcn.00402af0
mov eax, dword [ebp - 0x460]
mov esi, 8
cmp dword [ebp - 0x44c], esi
jae 0x4051b6
lea eax, [ebp - 0x460]
push eax
push 0x104
call edi
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x4f4], eax
cmp eax, ecx
ja 0x4051de
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x460]
call fcn.00401f10
jmp 0x4051ed
sub eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x460]
call fcn.00402af0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x460]
call fcn.004029e0
mov eax, dword [ebp - 0x460]
cmp dword [ebp - 0x44c], esi
jae 0x405216
lea eax, [ebp - 0x460]
push ebx
push eax
call dword [0x41b098]
cmp eax, 0xb7
je 0x4050b7
push str._tmppack.exe
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x4b4]
push edx
call fcn.00403950
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x444]
cmp eax, esi
je 0x4052ce
cmp dword [ebp - 0x430], 8
jb 0x40526c
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.0040780e
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x444], dx
cmp dword [esi + 0x14], 8
jae 0x4052a5
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x444]
push esi
push ecx
call fcn.00407e60
add esp, 0xc
jmp 0x4052af
mov edx, dword [esi]
mov dword [ebp - 0x444], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x434], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x430], ecx
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], dx
jmp 0x4052d3
mov edi, 7
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x4a0], 8
jb 0x4052ef
mov eax, dword [ebp - 0x4b4]
push eax
call fcn.0040780e
add esp, 4
mov eax, dword [ebp - 0x444]
xor ecx, ecx
cmp dword [ebp - 0x430], 8
mov dword [ebp - 0x4a0], edi
mov dword [ebp - 0x4a4], ebx
mov word [ebp - 0x4b4], cx
jae 0x405319
lea eax, [ebp - 0x444]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [0x41b068]
mov dword [ebp - 0x4f0], eax
cmp eax, ebx
jne 0x4053eb
mov byte [ebp - 4], 9
mov esi, 8
cmp dword [ebp - 0x430], esi
jb 0x405359
mov edx, dword [ebp - 0x444]
push edx
call fcn.0040780e
add esp, 4
xor eax, eax
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x444], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44c], esi
jb 0x405389
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.0040780e
add esp, 4
xor edx, edx
mov dword [ebp - 0x44c], edi
mov dword [ebp - 0x450], ebx
mov word [ebp - 0x460], dx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x484], esi
jb 0x4053b9
mov eax, dword [ebp - 0x498]
push eax
call fcn.0040780e
add esp, 4
mov dword [ebp - 0x484], edi
xor ecx, ecx
mov dword [ebp - 0x488], ebx
mov word [ebp - 0x498], cx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x468], 0x10
jb 0x405a69
mov edx, dword [ebp - 0x47c]
push edx
jmp 0x405a61
push 0x64
push ebx
push ebx
push 1
mov dword [ebp - 0x510], ebx
call dword [0x41b048]
push eax
call dword [0x41b0f0]
call dword [0x41b058]
call dword [0x41b1c8]
mov edi, dword [0x41b02c]
push ebx
push ebx
call edi
mov esi, dword [0x41b0ec]
push eax
call esi
call dword [0x41b030]
call dword [0x41b090]
call edi
push ebx
call edi
neg eax
sbb eax, eax
neg eax
push eax
push 1
call esi
push ebx
push ebx
push ebx
call dword [0x41b038]
push eax
call dword [0x41b034]
push 0xffffffffffffffff
push ebx
push 1
push 0x1f0001
call esi
push eax
call dword [0x41b0f0]
push 0x6c15
call dword [0x41b1f4]
call dword [0x41b1d8]
cmp dword [ebp - 0x468], 0x10
mov eax, dword [ebp - 0x47c]
jae 0x405488
lea eax, [ebp - 0x47c]
mov edx, dword [ebp - 0x46c]
push ebx
lea ecx, [ebp - 0x510]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x4f0]
push eax
call dword [0x41b060]
mov ecx, dword [ebp - 0x4f0]
push ecx
mov edi, eax
call dword [0x41b034]
cmp edi, 1
je 0x40554d
mov byte [ebp - 4], 9
mov edi, 8
cmp dword [ebp - 0x430], edi
jb 0x4054dd
mov edx, dword [ebp - 0x444]
push edx
call fcn.0040780e
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x444], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44c], edi
jb 0x405512
mov ecx, dword [ebp - 0x460]
push ecx
call fcn.0040780e
add esp, 4
xor edx, edx
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x450], ebx
mov word [ebp - 0x460], dx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x484], edi
jb 0x405542
mov eax, dword [ebp - 0x498]
push eax
call fcn.0040780e
add esp, 4
mov dword [ebp - 0x484], esi
jmp 0x4053bf
push 0x40
lea eax, [ebp - 0x560]
push ebx
push eax
call fcn.00408610
add esp, 0xc
push ebx
xor eax, eax
push ebx
xor ecx, ecx
push 1
mov dword [ebp - 0x564], 0x44
mov word [ebp - 0x534], cx
mov dword [ebp - 0x538], 1
mov dword [ebp - 0x520], ebx
mov dword [ebp - 0x51c], eax
mov dword [ebp - 0x518], eax
mov dword [ebp - 0x514], eax
call dword [0x41b048]
call dword [0x41b1e4]
push ebx
call dword [0x41b05c]
push ebx
call dword [0x41b110]
call dword [0x41b058]
push eax
call dword [0x41b054]
mov edi, dword [0x41b1dc]
push 0x12
call edi
push 0x64
push ebx
push ebx
push 1
call dword [0x41b048]
push eax
call dword [0x41b0f0]
call dword [0x41b03c]
push 8
call edi
push 0xb
call dword [0x41b044]
push 5
call dword [0x41b040]
push ebx
push ebx
push 0x1f0001
call esi
cmp dword [ebp - 0x44c], 8
mov ecx, dword [ebp - 0x460]
jae 0x405616
lea ecx, [ebp - 0x460]
mov eax, dword [ebp - 0x444]
mov edi, 8
cmp dword [ebp - 0x430], edi
jae 0x40562f
lea eax, [ebp - 0x444]
lea edx, [ebp - 0x520]
push edx
lea edx, [ebp - 0x564]
push edx
push ecx
push ebx
push 0x8000010
push ebx
push ebx
push ebx
push 0x41b428
push eax
call dword [0x41b094]
push 0x20a
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.00408610
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
push 0x105
call dword [0x41b04c]
test eax, eax
je 0x405721
push 0x208
lea ecx, [ebp - 0x426]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x428], ax
call fcn.00408610
add esp, 0xc
lea edx, [ebp - 0x428]
push edx
push 0x3ed
push 0x41b320
lea eax, [ebp - 0x21c]
push eax
call dword [0x41b06c]
test eax, eax
je 0x405721
push ebx
push 0x100
push 2
push ebx
push 1
push 0x10000000
lea ecx, [ebp - 0x428]
push ecx
call dword [0x41b068]
mov esi, eax
cmp esi, 0xffffffff
je 0x405721
lea edx, [ebp - 0x4a8]
push edx
call dword [0x41b064]
push ebx
lea eax, [ebp - 0x4f0]
push eax
push 0x10
lea ecx, [ebp - 0x4a8]
push ecx
push esi
mov dword [ebp - 0x4f0], ebx
call dword [0x41b060]
push esi
call dword [0x41b034]
mov edx, dword [ebp - 0x520]
push 0x1d4c0
push edx
call dword [0x41b0f0]
push str.ins
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
call fcn.00403950
mov byte [ebp - 4], 0xc
push 0x41b414
push eax
lea edx, [ebp - 0x4d0]
push edx
call fcn.00403a30
mov byte [ebp - 4], 0xd
push str.ler.pak
push eax
lea eax, [ebp - 0x4b4]
push eax
call fcn.00403a30
add esp, 0x24
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x444]
call fcn.004037b0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x4a0], edi
jb 0x4057a5
mov ecx, dword [ebp - 0x4b4]
push ecx
call fcn.0040780e
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x4a0], esi
mov dword [ebp - 0x4a4], ebx
mov word [ebp - 0x4b4], dx
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x4bc], edi
jb 0x4057da
mov eax, dword [ebp - 0x4d0]
push eax
call fcn.0040780e
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4c0], ebx
mov word [ebp - 0x4d0], cx
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x4d8], edi
jb 0x40580a
mov edx, dword [ebp - 0x4ec]
push edx
call fcn.0040780e
add esp, 4
xor eax, eax
mov word [ebp - 0x4ec], ax
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x4d8], esi
mov dword [ebp - 0x4dc], ebx
cmp dword [ebp - 0x430], edi
jae 0x405833
lea eax, [ebp - 0x444]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [0x41b068]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405902
mov byte [ebp - 4], 9
cmp dword [ebp - 0x430], edi
jb 0x40586b
mov ecx, dword [ebp - 0x444]
push ecx
call fcn.0040780e
add esp, 4
mov esi, 7
xor edx, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x444], dx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44c], edi
jb 0x4058a0
mov eax, dword [ebp - 0x460]
push eax
call fcn.0040780e
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x450], ebx
mov word [ebp - 0x460], cx
mov byte [ebp - 4], 7
cmp dword [ebp - 0x484], edi
jb 0x4058d0
mov edx, dword [ebp - 0x498]
push edx
call fcn.0040780e
add esp, 4
xor eax, eax
mov dword [ebp - 0x484], esi
mov dword [ebp - 0x488], ebx
mov word [ebp - 0x498], ax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x468], 0x10
jb 0x405a69
mov ecx, dword [ebp - 0x47c]
push ecx
jmp 0x405a61
mov eax, dword [ebp - 0x46c]
lea edx, [eax + eax*4]
push edx
mov ecx, 0x423b88
call fcn.004035a0
mov eax, dword [0x423b88]
mov byte [eax], 0x4d
mov ecx, dword [0x423b88]
mov byte [ecx + 1], 0x5a
call fcn.00405d60
mov eax, dword [0x423b88]
mov ecx, dword [0x423b8c]
push ebx
sub ecx, eax
lea edx, [ebp - 0x4f4]
push edx
sub ecx, 2
push ecx
add eax, 2
push eax
push esi
call dword [0x41b114]
mov eax, dword [ebp - 0x444]
cmp dword [ebp - 0x430], edi
jae 0x405965
lea eax, [ebp - 0x444]
push eax
call dword [0x41b08c]
mov edx, dword [ebp - 0x4f4]
push edx
mov ecx, 0x423b88
call fcn.004035a0
mov eax, dword [ebp - 0x460]
cmp dword [ebp - 0x44c], edi
jae 0x405991
lea eax, [ebp - 0x460]
push eax
call dword [0x41b088]
mov eax, 2
cmp dword [ebp - 0x4f4], eax
jbe 0x4059b8
mov ecx, dword [0x423b88]
xor byte [eax + ecx], 0x37
inc eax
cmp eax, dword [ebp - 0x4f4]
jb 0x4059a5
mov byte [ebp - 4], 9
cmp dword [ebp - 0x430], edi
jb 0x4059d3
mov eax, dword [ebp - 0x444]
push eax
call fcn.0040780e
add esp, 4
mov esi, 7
xor ecx, ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x434], ebx
mov word [ebp - 0x444], cx
mov byte [ebp - 4], 8
cmp dword [ebp - 0x44c], edi
jb 0x405a08
mov edx, dword [ebp - 0x460]
push edx
call fcn.0040780e
add esp, 4
xor eax, eax
mov dword [ebp - 0x44c], esi
mov dword [ebp - 0x450], ebx
mov word [ebp - 0x460], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x484], edi
jb 0x405a38
mov ecx, dword [ebp - 0x498]
push ecx
call fcn.0040780e
add esp, 4
xor edx, edx
mov dword [ebp - 0x484], esi
mov dword [ebp - 0x488], ebx
mov word [ebp - 0x498], dx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x468], 0x10
jb 0x405a69
mov eax, dword [ebp - 0x47c]
push eax
call fcn.0040780e
add esp, 4
mov dword [ebp - 0x468], 0xf
mov dword [ebp - 0x46c], ebx
mov byte [ebp - 0x47c], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x504]
cmp eax, ebx
je 0x405a99
push eax
call fcn.0040780e
add esp, 4
mov dword [ebp - 0x4fc], ebx
mov dword [ebp - 0x500], ebx
mov dword [ebp - 0x504], ebx
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.004077ff
mov esp, ebp
pop ebp
ret