Function at 0x408780
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x44dd81
mov eax, dword fs:[0]
push eax
mov eax, 0x1274
call fcn.00442380
mov eax, dword [0x4577c0]
xor eax, esp
mov dword [esp + 0x1270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4577c0]
xor eax, esp
push eax
lea eax, [esp + 0x1288]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1298]
xor ebp, ebp
mov esi, ecx
cmp edi, ebp
je 0x408bfd
push 0xdfc
call fcn.00432f80
push eax
call fcn.00412ab0
push 0x450438
call fcn.00412ab0
mov eax, dword [esi + 0x7e5c]
or word [esi + 0x5760], 0x40
add esp, 8
push ebp
add eax, 7
push ebp
push eax
mov ecx, esi
call fcn.0041bb30
push ebp
push 0x73
mov ecx, esi
call fcn.00407860
push 2
push ebp
push ebp
mov ecx, esi
call fcn.0041bb30
mov ecx, esi
call fcn.0041b300
mov ebx, eax
push edx
push ebx
push edi
mov ecx, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
call fcn.004069d0
mov edi, eax
push 0x14
lea ecx, [esi + 0x6480]
mov dword [esp + 0x129c], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.00408730
push ebp
push 0x4503fc
push ebp
mov ecx, 0x4000
or word [esi + 0x6488], cx
push ebp
push ebp
mov ecx, esi
call fcn.00407f80
push ebp
push ebp
push ebp
mov ecx, esi
call fcn.0041bb30
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov ebp, edi
shl ebp, 9
push ebp
mov dword [esp + 0x48], ebp
call fcn.00441ae7
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4088b6
test ebp, ebp
je 0x4088b6
mov ecx, 0x46260c
call fcn.004171e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
push ebp
push 0
push eax
mov dword [esp + 0x129c], 0
call fcn.00441f20
add esp, 0xc
cmp dword [esp + 0x18], 0
mov dword [esp + 0x2c], 0xfffffff
jl 0x408ae2
jg 0x4088f8
test ebx, ebx
jbe 0x408ae2
jmp 0x4088f8
mov ebx, dword [esp + 0x14]
call fcn.00438420
xor ebp, ebp
cmp dword [esp + 0x18], ebp
jg 0x408934
jl 0x40890f
cmp ebx, 0x200
jae 0x408934
mov edx, 0x200
sub edx, ebx
push edx
lea eax, [esp + ebx + 0x88]
push ebp
push eax
mov edi, ebx
call fcn.00441f20
add esp, 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x408948
add ebx, 0xfffffe00
adc dword [esp + 0x18], 0xffffffff
mov edi, 0x200
mov dword [esp + 0x14], ebx
push edi
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call fcn.0041be40
mov eax, dword [esp + 0x20]
shl eax, 9
add eax, dword [esp + 0x38]
mov ecx, eax
neg ecx
lea edi, [esp + ecx + 0x84]
lea ebp, [esp + ecx + 0x85]
lea edx, [esp + ecx + 0x86]
lea ecx, [esp + ecx + 0x87]
mov dword [esp + 0x48], ecx
mov ecx, 0x80
lea esp, [esp]
movzx ebx, byte [edi + eax]
xor byte [eax], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 1], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 2], bl
mov ebx, dword [esp + 0x48]
movzx ebx, byte [ebx + eax]
xor byte [eax + 3], bl
add eax, 4
sub ecx, 1
jne 0x408990
push 0x200
lea edx, [esp + 0x88]
push edx
push 0xffffffffffffffff
call fcn.00413350
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx + 0x284], al
inc ecx
shr eax, 8
mov byte [esp + ecx + 0x284], al
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, 0x1000
jne 0x408a52
push esi
lea ecx, [esp + 0x70]
call fcn.00435050
push 2
xor ebx, ebx
push ebx
push ebx
mov ecx, esi
mov byte [esp + 0x129c], 1
call fcn.0041bb30
push 0x1000
lea eax, [esp + 0x288]
push eax
mov ecx, esi
call fcn.0041bc10
mov edx, dword [esp + 0x2c]
push 0x1000
lea ecx, [esp + 0x288]
push ecx
push edx
call fcn.00413350
lea ecx, [esp + 0x6c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1290], bl
call fcn.00435080
jmp 0x408a54
xor ebx, ebx
mov edi, dword [esp + 0x24]
mov eax, edi
and eax, 0xff
xor ecx, ecx
or eax, ecx
jne 0x408aa3
mov eax, dword [esi + 0x13c0]
cmp byte [eax + 0x3934], cl
jne 0x408aa3
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
push edx
push ebx
push 0x200
push eax
push edi
call fcn.004425d0
push edx
push eax
call fcn.00437860
push eax
push str._b_b_b_b_3d__
call fcn.00412ab0
add esp, 8
mov eax, dword [esp + 0x20]
add edi, 1
adc dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x1298]
inc eax
mov dword [esp + 0x20], eax
cmp eax, edi
jb 0x408ac6
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x18], ebx
jg 0x4088f4
jl 0x408ade
mov ebx, dword [esp + 0x14]
test ebx, ebx
ja 0x4088f8
mov ebp, dword [esp + 0x44]
push 2
push 0
push 0
mov ecx, esi
call fcn.0041bb30
mov ebx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x288]
push ecx
mov ecx, esi
call fcn.0041bc10
mov eax, dword [esp + 0x2c]
push ebx
lea edx, [esp + 0x288]
push edx
push eax
call fcn.00413350
mov ecx, dword [esp + 0x38]
push ebp
push ecx
mov ecx, esi
mov ebx, eax
call fcn.0041bc10
push ebp
mov ebp, dword [esp + 0x3c]
push ebp
push ebx
call fcn.00413350
mov edx, dword [esp + 0x34]
not eax
push 0
mov dword [esi + 0x6498], eax
mov eax, dword [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0041bb30
push 0
lea ecx, [esp + 0x50]
call fcn.0042dcc0
push 8
push str.Protect
lea ecx, [esp + 0x54]
mov byte [esp + 0x1298], 2
call fcn.0042db90
push edi
lea ecx, [esp + 0x50]
call fcn.0042dad0
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
push ecx
push ebx
lea ecx, [esp + 0x54]
call fcn.0042db60
lea edx, [esi + 0x70b0]
push edx
lea ecx, [esp + 0x50]
call fcn.0042de50
push 0
push 0x4503fc
shl edi, 8
push 0
add edi, ebx
add edi, edi
push edi
push 0
mov ecx, esi
call fcn.00407f80
push 2
push 0
push 0
mov ecx, esi
call fcn.0041bb30
mov eax, dword [esi + 0x13c0]
cmp byte [eax + 0x3934], 0
jne 0x408bdf
push str._b_b_b_b
call fcn.00412ab0
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1290], 0
call fcn.0042dd50
test ebp, ebp
je 0x408bfd
push ebp
call fcn.00441765
add esp, 4
mov ecx, dword [esp + 0x1288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1270]
xor ecx, esp
call fcn.00441a0e
add esp, 0x1280
ret 4