Function at 0x10031dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093a25
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x100bb084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x158]
cmp eax, dword [edi + 0x15c]
je 0x100327aa
mov ecx, dword [edi + 0x15c]
sub ecx, eax
mov dword [ebp - 0x88], 0
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1003232e
mov ebx, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov eax, dword [edi + 0x158]
cmp dword [esi + eax + 0x18], ebx
je 0x10031e82
inc ecx
add esi, 0x68
mov dword [ebp - 0x88], ecx
mov ecx, dword [edi + 0x15c]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [ebp - 0x88]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x10031e44
jmp 0x1003232e
imul edx, ecx, 0x68
mov ebx, 4
mov ecx, eax
mov al, byte [ebp + 0xc]
mov dword [ebp - 0x98], edx
mov byte [ecx + edx + 0x65], al
lea esi, [edx + 0x58]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ecx, dword [edi + 0x158]
lea edx, [edx + 2]
movzx eax, word [eax + edx - 2]
lea esi, [esi + 2]
mov word [ecx + esi - 0xa], ax
mov ecx, dword [edi + 0x158]
movzx eax, word [edx - 2]
mov word [esi + ecx - 2], ax
mov eax, dword [ebp + 0x10]
sub ebx, 1
jne 0x10031eb0
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x140]
jne 0x1003232e
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea eax, [edi + 0xb4]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x84]
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 4
nop
mov esi, dword [eax]
push 4
push esi
call ebx
test eax, eax
jne 0x10032311
push 4
add esi, 0xe5
push esi
call ebx
test eax, eax
jne 0x10032311
mov al, byte [esi]
test al, al
je 0x10032311
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x98]
cmp byte [eax + ecx + 0x65], 2
jne 0x10032044
movaps xmm0, xmmword [0x100af2f0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x16100d18
mov word [ebp - 0x40], 0x2417
mov byte [ebp - 0x3e], 0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x15
jb 0x10031f81
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3e], 0
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
jne 0x10031fb1
xor ecx, ecx
jmp 0x10031fc0
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031fb7
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x84]
call fcn.10004a40
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x10031ff6
push 4
push esi
call ebx
test eax, eax
jne 0x10031ff6
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x10032018
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.100048f0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x10032035
push 4
push esi
call ebx
test eax, eax
jne 0x10032035
push 0xff5cb9fe
mov ecx, esi
call dword [0x100ad8fc]
mov dword [ebp - 0x94], 0xff808080
jmp 0x1003211e
mov cl, 0x37
mov dword [ebp - 0x38], 0x59626c37
mov dword [ebp - 0x34], 0x17455253
xor eax, eax
mov dword [ebp - 0x30], 0x6a4e5640
mov byte [ebp - 0x2c], 0
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xb
jae 0x10032070
mov cl, byte [ebp - 0x38]
jmp 0x10032061
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x70], 0xf
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
jne 0x10032093
xor ecx, ecx
jmp 0x100320a9
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100320a0
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x84]
call fcn.10004a40
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x100320df
push 4
push esi
call ebx
test eax, eax
jne 0x100320df
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x10032101
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.100048f0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003211e
push 4
push esi
call ebx
test eax, eax
jne 0x1003211e
push 0xffc4fc03
mov ecx, esi
call dword [0x100ad8fc]
mov esi, dword [ebp - 0x3c]
mov esi, dword [esi - 4]
test esi, esi
je 0x1003213f
push 4
push esi
call ebx
test eax, eax
jne 0x1003213f
push dword [ebp - 0x94]
mov ecx, esi
call dword [0x100ad8fc]
imul edx, dword [ebp - 0x88], 0x34
mov ebx, dword [ebp - 0x8c]
mov eax, dword [edi + 0x158]
lea ecx, [edx + ebx]
movzx eax, word [eax + ecx*2 + 0x58]
lea ecx, [edx + ebx]
push eax
mov eax, dword [edi + 0x158]
mov bh, 0x38
mov dword [ebp - 0x90], ecx
mov dl, 0x18
mov bl, 0x17
xor bl, bh
movzx eax, word [eax + ecx*2 + 0x50]
mov cl, 0x5c
push eax
mov dh, cl
mov byte [ebp - 0x60], 0
mov ah, dl
mov byte [ebp - 0x68], bh
xor dl, bh
mov byte [ebp - 0x64], bl
mov byte [ebp - 0x65], dl
xor dh, bh
mov byte [ebp - 0x61], dh
mov al, 0x1d
sub esp, 0x18
mov byte [ebp - 0x60], 0
mov edx, esp
mov ch, al
xor al, bh
xor cl, bh
mov byte [ebp - 0x67], al
xor ah, bh
mov byte [ebp - 0x66], cl
xor ch, bh
mov byte [ebp - 0x63], ah
mov byte [ebp - 0x62], ch
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x100321d9
mov eax, dword [edx]
jmp 0x100321db
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x67], 0
jne 0x100321e8
xor ecx, ecx
jmp 0x100321f9
lea ecx, [ebp - 0x67]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100321f0
sub ecx, esi
push ecx
lea eax, [ebp - 0x67]
mov ecx, edx
push eax
call fcn.10004a40
lea eax, [ebp - 0x84]
push eax
call fcn.100043b0
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x10032225
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x10032240
xor ecx, ecx
jmp 0x1003224e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032245
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.10004a40
mov ebx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
mov esi, dword [ebx]
test esi, esi
je 0x1003227e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003227e
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10032293
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.100048f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x100322c7
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.100048f0
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x90]
mov ebx, dword [ebx + 4]
movzx esi, word [eax + ecx*2 + 0x50]
test ebx, ebx
je 0x1003230b
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003230b
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov ecx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x100ad8e4]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [ebp - 0x58]
inc dword [ebp - 0x8c]
add eax, 4
add dword [ebp - 0x3c], 0x14
sub dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], eax
jne 0x10031f20
mov eax, dword [edi + 0x144]
shl eax, 2
mov dword [ebp - 0x90], eax
lea esi, [eax - 4]
mov dword [ebp - 0x58], esi
cmp esi, eax
jge 0x100327aa
imul ebx, esi, 0x68
lea eax, [edi + 0xc]
mov ecx, dword [edi + 0x15c]
add eax, 0x18
sub ecx, dword [edi + 0x158]
mov dword [ebp - 0x3c], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp esi, eax
jg 0x100327aa
mov eax, dword [edi + 0x158]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
add eax, ebx
mov dword [ebp - 0x5c], 0xffc4fc03
push 0
push eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100045d0
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x158]
cmp byte [ebx + eax + 0x65], 2
jne 0x10032420
movaps xmm0, xmmword [0x100afbe0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x6f726775
mov dword [ebp - 0x40], 0x5b6869
nop word [eax + eax]
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x100323e0
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
jne 0x100323fb
xor ecx, ecx
jmp 0x1003240a
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032401
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x28]
call fcn.10008cf0
mov dword [ebp - 0x5c], 0xff5cb9fe
jmp 0x10032479
mov cl, 0x41
mov dword [ebp - 0x38], 0x141a6141
mov dword [ebp - 0x34], 0x3324252f
xor eax, eax
mov dword [ebp - 0x30], 0x38203661
mov word [ebp - 0x2c], 0x1c
nop
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xc
jae 0x1003244f
mov cl, byte [ebp - 0x38]
jmp 0x10032440
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2b], 0
jne 0x1003245d
xor ecx, ecx
jmp 0x1003246c
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032463
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x28]
call fcn.10008cf0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x70], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x74], 0
mov byte [ebp - 0x84], 0
cmp byte [edx], 0
jne 0x100324a2
xor ecx, ecx
jmp 0x100324b0
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100324a7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x84]
call fcn.10004a40
mov esi, dword [ebp - 0x3c]
mov byte [ebp - 4], 5
mov esi, dword [esi]
test esi, esi
je 0x100324e6
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100324e6
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x70]
cmp eax, 0x10
jb 0x10032505
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.100048f0
mov eax, dword [ebp - 0x3c]
mov esi, dword [eax]
test esi, esi
je 0x10032526
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10032526
push dword [ebp - 0x5c]
mov ecx, esi
call dword [0x100ad8fc]
mov eax, dword [edi + 0x158]
xor ecx, ecx
movaps xmm0, xmmword [0x100aee90]
movzx eax, byte [eax + ebx + 0x64]
push eax
mov eax, dword [edi + 0x158]
movzx eax, byte [ebx + eax + 0x63]
push eax
movups xmmword [ebp - 0x6c], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0xe
jb 0x10032550
sub esp, 0x18
mov byte [ebp - 0x5d], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003258c
mov eax, dword [edx]
jmp 0x1003258e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x6b], 0
jne 0x1003259b
xor ecx, ecx
jmp 0x100325aa
lea ecx, [ebp - 0x6b]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100325a1
sub ecx, esi
push ecx
lea eax, [ebp - 0x6b]
mov ecx, edx
push eax
call fcn.10004a40
lea eax, [ebp - 0xcc]
push eax
call fcn.100043b0
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0x10
jb 0x100325d3
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x100325ee
xor ecx, ecx
jmp 0x100325fc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100325f3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.10004a40
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
mov esi, dword [eax - 4]
test esi, esi
je 0x1003262d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003262d
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x10032642
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.100048f0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x10032676
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.100048f0
mov eax, dword [edi + 0x158]
lea ecx, [ebp - 0xcc]
mov dx, word [eax + ebx + 0x60]
call fcn.1002be00
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0x10
jb 0x1003269a
mov edx, dword [edx]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp byte [edx], 0
jne 0x100326be
xor ecx, ecx
jmp 0x100326cc
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100326c3
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb4]
call fcn.10004a40
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 9
mov esi, dword [eax + 8]
test esi, esi
je 0x10032703
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10032703
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
call dword [0x100ad8f4]
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x10032721
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.100048f0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp eax, 0x10
jb 0x1003275a
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.100048f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xb8], 0xf
mov dword [ebp - 0xbc], 0
mov byte [ebp - 0xcc], 0
cmp eax, 0x10
jb 0x10032791
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.100048f0
mov esi, dword [ebp - 0x58]
add ebx, 0x68
mov eax, dword [ebp - 0x3c]
inc esi
mov dword [ebp - 0x58], esi
cmp esi, dword [ebp - 0x90]
jl 0x10032351
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005baa0
mov esp, ebp
pop ebp
ret 0x10