Function at 0x408410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470808
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x48f088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x4c], esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], esi
call fcn.00415620
mov dword [ebp - 4], 0
mov eax, 8
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov dword [ebp - 0x60], 0x9600e9
mov dword [ebp - 0x5c], 0x90008d
mov dword [ebp - 0x58], 0x92008b
mov dword [ebp - 0x54], 0xf900f1
mov dword [ebp - 0x50], 0xc2
nop
lea eax, [ecx + 0xba]
xor word [ebp + ecx*2 - 0x60], ax
inc ecx
mov eax, dword [ebp - 0x64]
cmp ecx, eax
jb 0x408480
xor ecx, ecx
mov word [ebp + eax*2 - 0x60], cx
lea ecx, [ebp - 0x60]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4084a0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
sub ecx, edx
mov edx, dword [ebp - 0x18]
sar ecx, 1
cmp dword [ebp - 0x14], 8
cmovae eax, edi
cmp edx, ecx
jne 0x40861b
push edx
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.0040c700
add esp, 0xc
test eax, eax
jne 0x40861b
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
movups xmmword [ebp - 0x48], xmm0
movups xmmword [ebp - 0x38], xmm0
call fcn.0041b310
mov byte [ebp - 4], 1
mov eax, 0xc
mov dword [ebp - 0x84], eax
xor ecx, ecx
mov dword [ebp - 0x80], 0xc300df
mov dword [ebp - 0x7c], 0xd100cc
mov dword [ebp - 0x78], 0xcd00d1
mov dword [ebp - 0x74], 0xb300a5
mov dword [ebp - 0x70], 0xa600ec
mov dword [ebp - 0x6c], 0xa000bc
mov dword [ebp - 0x68], 0xc6
lea eax, [ecx + 0xba]
xor word [ebp + ecx*2 - 0x80], ax
inc ecx
mov eax, dword [ebp - 0x84]
cmp ecx, eax
jb 0x408532
xor ecx, ecx
mov word [ebp + eax*2 - 0x80], cx
xor eax, eax
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x50], 7
lea edx, [ecx + 2]
mov word [ebp - 0x64], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408565
sub ecx, edx
lea eax, [ebp - 0x80]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.0040c030
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x48]
call fcn.0041b420
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
cmp edx, 8
jb 0x4085d5
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4085c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408657
push edx
push ecx
call fcn.0044945e
mov eax, dword [ebp - 0x4c]
add esp, 8
mov edx, eax
mov ecx, esi
call fcn.00415360
lea ecx, [ebp - 0x48]
call fcn.0041b3a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40863a
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40860f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40865c
push ecx
push edi
call fcn.0044945e
add esp, 8
jmp 0x40863a
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00448dec
mov esp, ebp
pop ebp
ret
call fcn.0044e6c9
call fcn.0044e6c9
int3