Function at 0x1000a040
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 0x1009ca25
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
push esi
push edi
mov eax, dword [0x100b7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x34], edx
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0x14]
mov esi, dword [edx + 0x10]
sub eax, esi
mov dword [ebp - 0x38], ecx
lea edi, [ecx + 1]
cmp edi, eax
jbe 0x1000a099
xor cl, cl
jmp 0x1000a09c
mov cl, byte [esi + ecx]
mov eax, dword [ebp - 0x38]
mov dword [edx + 8], edi
add eax, 5
mov edi, dword [edx + 0x14]
sub edi, esi
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x3c], edi
cmp eax, edi
jbe 0x1000a0b8
xor edi, edi
jmp 0x1000a0bf
mov edi, dword [ebp - 0x38]
mov edi, dword [esi + edi + 1]
mov dword [edx + 8], eax
lea edx, [eax + 4]
mov dword [ebp - 0x38], edx
cmp edx, dword [ebp - 0x3c]
jbe 0x1000a0d1
xor esi, esi
jmp 0x1000a0d4
mov esi, dword [esi + eax]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov dword [edx + 8], eax
mov eax, dword [0x100ba9d8]
test eax, eax
je 0x1000a161
cmp cl, 1
je 0x1000a0f0
cmp cl, 2
jne 0x1000a12c
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x1000a105
push esi
call fcn.10071cd0
mov eax, dword [0x100ba9d8]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x1000a117
push esi
call fcn.1003c120
mov eax, dword [0x100ba9d8]
mov ecx, dword [0x100ba9dc]
test ecx, ecx
je 0x1000a132
push esi
call fcn.10020370
mov eax, dword [0x100ba9d8]
mov ecx, dword [0x100ba9dc]
mov dl, byte [ebp - 0x11]
cmp dl, 3
je 0x1000a13f
cmp dl, 4
jne 0x1000a161
mov eax, dword [eax + 0x94]
test eax, eax
je 0x1000a157
push esi
mov ecx, eax
call fcn.10071e70
mov ecx, dword [0x100ba9dc]
test ecx, ecx
je 0x1000a161
push esi
call fcn.10020420
movzx eax, byte [ebp - 0x11]
dec eax
cmp eax, 3
ja case.default.0x1000a16f
jmp dword [eax*4 + 0x1000a5b8]
movaps xmm0, xmmword [0x100aec50]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x4b1f030c
mov dword [ebp - 0x1c], 0x3180a28
mov word [ebp - 0x18], 0x45
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x18
jb 0x1000a198
sub esp, 0x18
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a1c8
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10002540
lea eax, [ebp - 0x54]
push eax
call fcn.1000ae50
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0xf
jbe 0x1000a1fa
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a214
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10002540
mov edx, 0xff6565ff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.1000a5d0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1000a26c
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a262
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a5b3
push ecx
push edx
call fcn.1007fa46
add esp, 8
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe case.default.0x1000a16f
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a595
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a5b3
jmp 0x1000a595
movaps xmm0, xmmword [0x100af6b0]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x41f0d2f
mov word [ebp - 0x18], 0x42
nop
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x14
jb 0x1000a2c0
sub esp, 0x18
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a2f0
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.10002540
lea eax, [ebp - 0x54]
push eax
call fcn.1000ae50
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x1000a322
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a340
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10002540
mov edx, 0xffff3b3b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.1000a5d0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1000a26c
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a262
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a5b3
jmp 0x1000a262
movaps xmm0, xmmword [str.6dSUS__SR]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x575a5774
mov dword [ebp - 0x1c], 0x18535558
mov byte [ebp - 0x18], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x30]
xor byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x17
jb 0x1000a3c0
sub esp, 0x18
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a3f0
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10002540
lea eax, [ebp - 0x54]
push eax
call fcn.1000ae50
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 4
cmp dword [edx + 0x14], 0xf
jbe 0x1000a422
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a440
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10002540
mov edx, 0xff6565ff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x30]
call fcn.1000a5d0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1000a26c
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a262
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a5b3
jmp 0x1000a262
movaps xmm0, xmmword [0x100afc30]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x216a6c61
mov byte [ebp - 0x18], 0
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x13
jb 0x1000a4b4
sub esp, 0x18
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a4e4
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.10002540
lea eax, [ebp - 0x6c]
push eax
call fcn.1000ae50
add esp, 0x20
mov edx, eax
mov dword [ebp - 4], 6
cmp dword [edx + 0x14], 0xf
jbe 0x1000a516
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a530
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10002540
mov edx, 0xffff3b3b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.1000a5d0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x1000a584
sub byte [ebx - 0x74be2fab], cl
ret 0xf981
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a57a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000a5b3
push ecx
push edx
call fcn.1007fa46
add esp, 8
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe case.default.0x1000a16f
mov edx, dword [ebp - 0x6c]
inc ecx
jmp 0x1000a27c
push ecx
push edx
call fcn.1007fa46
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10084bdf
jbe 0x1000a55b
add byte [eax], dl
mov dword [0x9b1000a2], eax
mov dword [-1533341696], eax
add byte [eax], dl
int3