Function at 0x10038630
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 0x1008b81a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x100a9040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x15c]
mov esi, dword [edi + 0x158]
cmp esi, ecx
je 0x10039091
sub ecx, esi
mov dword [ebp - 0x30], 0
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x100386c3
mov edx, dword [ebx + 8]
lea eax, [esi + 0x18]
nop dword [eax + eax]
cmp dword [eax], edx
je 0x10038799
inc dword [ebp - 0x30]
add eax, 0x68
cmp dword [ebp - 0x30], ecx
jl 0x100386b0
mov ecx, dword [edi + 0x144]
shl ecx, 2
mov dword [ebp - 0x6c], ecx
lea eax, [ecx - 4]
mov dword [ebp - 0x4c], eax
cmp eax, ecx
jge 0x10039091
imul eax, eax, 0x68
mov dword [ebp - 0x30], eax
lea eax, [edi + 0xc]
nop word [eax + eax]
mov ecx, dword [edi + 0x15c]
add eax, 0x18
mov esi, dword [edi + 0x158]
sub ecx, esi
mov dword [ebp - 0x48], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x4c], eax
jg 0x10039091
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x80], 0xffc4fc03
push eax
call fcn.10004350
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x158]
cmp byte [eax + ecx + 0x65], 2
jne 0x10038c94
movaps xmm0, xmmword [0x100a0fe0]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x38253022
mov dword [ebp - 0x54], 0xc3f3e
nop word [eax + eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x16
jb 0x10038770
lea eax, [ebp - 0x67]
mov byte [ebp - 0x51], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008320
mov dword [ebp - 0x80], 0xff5cb9fe
jmp 0x10038cd2
imul ecx, dword [ebp - 0x30], 0x68
mov al, byte [ebx + 0xc]
mov edx, dword [ebx + 0x14]
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x80], ecx
mov byte [ecx + esi + 0x65], al
lea esi, [ecx + 0x58]
mov eax, dword [ebx + 0x10]
sub eax, edx
mov dword [ebx + 0x10], eax
nop dword [eax]
sub dword [ebp - 0x4c], 1
lea edx, [edx + 2]
movzx ecx, word [eax + edx - 2]
lea esi, [esi + 2]
mov eax, dword [edi + 0x158]
mov word [esi + eax - 0xa], cx
mov eax, dword [edi + 0x158]
movzx ecx, word [edx - 2]
mov word [esi + eax - 2], cx
mov eax, dword [ebx + 0x10]
jne 0x100387c0
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 0x140]
jne 0x100386c3
xor al, al
mov dword [ebp - 0x4c], 0xffffffff
mov byte [ebp - 0x31], al
nop dword [eax]
movzx eax, al
push 4
mov dword [ebp - 0x48], eax
mov esi, dword [edi + eax*4 + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038c7f
push 4
add esi, 0xe5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038c7f
cmp byte [esi], al
je 0x10038c7f
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x80]
cmp byte [eax + ecx + 0x65], 2
jne 0x10038966
movaps xmm0, xmmword [0x100a0ed0]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x2d2b3623
mov word [ebp - 0x54], 0x1f2c
mov byte [ebp - 0x52], 0
nop
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x15
jb 0x10038880
xorps xmm0, xmm0
mov byte [ebp - 0x52], 0
lea ecx, [ebp - 0x67]
mov dword [ebp - 0x88], 0
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100388b5
sub ecx, edx
lea eax, [ebp - 0x67]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.100048a0
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x100388f8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100388f8
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x1009f658]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10038939
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003892f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003895a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003895a
push 0xff5cb9fe
mov ecx, esi
call dword [0x1009f660]
mov dword [ebp - 0x4c], 0xff808080
jmp 0x10038a65
mov cl, 0x58
mov dword [ebp - 0x44], 0x360d0358
mov dword [ebp - 0x40], 0x782a3d3c
xor eax, eax
mov dword [ebp - 0x3c], 0x521392f
mov byte [ebp - 0x38], 0
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xb
jae 0x10038992
mov cl, byte [ebp - 0x44]
jmp 0x10038983
xorps xmm0, xmm0
mov byte [ebp - 0x38], 0
lea ecx, [ebp - 0x43]
mov dword [ebp - 0x88], 0
movups xmmword [ebp - 0x98], xmm0
mov dword [ebp - 0x84], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100389c0
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.100048a0
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x10038a03
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038a03
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x1009f658]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10038a44
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038a3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x10038a65
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038a65
push 0xffc4fc03
mov ecx, esi
call dword [0x1009f660]
mov eax, dword [ebp - 0x48]
lea eax, [eax + eax*4]
mov esi, dword [edi + eax*4 + 0xb0]
mov dword [ebp - 0x6c], eax
test esi, esi
je 0x10038a91
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038a91
push dword [ebp - 0x4c]
mov ecx, esi
call dword [0x1009f660]
imul edx, dword [ebp - 0x30], 0x34
xorps xmm0, xmm0
mov eax, dword [edi + 0x158]
mov byte [ebp - 0x78], 0x28
mov byte [ebp - 0x70], 0
mov byte [ebp - 0x70], 0
add edx, dword [ebp - 0x48]
mov dword [ebp - 0x9c], edx
movzx ecx, word [eax + edx*2 + 0x58]
movzx eax, word [eax + edx*2 + 0x50]
mov dl, 8
push ecx
push eax
mov al, 0xd
mov cl, 0x4c
mov dh, al
mov byte [ebp - 0x4d], cl
xor al, byte [ebp - 0x78]
mov ch, dl
mov byte [ebp - 0x77], al
mov ah, 7
mov al, byte [ebp - 0x78]
xor cl, al
xor dl, al
xor ch, al
mov byte [ebp - 0x75], dl
xor dh, al
mov byte [ebp - 0x76], cl
xor ah, al
mov byte [ebp - 0x72], dh
mov al, byte [ebp - 0x4d]
xor al, byte [ebp - 0x78]
sub esp, 0x18
mov edx, esp
mov byte [ebp - 0x73], ch
lea ecx, [ebp - 0x77]
mov byte [ebp - 0x74], ah
mov byte [ebp - 0x71], al
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 0x10038b15
sub ecx, esi
lea eax, [ebp - 0x77]
push ecx
push eax
mov ecx, edx
call fcn.100048a0
lea eax, [ebp - 0x98]
push eax
call fcn.10004440
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x10038b4a
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038b64
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.100048a0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 3
lea eax, [eax + eax*4]
mov esi, dword [edi + eax*4 + 0xb4]
test esi, esi
je 0x10038ba5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038ba5
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x1009f658]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x10038bdd
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038bd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x10038c30
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038c26
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x9c]
movzx esi, word [eax + ecx*2 + 0x50]
mov eax, dword [ebp - 0x6c]
mov eax, dword [edi + eax*4 + 0xb8]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x10038c7f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038c7f
mov ecx, dword [ebp - 0x6c]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x1009f648]
mov al, byte [ebp - 0x31]
inc al
mov byte [ebp - 0x31], al
cmp al, 4
jb 0x10038810
jmp 0x100386c3
mov cl, 0x61
mov dword [ebp - 0x44], 0x343a4161
mov dword [ebp - 0x40], 0x1304050f
xor eax, eax
mov dword [ebp - 0x3c], 0x18001641
mov word [ebp - 0x38], 0x3c
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xc
jae 0x10038cc2
mov cl, byte [ebp - 0x44]
jmp 0x10038cb3
lea eax, [ebp - 0x43]
mov byte [ebp - 0x37], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008320
cmp dword [ebp - 0x18], 0xf
lea edx, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x88], 0
cmova edx, dword [ebp - 0x2c]
mov ecx, edx
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x98], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038d00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.100048a0
mov esi, dword [ebp - 0x48]
mov byte [ebp - 4], 5
mov esi, dword [esi]
test esi, esi
je 0x10038d3f
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038d3f
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x1009f658]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10038d7d
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038d73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
test esi, esi
je 0x10038d9e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038d9e
push dword [ebp - 0x80]
mov ecx, esi
call dword [0x1009f660]
mov eax, dword [edi + 0x158]
mov edx, dword [ebp - 0x30]
movaps xmm0, xmmword [0x100a07a0]
movups xmmword [ebp - 0x7c], xmm0
movzx ecx, byte [eax + edx + 0x64]
movzx eax, byte [eax + edx + 0x63]
push ecx
push eax
xor ecx, ecx
mov al, byte [ebp - 0x7c]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0xe
jb 0x10038dc0
sub esp, 0x18
mov byte [ebp - 0x6d], 0
mov edx, esp
lea ecx, [ebp - 0x7b]
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 0x10038df0
sub ecx, esi
lea eax, [ebp - 0x7b]
push ecx
push eax
mov ecx, edx
call fcn.100048a0
lea eax, [ebp - 0xd0]
push eax
call fcn.10004440
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0xf
jbe 0x10038e22
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x58], 0
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038e40
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.100048a0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 7
mov esi, dword [eax - 4]
test esi, esi
je 0x10038e7a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038e7a
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x1009f658]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x10038eb2
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038ea8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x10038f02
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038ef8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov edx, dword [edi + 0x158]
lea ecx, [ebp - 0xd0]
add edx, dword [ebp - 0x30]
mov dx, word [edx + 0x60]
call fcn.100311f0
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0xf
jbe 0x10038f28
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xa8], 0
xorps xmm0, xmm0
mov dword [ebp - 0xa4], 0
movups xmmword [ebp - 0xb8], xmm0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10038f50
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.100048a0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 9
mov esi, dword [eax + 8]
test esi, esi
je 0x10038f90
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10038f90
lea eax, [ebp - 0xb8]
mov ecx, esi
push eax
call dword [0x1009f658]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x10038fce
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10038fc4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0xf
mov byte [ebp - 0xb8], 0
cmp ecx, 0xf
jbe 0x10039027
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003901d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 0xf
mov byte [ebp - 0xd0], 0
cmp ecx, 0xf
jbe 0x10039079
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003906f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100390b1
push ecx
push edx
call fcn.10067ef6
add esp, 8
mov eax, dword [ebp - 0x4c]
add dword [ebp - 0x30], 0x68
inc eax
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp - 0x6c]
jge 0x10039091
mov eax, dword [ebp - 0x48]
jmp 0x100386f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10067e95
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.1006d1c4
int3