Function at 0x10040210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a71b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [0x1006f014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
movzx eax, word [edi + 0xf6]
xor ecx, ecx
movaps xmm0, xmmword [0x10066f90]
push eax
movzx eax, word [edi + 0xf4]
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x2b6a60
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x12
jb 0x10040261
sub esp, 0x18
mov byte [ebp - 0x11], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1004028f
mov eax, dword [edx]
jmp 0x10040291
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x23], 0
jne 0x1004029e
xor ecx, ecx
jmp 0x100402ad
lea ecx, [ebp - 0x23]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100402a4
sub ecx, esi
push ecx
lea eax, [ebp - 0x23]
mov ecx, edx
push eax
call fcn.100054b0
lea eax, [ebp - 0x80]
push eax
call fcn.10009da0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x100402d6
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x100402f1
xor ecx, ecx
jmp 0x100402ff
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100402f6
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.100054b0
mov byte [ebp - 4], 1
mov esi, dword [edi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x1004032f
push 4
push esi
call ebx
test eax, eax
jne 0x1004032f
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100655b8]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10040341
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10005380
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x1004036c
inc eax
push eax
push dword [ebp - 0x80]
call fcn.10005380
movzx eax, word [edi + 0xf8]
test ax, ax
jne 0x10040406
mov cl, 0x3f
mov byte [ebp - 0xe], 0
mov al, 0x12
mov byte [ebp - 0x10], cl
xor al, cl
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xf], al
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
jne 0x100403a8
xor ecx, ecx
jmp 0x100403b9
lea ecx, [ebp - 0xf]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100403b0
sub ecx, edx
push ecx
lea eax, [ebp - 0xf]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100054b0
mov dword [ebp - 4], 2
mov esi, dword [edi + 0x54]
test esi, esi
je 0x100403e9
push 4
push esi
call ebx
test eax, eax
jne 0x100403e9
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100655b8]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10040532
inc eax
push eax
push dword [ebp - 0x3c]
jmp 0x1004052d
push eax
mov cl, 0x52
mov dword [ebp - 0x20], 0x313b0652
mov dword [ebp - 0x1c], 0x68263739
xor eax, eax
mov dword [ebp - 0x18], 0x36777172
mov byte [ebp - 0x14], 0
xor byte [ebp + eax - 0x1f], cl
inc eax
cmp eax, 0xb
jae 0x10040433
mov cl, byte [ebp - 0x20]
jmp 0x10040424
sub esp, 0x18
mov byte [ebp - 0x14], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10040454
mov eax, dword [edx]
jmp 0x10040456
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x1f], 0
jne 0x10040463
xor ecx, ecx
jmp 0x10040479
lea ecx, [ebp - 0x1f]
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040470
sub ecx, esi
push ecx
lea eax, [ebp - 0x1f]
mov ecx, edx
push eax
call fcn.100054b0
lea eax, [ebp - 0x80]
push eax
call fcn.10009da0
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 3
cmp dword [edx + 0x14], 0x10
jb 0x100404a2
mov edx, dword [edx]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp byte [edx], 0
jne 0x100404bd
xor ecx, ecx
jmp 0x100404cb
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100404c2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.100054b0
mov byte [ebp - 4], 4
mov esi, dword [edi + 0x54]
test esi, esi
je 0x100404f5
push 4
push esi
call ebx
test eax, eax
jne 0x100404f5
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call dword [0x100655b8]
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x10040507
inc eax
push eax
push dword [ebp - 0x3c]
call fcn.10005380
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x3c], 0
cmp eax, 0x10
jb 0x10040532
inc eax
push eax
push dword [ebp - 0x80]
call fcn.10005380
movzx eax, word [edi + 0xf4]
sub esp, 8
movss xmm1, dword [0x10066790]
xor ecx, ecx
mov byte [ebp - 0x40], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
movaps xmm0, xmmword [0x10067770]
movups xmmword [ebp - 0x50], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0xf
jb 0x10040568
sub esp, 0x18
mov byte [ebp - 0x40], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x10040596
mov eax, dword [edx]
jmp 0x10040598
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x4f], 0
jne 0x100405a5
xor ecx, ecx
jmp 0x100405b9
lea ecx, [ebp - 0x4f]
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100405b0
sub ecx, esi
push ecx
lea eax, [ebp - 0x4f]
mov ecx, edx
push eax
call fcn.100054b0
lea eax, [ebp - 0x98]
push eax
call fcn.10009da0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 5
cmp dword [edx + 0x14], 0x10
jb 0x100405e5
mov edx, dword [edx]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp byte [edx], 0
jne 0x10040600
xor ecx, ecx
jmp 0x1004060e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040605
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.100054b0
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x58]
test esi, esi
je 0x10040638
push 4
push esi
call ebx
test eax, eax
jne 0x10040638
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100655b8]
mov eax, dword [ebp - 0x54]
cmp eax, 0x10
jb 0x1004064a
inc eax
push eax
push dword [ebp - 0x68]
call fcn.10005380
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x54], 0xf
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x68], 0
cmp eax, 0x10
jb 0x10040674
inc eax
push eax
push dword [ebp - 0x98]
call fcn.10005380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret