Function at 0x10031f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10055014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x10031fb0
xor cl, cl
jmp 0x10031fb6
mov eax, dword [edx + 0x10]
mov cl, byte [esi + eax]
lea eax, [esi + 1]
mov dword [edx + 8], eax
movzx eax, cl
sub eax, 0
je 0x100320fc
sub eax, 1
jne 0x100321bf
mov cl, 0x76
mov dword [ebp - 0x3c], 0x2193a76
mov dword [ebp - 0x38], 0xf041302
mov dword [ebp - 0x34], 0x18130033
mov word [ebp - 0x30], 2
nop
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x10031fff
mov cl, byte [ebp - 0x3c]
jmp 0x10031ff0
cmp byte [ebp - 0x3b], 0
mov byte [ebp - 0x2f], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x1003201f
xor ecx, ecx
jmp 0x1003202e
lea ecx, [ebp - 0x3b]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032025
sub ecx, edx
push ecx
lea eax, [ebp - 0x3b]
push eax
lea ecx, [ebp - 0x70]
call fcn.100027c0
mov dword [ebp - 4], 3
xor ecx, ecx
movaps xmm0, xmmword [0x1004daa0]
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x28716464
mov dword [ebp - 0x44], 0x66616762
mov dword [ebp - 0x40], 0x266c6d
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x1a
jb 0x10032064
cmp byte [ebp - 0x57], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x10032091
xor ecx, ecx
jmp 0x100320a0
lea ecx, [ebp - 0x57]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032097
sub ecx, edx
push ecx
lea eax, [ebp - 0x57]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100027c0
push 0
push ecx
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.10025e00
mov eax, dword [ebp - 0x18]
add esp, 8
cmp eax, 0x10
jb 0x100320d4
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100026c0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x100321bf
inc eax
push eax
push dword [ebp - 0x70]
jmp 0x100321ba
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
mov ecx, edx
call fcn.1000bd50
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100321ad
cmp eax, 0xff
ja 0x100321ad
mov cl, 0x64
mov dword [ebp - 0x3c], 0x100b2864
mov dword [ebp - 0x38], 0x1d160110
xor eax, eax
mov dword [ebp - 0x34], 0xa011221
mov word [ebp - 0x30], 0x10
xor byte [ebp + eax - 0x3b], cl
inc eax
cmp eax, 0xc
jae 0x10032160
mov cl, byte [ebp - 0x3c]
jmp 0x10032151
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], 0
push eax
lea ecx, [ebp - 0x54]
call fcn.100028c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.100028c0
push 0
push ecx
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
call fcn.10025e00
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.100022a0
lea ecx, [ebp - 0x54]
call fcn.100022a0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x100321bf
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100026c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003ce35
mov esp, ebp
pop ebp
ret 4