Function at 0x10039ce0
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 0x1008f8da
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [0x100ad040]
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 0x1003a741
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 0x10039d73
mov edx, dword [ebx + 8]
lea eax, [esi + 0x18]
nop dword [eax + eax]
cmp dword [eax], edx
je 0x10039e49
inc dword [ebp - 0x30]
add eax, 0x68
cmp dword [ebp - 0x30], ecx
jl 0x10039d60
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 0x1003a741
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 0x1003a741
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x80], 0xffc4fc03
push eax
call fcn.10004c90
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x158]
cmp byte [ecx + eax + 0x65], 2
jne 0x1003a344
movaps xmm0, xmmword [0x100a51f0]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x4c514456
mov dword [ebp - 0x54], 0x784b4a
nop word [eax + eax]
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x16
jb 0x10039e20
lea eax, [ebp - 0x67]
mov byte [ebp - 0x51], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008d30
mov dword [ebp - 0x80], 0xff5cb9fe
jmp 0x1003a382
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]
mov ecx, dword [edi + 0x158]
lea esi, [esi + 2]
movzx eax, word [eax + edx - 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 [ebx + 0x10]
jne 0x10039e70
mov eax, dword [ebx + 8]
cmp eax, dword [edi + 0x140]
jne 0x10039d73
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 0x1003a32f
push 4
add esi, 0xe5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a32f
cmp byte [esi], al
je 0x1003a32f
mov eax, dword [edi + 0x158]
mov ecx, dword [ebp - 0x80]
cmp byte [eax + ecx + 0x65], 2
jne 0x1003a016
movaps xmm0, xmmword [0x100a4cc0]
xor ecx, ecx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x393f2237
mov word [ebp - 0x54], 0xb38
mov byte [ebp - 0x52], 0
nop
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x15
jb 0x10039f30
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 0x10039f65
sub ecx, edx
lea eax, [ebp - 0x67]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.100051e0
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x10039fa8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10039fa8
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10039fe9
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10039fdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003a00a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a00a
push 0xff5cb9fe
mov ecx, esi
call dword [0x100a31a8]
mov dword [ebp - 0x4c], 0xff808080
jmp 0x1003a115
mov cl, 0x53
mov dword [ebp - 0x44], 0x3d060853
mov dword [ebp - 0x40], 0x73213637
xor eax, eax
mov dword [ebp - 0x3c], 0xe2a3224
mov byte [ebp - 0x38], 0
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xb
jae 0x1003a042
mov cl, byte [ebp - 0x44]
jmp 0x1003a033
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 0x1003a070
sub ecx, edx
lea eax, [ebp - 0x43]
push ecx
push eax
lea ecx, [ebp - 0x98]
call fcn.100051e0
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003a0b3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a0b3
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003a0f4
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a0ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x1003a115
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a115
push 0xffc4fc03
mov ecx, esi
call dword [0x100a31a8]
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 0x1003a141
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a141
push dword [ebp - 0x4c]
mov ecx, esi
call dword [0x100a31a8]
imul edx, dword [ebp - 0x30], 0x34
xorps xmm0, xmm0
mov ecx, dword [edi + 0x158]
mov byte [ebp - 0x78], 0x37
mov byte [ebp - 0x70], 0
mov byte [ebp - 0x70], 0
add edx, dword [ebp - 0x48]
mov dword [ebp - 0x9c], edx
movzx eax, word [ecx + edx*2 + 0x58]
push eax
movzx eax, word [ecx + edx*2 + 0x50]
mov dl, 0x17
push eax
mov al, 0x12
mov cl, 0x53
mov dh, al
mov byte [ebp - 0x4d], cl
xor al, byte [ebp - 0x78]
mov ch, dl
mov byte [ebp - 0x77], al
mov ah, 0x18
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 0x1003a1c5
sub ecx, esi
lea eax, [ebp - 0x77]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x98]
push eax
call fcn.10004d80
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0xf
jbe 0x1003a1fa
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 0x1003a214
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.100051e0
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 0x1003a255
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a255
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1003a28d
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a283
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
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 0x1003a2e0
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a2d6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
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 0x1003a32f
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a32f
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 [0x100a3190]
mov al, byte [ebp - 0x31]
inc al
mov byte [ebp - 0x31], al
cmp al, 4
jb 0x10039ec0
jmp 0x10039d73
mov cl, 0x63
mov dword [ebp - 0x44], 0x36384363
mov dword [ebp - 0x40], 0x1106070d
xor eax, eax
mov dword [ebp - 0x3c], 0x1a021443
mov word [ebp - 0x38], 0x3e
xor byte [ebp + eax - 0x43], cl
inc eax
cmp eax, 0xc
jae 0x1003a372
mov cl, byte [ebp - 0x44]
jmp 0x1003a363
lea eax, [ebp - 0x43]
mov byte [ebp - 0x37], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.10008d30
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 0x1003a3b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x98]
call fcn.100051e0
mov esi, dword [ebp - 0x48]
mov byte [ebp - 4], 5
mov esi, dword [esi]
test esi, esi
je 0x1003a3ef
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a3ef
lea eax, [ebp - 0x98]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x1003a42d
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a423
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov eax, dword [ebp - 0x48]
mov esi, dword [eax]
test esi, esi
je 0x1003a44e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a44e
push dword [ebp - 0x80]
mov ecx, esi
call dword [0x100a31a8]
mov ecx, dword [edi + 0x158]
mov edx, dword [ebp - 0x30]
movaps xmm0, xmmword [str._nGTGN]
movups xmmword [ebp - 0x7c], xmm0
movzx eax, byte [edx + ecx + 0x64]
push eax
movzx eax, byte [edx + ecx + 0x63]
xor ecx, ecx
push eax
mov al, byte [ebp - 0x7c]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0xe
jb 0x1003a470
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 0x1003a4a0
sub ecx, esi
lea eax, [ebp - 0x7b]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0xd0]
push eax
call fcn.10004d80
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0xf
jbe 0x1003a4d2
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 0x1003a4f0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x68]
call fcn.100051e0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 7
mov esi, dword [eax - 4]
test esi, esi
je 0x1003a52a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a52a
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1003a562
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a558
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
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 0x1003a5b2
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a5a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov edx, dword [edi + 0x158]
lea ecx, [ebp - 0xd0]
add edx, dword [ebp - 0x30]
mov dx, word [edx + 0x60]
call fcn.10032520
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0xf
jbe 0x1003a5d8
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 0x1003a600
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.100051e0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 9
mov esi, dword [eax + 8]
test esi, esi
je 0x1003a640
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003a640
lea eax, [ebp - 0xb8]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xa4]
cmp ecx, 0xf
jbe 0x1003a67e
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a674
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
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 0x1003a6d7
mov edx, dword [ebp - 0xd0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a6cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
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 0x1003a729
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003a71f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003a761
push ecx
push edx
call fcn.10069bf1
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 0x1003a741
mov eax, dword [ebp - 0x48]
jmp 0x10039da0
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.10069b90
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.1006f2c1
int3