Function at 0x408110
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push fcn.0042c5a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x310
mov eax, dword [0x43d054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x2d1], dl
mov byte [ebp - 0x2d9], cl
mov dword [ebp - 4], 0
push 0
call fcn.00419163
add esp, 4
push eax
call fcn.00418707
mov dword [ebp - 0x2c], 0
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
push 0x148
lea eax, [ebp - 0x2d0]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00411410
add esp, 0xc
mov dword [ebp - 0x2c4], 0x439b34
mov dword [ebp - 0x2cc], 0x7a120
push 0x7a120
call fcn.0040f71d
add esp, 4
mov dword [ebp - 0x2d0], eax
push dword [ebp - 0x2cc]
push 0
push eax
call fcn.00411410
add esp, 0xc
mov dword [ebp - 0x2ac], 0xfde9
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0
mov byte [ebp - 4], 4
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov dword [ebp - 0x2d8], edi
nop dword [eax]
mov eax, dword [0x43ed84]
mov word [ebp - 0x30], 0x2e5e
cmp eax, dword [edi + 4]
jle 0x40827b
push 0x43ed84
call fcn.0040f858
add esp, 4
cmp dword [0x43ed84], 0xffffffff
jne 0x40827b
movaps xmm0, xmmword [0x439db0]
mov ax, word [ebp - 0x30]
push 0x42cd00
movups xmmword [0x43f014], xmm0
mov word [0x43f024], ax
call fcn.0040fb6a
add esp, 4
push 0x43ed84
call fcn.0040f80e
add esp, 4
cmp byte [0x43f025], 0
je 0x4082af
movups xmm0, xmmword [0x43f014]
mov eax, 0x10
movaps xmm1, xmmword [0x439d70]
pxor xmm1, xmm0
movups xmmword [0x43f014], xmm1
xor byte [eax + 0x43f014], 0x2e
inc eax
cmp eax, 0x12
jb 0x4082a2
mov ecx, 0x43f014
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0xf
mov byte [ebp - 0x314], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4082e0
sub ecx, edx
push ecx
push 0x43f014
lea ecx, [ebp - 0x314]
call fcn.00402ed0
mov byte [ebp - 4], 7
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
push dword [ebx + 0x18]
cmovae eax, dword [ebx + 8]
push eax
push ecx
lea ecx, [ebp - 0x314]
call fcn.0040df70
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2fc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2ec], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 8
lea esi, [ebp - 0x2fc]
cmp dword [ebp - 0x2e8], 0x10
mov eax, dword [ebp - 0x2a4]
cmovae esi, dword [ebp - 0x2fc]
mov dword [ebp - 0x29c], 0
test eax, eax
je 0x40839e
push eax
call fcn.0040f4dd
add esp, 4
mov dword [ebp - 0x2a4], 0
push esi
lea ecx, [ebp - 0x2d0]
call fcn.004028b0
mov byte [ebp - 4], 7
mov esi, eax
mov edx, dword [ebp - 0x2e8]
cmp edx, 0x10
jb 0x4083ea
mov ecx, dword [ebp - 0x2fc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4083e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x300]
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], 0
cmp edx, 0x10
jb 0x408443
mov ecx, dword [ebp - 0x314]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408439
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
test esi, esi
je 0x408480
mov edx, dword [ebp - 0x2a8]
xor eax, eax
cmp dword [ebp - 0x29c], eax
cmove edx, eax
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408460
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00402ed0
mov eax, dword [ebp - 0x1c]
cmp eax, 0xa
jbe 0x408480
cmp eax, 0x64
jb 0x408490
push 0xbb8
call dword [0x42e07c]
jmp 0x408220
push 0x148
xor esi, esi
lea eax, [ebp - 0x188]
push esi
push eax
call fcn.00411410
add esp, 0xc
mov dword [ebp - 0x17c], 0x439b34
mov dword [ebp - 0x184], 0x7a120
push 0x7a120
call fcn.0040f71d
add esp, 4
mov dword [ebp - 0x188], eax
push dword [ebp - 0x184]
push esi
push eax
call fcn.00411410
add esp, 0xc
mov dword [ebp - 0x164], 0xfde9
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], esi
cmp byte [ebp - 0x2d9], 0
mov byte [ebp - 4], 9
jne 0x408939
cmp byte [ebp - 0x2d1], 0
jne 0x408939
cmp byte [0x43ed10], 0
jne 0x408939
nop word [eax + eax]
mov eax, dword [0x43ee54]
inc esi
mov dword [ebp - 0x318], esi
mov byte [ebp - 0x2d1], 0x2e
cmp eax, dword [edi + 4]
jle 0x408594
push 0x43ee54
call fcn.0040f858
add esp, 4
cmp dword [0x43ee54], 0xffffffff
jne 0x408594
movaps xmm0, xmmword [0x439de0]
mov al, byte [ebp - 0x2d1]
push 0x42cce0
movups xmmword [0x43edc8], xmm0
mov byte [0x43edd8], al
call fcn.0040fb6a
add esp, 4
push 0x43ee54
call fcn.0040f80e
add esp, 4
mov al, byte [0x43edd8]
test al, al
je 0x4085bd
movups xmm0, xmmword [0x43edc8]
xor al, 0x2e
movaps xmm1, xmmword [0x439d70]
pxor xmm1, xmm0
mov byte [0x43edd8], al
movups xmmword [0x43edc8], xmm1
mov ecx, 0x43edc8
mov dword [ebp - 0x314], 0
mov dword [ebp - 0x304], 0
mov dword [ebp - 0x300], 0xf
mov byte [ebp - 0x314], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4085f0
sub ecx, edx
push ecx
push 0x43edc8
lea ecx, [ebp - 0x314]
call fcn.00402ed0
mov byte [ebp - 4], 0xc
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 0x10
push dword [ebx + 0x18]
cmovae eax, dword [ebx + 8]
push eax
push ecx
lea ecx, [ebp - 0x314]
call fcn.0040df70
mov dword [ebp - 0x2fc], 0
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2fc], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2ec], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x2fc]
cmp dword [ebp - 0x2e8], 0x10
mov eax, dword [ebp - 0x15c]
cmovae esi, dword [ebp - 0x2fc]
mov dword [ebp - 0x154], 0
test eax, eax
je 0x4086ae
push eax
call fcn.0040f4dd
add esp, 4
mov dword [ebp - 0x15c], 0
push esi
lea ecx, [ebp - 0x188]
call fcn.004028b0
mov byte [ebp - 4], 0xc
mov esi, eax
mov edx, dword [ebp - 0x2e8]
cmp edx, 0x10
jb 0x4086fa
mov ecx, dword [ebp - 0x2fc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4086f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x300]
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x2e8], 0xf
mov byte [ebp - 0x2fc], 0
cmp edx, 0x10
jb 0x408753
mov ecx, dword [ebp - 0x314]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408749
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
test esi, esi
je 0x408850
cmp dword [ebp - 0x160], 0
je 0x408850
mov edi, dword [ebp - 0x154]
test edi, edi
je 0x40884a
cmp edi, 0x16
jbe 0x40884a
xor ecx, ecx
mov eax, edi
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00416bde
mov ecx, dword [ebp - 0x154]
lea esi, [edi + 1]
add esp, 4
mov dword [ebp - 0x2e4], eax
test ecx, ecx
jne 0x4087ad
xor esi, esi
jmp 0x4087c2
cmp esi, ecx
cmova esi, ecx
push esi
push dword [ebp - 0x160]
push eax
call fcn.00410dd0
add esp, 0xc
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416bde
sub esp, 0x14
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.0040c610
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2e0]
push eax
mov edx, esi
call fcn.00403e90
mov ecx, dword [ebp - 0x2e0]
add esp, 4
mov edx, eax
call fcn.00403640
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40884a
xor edx, edx
mov ecx, esi
call fcn.00403c40
test eax, eax
jne 0x40884a
mov edx, 0xff
mov ecx, esi
call fcn.00403c40
test eax, eax
jne 0x40884a
mov edx, 0x439b38
mov ecx, esi
call fcn.00403c40
mov edi, eax
test edi, edi
jne 0x408864
mov edi, dword [ebp - 0x2d8]
mov esi, dword [ebp - 0x318]
cmp esi, 0xa
jl 0x408530
jmp 0x408939
xor esi, esi
mov byte [ebp - 0x2e4], 0
xor al, al
mov dword [ebp - 0x2e0], 1
mov dword [ebp - 0x2d8], eax
nop
cmp dword [ebx + 0x4c], 0x10
lea ecx, [ebx + 0x38]
lea eax, [ebx + 0x20]
cmovae ecx, dword [ebx + 0x38]
cmp dword [ebx + 0x34], 0x10
push ecx
cmovae eax, dword [ebx + 0x20]
push eax
call edi
mov edx, dword [ebp - 0x2e4]
add esp, 8
mov ecx, eax
mov eax, dword [ebp - 0x2d8]
test dl, dl
je 0x4088c1
test ecx, ecx
movzx eax, al
cmove eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2d8], eax
cmp esi, 0xa
jl 0x4088d9
cmp ecx, 1
movzx eax, al
cmovne eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2d8], eax
cmp esi, 0xf
jl 0x4088eb
cmp ecx, 1
jne 0x4088f6
mov byte [ebp - 0x2d8], cl
jmp 0x4088f6
mov dword [ebp - 0x2d8], eax
cmp esi, 5
jl 0x4088ff
test dl, dl
jne 0x4088ff
cmp ecx, 0xfffffffe
je 0x40892e
cmp ecx, 1
movzx edx, dl
mov eax, 1
cmove edx, eax
inc esi
push 0x7d0
mov dword [ebp - 0x2e4], edx
call dword [0x42e07c]
cmp byte [ebp - 0x2d8], 0
je 0x408880
jmp 0x408939
push 0x7d0
call dword [0x42e07c]
push dword [ebp - 0x188]
call fcn.0040f4dd
add esp, 4
push dword [ebp - 0x160]
call fcn.0040f4dd
add esp, 4
push dword [ebp - 0x15c]
call fcn.0040f4dd
mov esi, dword [0x42e21c]
add esp, 4
call esi
push dword [ebp - 0x2d0]
call fcn.0040f4dd
add esp, 4
push dword [ebp - 0x2a8]
call fcn.0040f4dd
add esp, 4
push dword [ebp - 0x2a4]
call fcn.0040f4dd
add esp, 4
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x4089cb
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4089c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
mov edx, dword [ebx + 0x1c]
cmp edx, 0x10
jb 0x4089ff
mov ecx, dword [ebx + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4089f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
mov edx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp edx, 0x10
jb 0x408a41
mov ecx, dword [ebx + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
mov edx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp edx, 0x10
jb 0x408a83
mov ecx, dword [ebx + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408a79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408aa1
push edx
push ecx
call fcn.0040f70f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040f4cf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00413e37
int3