Function at 0x10040a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d891d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
mov dword [ebp - 0x78], 0
mov eax, 0x101d30f8
mov dword [ebp - 0x1c], eax
mov eax, dword [str.default]
mov dword [0x101d30f8], eax
movzx eax, word [0x10101140]
mov word [0x101d30fc], ax
mov al, byte [0x10101142]
vxorpd xmm0, xmm0, xmm0
vmovlpd qword [0x101d3100], xmm0
mov dword [0x101d3108], 7
mov dword [0x101d310c], 0xf
mov byte [0x101d30fe], al
mov byte [0x101d30ff], 0
mov dword [ebp - 4], 0
vmovdqu xmmword [0x101d3110], xmm0
mov dword [0x101d3120], 0
mov dword [0x101d3124], 0xf
mov byte [0x101d3110], 0
movzx eax, word [0x10100238]
vmovdqu xmmword [0x101d3128], xmm0
mov word [0x101d3128], ax
mov al, byte [0x1010023a]
mov dword [0x101d3138], 3
mov dword [0x101d313c], 0xf
mov byte [0x101d312a], al
mov byte [0x101d312b], 0
mov dword [ebp - 0x82], 0x45455942
mov dword [ebp - 0x7e], 0x56434a64
vpmovsxbd ymm1, qword [ebp - 0x82]
vpxor ymm0, ymm1, ymmword [0x1014fce0]
vpshufb ymm0, ymm0, ymmword [0x1014fc40]
vpermq ymm0, ymm0, 0xd8
vpshufb ymm0, ymm0, ymmword [0x10150520]
vextracti128 xmm0, ymm0, 0
mov word [ebp - 0x7a], 0
vmovq qword [ebp - 0x82], xmm0
push ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
push 0x104
push dword [ebp - 0x1c]
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [ebp - 0x5c], xmm0
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov dword [ebp - 0x78], 2
push 0x104
vzeroupper
call fcn.1002bfc0
push esi
push edi
nop word [eax + eax]
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
cmova eax, dword [ebp - 0x5c]
push eax
push ecx
mov dword [ebp - 0x14], ecx
call fcn.100d4b90
mov ecx, dword [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x90], ecx
cmp esi, ecx
ja 0x10040c06
cmp dword [ebp - 0x48], 7
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], esi
mov ecx, esi
jbe 0x10040bfe
mov eax, dword [ebp - 0x5c]
xor edi, edi
mov word [eax + ecx*2], di
jmp 0x10040c67
mov edi, dword [ebp - 0x48]
mov edx, esi
mov eax, edi
sub edx, ecx
sub eax, ecx
cmp edx, eax
ja 0x10040c53
cmp edi, 7
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x5c]
cmova eax, dword [ebp - 0x5c]
mov dword [ebp - 0x94], eax
lea edi, [eax + ecx*2]
test edx, edx
je 0x10040c42
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x90]
lea eax, [edx + ecx]
mov ecx, dword [ebp - 0x94]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x10040c61
push ecx
push edx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x5c]
push edx
call fcn.1002bfc0
mov edx, dword [ebp - 0x8c]
cmp esi, dword [ebp - 0x14]
jae 0x10040bc0
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0x1015d13c
mov dword [ebp - 0x78], 1
test edx, edx
jne 0x100411cf
push ecx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10057580
mov dword [ebp - 0x78], 5
lea eax, [ebp - 0x82]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x74]
call fcn.1002bb40
mov esi, 0x101d30f8
add esi, 0x18
vmovdqu xmm0, xmmword [eax]
vmovq xmm1, qword [eax + 0x10]
vmovdqu xmmword [ebp - 0x88], xmm0
vmovdqu xmmword [ebp - 0xac], xmm0
vmovq qword [ebp - 0x18], xmm1
vmovq qword [ebp - 0x9c], xmm1
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xac]
cmp esi, eax
je 0x10040d68
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x10040d40
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10040d29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040dc8
mov eax, edx
push ecx
push eax
call fcn.100d5584
vmovdqu xmm0, xmmword [ebp - 0x88]
vmovq xmm1, qword [ebp - 0x18]
add esp, 8
mov dword [esi + 0x10], 0
mov ecx, 0xf
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
vmovdqu xmmword [esi], xmm0
vmovq qword [esi + 0x10], xmm1
mov byte [ebp - 0xac], 0
jmp 0x10040d6e
mov ecx, dword [ebp - 0x98]
cmp ecx, 0xf
jbe 0x10040d9e
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040d94
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040dc8
push ecx
push edx
call fcn.100d5584
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x10040dd8
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040dce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040dce
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d5584
add esp, 8
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
mov byte [ebp - 4], 2
call fcn.1002bc20
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x74]
push dword [ebp - 0x14]
mov edx, esi
call fcn.1002c6e0
add esp, 4
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 6
call fcn.1002a410
lea ecx, [ebp - 0x74]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 2
call fcn.1002bc20
cmp byte [ebp - 0xd], 0
jne 0x10040e57
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x74]
push dword [ebp - 0x14]
mov edx, esi
call fcn.1002c6e0
add esp, 4
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 7
call fcn.1003cfd0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.1002bc20
mov dword [ebp - 0x23], 0x607e5353
xor ecx, ecx
mov word [ebp - 0x1f], 0x76
mov byte [ebp - 0x1d], 1
nop word [eax + eax]
mov al, cl
add al, 0xf
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 5
jb 0x10040e70
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x23]
mov byte [ebp - 0x1d], 0
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040e90
sub ecx, edi
mov edi, 0x7fffffff
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x100411d7
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x10040eb4
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x23]
push ecx
push edx
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100176d0
mov byte [ebp - 4], 8
lea edx, [ebp - 0x74]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x14]
call fcn.1002c6e0
add esp, 4
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 9
call fcn.1002a410
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0xd], al
call fcn.1002bc20
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x10040f31
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040f27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040f27
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d5584
add esp, 8
cmp byte [ebp - 0xd], 0
jne 0x10041008
mov dword [ebp - 0x2a], 0x607e5353
xor ecx, ecx
mov word [ebp - 0x26], 0x76
mov byte [ebp - 0x24], 1
nop
mov al, cl
add al, 0xf
xor byte [ebp + ecx - 0x2a], al
inc ecx
cmp ecx, 5
jb 0x10040f50
mov edx, dword [esi + 0x10]
lea ecx, [ebp - 0x2a]
lea eax, [ecx + 1]
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x14], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040f70
sub ecx, dword [ebp - 0x14]
mov eax, edi
sub eax, edx
cmp eax, ecx
jb 0x100411dc
cmp dword [esi + 0x14], 0xf
jbe 0x10040f8e
mov esi, dword [esi]
push ecx
lea eax, [ebp - 0x2a]
push eax
push edx
push esi
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100176d0
mov byte [ebp - 4], 0xa
lea edx, [ebp - 0x74]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x14]
call fcn.1002c6e0
add esp, 4
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xb
call fcn.1003cfd0
lea ecx, [ebp - 0x5c]
call fcn.1002bc20
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x10041008
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040ffe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040ffe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d5584
add esp, 8
mov dword [ebp - 0x36], 0x55415242
xor ecx, ecx
mov dword [ebp - 0x32], 0x444d5147
mov dword [ebp - 0x2e], 0x100544a
nop
mov al, cl
add al, 0x1e
xor byte [ebp + ecx - 0x36], al
inc ecx
cmp ecx, 0xa
jb 0x10041020
mov edx, 0x101d30f8
mov byte [ebp - 0x2b], 0
add edx, 0x18
lea ecx, [ebp - 0x36]
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov esi, dword [edx + 0x10]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041046
sub ecx, dword [ebp - 0x14]
mov eax, edi
sub eax, esi
cmp eax, ecx
jb 0x100411e1
cmp dword [edx + 0x14], 0xf
jbe 0x10041064
mov edx, dword [edx]
push ecx
lea eax, [ebp - 0x36]
push eax
push esi
push edx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100176d0
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x74]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x14]
call fcn.1002c6e0
add esp, 4
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xd
call fcn.1002a410
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0xd], al
call fcn.1002bc20
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x100410e1
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100410d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100410d7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d5584
add esp, 8
cmp byte [ebp - 0xd], 0
jne 0x100411ba
mov dword [ebp - 0x42], 0x55415242
xor ecx, ecx
mov dword [ebp - 0x3e], 0x444d5147
mov dword [ebp - 0x3a], 0x100544a
mov al, cl
add al, 0x1e
xor byte [ebp + ecx - 0x42], al
inc ecx
cmp ecx, 0xa
jb 0x10041102
mov edx, 0x101d30f8
mov byte [ebp - 0x37], 0
add edx, 0x18
lea ecx, [ebp - 0x42]
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov esi, dword [edx + 0x10]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10041128
sub ecx, dword [ebp - 0x14]
sub edi, esi
cmp edi, ecx
jb 0x100411e6
cmp dword [edx + 0x14], 0xf
jbe 0x10041144
mov edx, dword [edx]
push ecx
lea eax, [ebp - 0x42]
push eax
push esi
push edx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x74]
call fcn.100176d0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x74]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x14]
call fcn.1002c6e0
add esp, 4
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xf
call fcn.1003cfd0
lea ecx, [ebp - 0x5c]
call fcn.1002bc20
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x100411ba
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100411b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100411b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100d5584
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, 0x101d30f8
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x18]
call fcn.1003cf70
call fcn.1000ba00
call fcn.1000ba00
call fcn.1000ba00
call fcn.1000ba00
int3