Function at 0x10048f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acf35
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x100d6084]
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 + 0x15c]
cmp eax, dword [edi + 0x160]
je 0x100498b0
mov ecx, dword [edi + 0x160]
sub ecx, eax
mov dword [ebp - 0x58], 0
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x10049475
mov ebx, dword [ebp + 8]
xor esi, esi
xor ecx, ecx
mov eax, dword [edi + 0x15c]
cmp dword [esi + eax + 0x18], ebx
je 0x10048fe9
inc ecx
add esi, 0x68
mov dword [ebp - 0x58], ecx
mov ecx, dword [edi + 0x160]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [ebp - 0x58]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x10048fb1
jmp 0x10049475
imul edx, ecx, 0x68
mov ebx, 4
mov ecx, eax
mov al, byte [ebp + 0xc]
mov dword [ebp - 0x98], edx
mov byte [ecx + edx + 0x64], al
lea esi, [edx + 0x58]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp + 0x10], eax
nop
mov ecx, dword [edi + 0x15c]
lea edx, [edx + 2]
movzx eax, word [eax + edx - 2]
lea esi, [esi + 2]
mov word [esi + ecx - 0xa], ax
mov ecx, dword [edi + 0x15c]
movzx eax, word [edx - 2]
mov word [esi + ecx - 2], ax
mov eax, dword [ebp + 0x10]
sub ebx, 1
jne 0x10049010
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x144]
jne 0x10049475
lea ebx, [edi + 0xb4]
mov dword [ebp - 0x94], 0xffffffff
lea esi, [edi + 0x84]
mov dword [ebp - 0x5c], 0
mov eax, 4
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x54], eax
nop word [eax + eax]
mov esi, dword [esi]
test esi, esi
je 0x10049457
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10049454
push 4
add esi, 0xfc
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10049454
cmp byte [esi], al
setne al
test al, al
je 0x10049454
mov eax, dword [edi + 0x15c]
mov ecx, dword [ebp - 0x98]
cmp byte [ecx + eax + 0x64], 2
jne 0x100491b0
movaps xmm0, xmmword [0x100c9480]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x61677a6f
mov word [ebp - 0x3c], 0x5360
mov byte [ebp - 0x3a], 0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x15
jb 0x100490f4
cmp byte [ebp - 0x4f], 0
mov byte [ebp - 0x3a], 0
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
jne 0x10049124
xor ecx, ecx
jmp 0x10049139
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049130
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10002840
mov dword [ebp - 4], 0
lea edx, [ebp - 0x8c]
mov ecx, dword [edi + 0x7c]
call fcn.1001c1c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x10049180
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.10002720
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x100491a1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100491a1
push 0xff5cb9fe
mov ecx, esi
call dword [0x100c6884]
mov dword [ebp - 0x94], 0xff808080
jmp 0x10049279
mov cl, 8
mov dword [ebp - 0x38], 0x665d5308
mov dword [ebp - 0x34], 0x287a6d6c
xor eax, eax
mov dword [ebp - 0x30], 0x5571697f
mov byte [ebp - 0x2c], 0
nop dword [eax]
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xb
jae 0x100491df
mov cl, byte [ebp - 0x38]
jmp 0x100491d0
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x78], 0xf
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
jne 0x10049202
xor ecx, ecx
jmp 0x10049211
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049208
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x8c]
call fcn.10002840
mov dword [ebp - 4], 1
lea edx, [ebp - 0x8c]
mov ecx, dword [edi + 0x7c]
call fcn.1001c1c0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x10049258
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.10002720
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x10049279
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10049279
push 0xffc4fc03
mov ecx, esi
call dword [0x100c6884]
mov esi, dword [ebx - 4]
test esi, esi
je 0x1004929b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004929b
push dword [ebp - 0x94]
mov ecx, esi
call dword [0x100c6884]
imul edx, dword [ebp - 0x58], 0x34
mov ebx, dword [ebp - 0x5c]
mov eax, dword [edi + 0x15c]
lea ecx, [edx + ebx]
movzx eax, word [eax + ecx*2 + 0x58]
lea ecx, [edx + ebx]
push eax
mov eax, dword [edi + 0x15c]
mov bh, 0x74
mov dword [ebp - 0x90], ecx
mov dl, 0x54
mov bl, 0x5b
xor bl, bh
movzx eax, word [eax + ecx*2 + 0x50]
mov cl, 0x10
push eax
mov dh, cl
mov byte [ebp - 0x68], 0
mov ah, dl
mov byte [ebp - 0x70], bh
xor dl, bh
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6d], dl
xor dh, bh
mov byte [ebp - 0x69], dh
mov al, 0x51
sub esp, 0x18
mov byte [ebp - 0x68], 0
mov edx, esp
mov ch, al
xor al, bh
xor cl, bh
mov byte [ebp - 0x6f], al
xor ah, bh
mov byte [ebp - 0x6e], cl
xor ch, bh
mov byte [ebp - 0x6b], ah
mov byte [ebp - 0x6a], 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 0x1004932f
mov eax, dword [edx]
jmp 0x10049331
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x6f], 0
jne 0x1004933e
xor ecx, ecx
jmp 0x1004934d
lea ecx, [ebp - 0x6f]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049344
sub ecx, esi
push ecx
lea eax, [ebp - 0x6f]
mov ecx, edx
push eax
call fcn.10002840
lea eax, [ebp - 0x8c]
push eax
call fcn.10005e70
add esp, 0x24
mov edx, eax
mov dword [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x10049379
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x10049394
xor ecx, ecx
jmp 0x100493a9
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100493a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002840
mov ebx, dword [ebp - 0x60]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov ecx, dword [ebx]
call fcn.1001c1c0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x100493d9
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002720
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x1004940d
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.10002720
mov eax, dword [edi + 0x15c]
mov ecx, dword [ebp - 0x90]
mov ebx, dword [ebx + 4]
movzx esi, word [eax + ecx*2 + 0x50]
test ebx, ebx
je 0x10049451
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10049451
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 [0x100c6868]
mov ebx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x64]
add ebx, 0x14
inc dword [ebp - 0x5c]
add esi, 4
sub eax, 1
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], eax
jne 0x10049080
mov ecx, dword [edi + 0x148]
shl ecx, 2
mov dword [ebp - 0x90], ecx
lea eax, [ecx - 4]
mov dword [ebp - 0x58], eax
cmp eax, ecx
jge 0x100498b0
imul ebx, eax, 0x68
lea esi, [edi + 0xc]
nop dword [eax + eax]
mov ecx, dword [edi + 0x160]
mov eax, 0x4ec4ec4f
sub ecx, dword [edi + 0x15c]
add esi, 0x18
imul ecx
mov dword [ebp - 0x5c], esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x58], eax
jg 0x100498b0
mov eax, dword [edi + 0x15c]
lea ecx, [ebp - 0x28]
push 0xffffffffffffffff
add eax, ebx
mov dword [ebp - 0x64], 0xffc4fc03
push 0
push eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002400
mov dword [ebp - 4], 4
mov eax, dword [edi + 0x15c]
cmp byte [eax + ebx + 0x64], 2
jne 0x10049570
movaps xmm0, xmmword [str.xX:]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x110c190b
mov dword [ebp - 0x3c], 0x251617
nop word [eax + eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x16
jb 0x10049530
cmp byte [ebp - 0x4f], 0
mov byte [ebp - 0x39], 0
jne 0x1004954b
xor ecx, ecx
jmp 0x1004955a
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049551
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000c3c0
mov dword [ebp - 0x64], 0xff5cb9fe
jmp 0x100495c9
mov cl, 0x4c
mov dword [ebp - 0x38], 0x19176c4c
mov dword [ebp - 0x34], 0x3e292822
xor eax, eax
mov dword [ebp - 0x30], 0x352d3b6c
mov word [ebp - 0x2c], 0x11
nop
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 0xc
jae 0x1004959f
mov cl, byte [ebp - 0x38]
jmp 0x10049590
cmp byte [ebp - 0x37], 0
mov byte [ebp - 0x2b], 0
jne 0x100495ad
xor ecx, ecx
jmp 0x100495bc
lea ecx, [ebp - 0x37]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100495b3
sub ecx, edx
push ecx
lea eax, [ebp - 0x37]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000c3c0
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov dword [ebp - 0x78], 0xf
cmovae edx, dword [ebp - 0x28]
mov dword [ebp - 0x7c], 0
mov byte [ebp - 0x8c], 0
cmp byte [edx], 0
jne 0x100495f2
xor ecx, ecx
jmp 0x10049603
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100495f7
sub ecx, esi
mov esi, dword [ebp - 0x5c]
push ecx
push edx
lea ecx, [ebp - 0x8c]
call fcn.10002840
mov byte [ebp - 4], 5
lea edx, [ebp - 0x8c]
mov ecx, dword [esi]
call fcn.1001c1c0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x78]
cmp eax, 0x10
jb 0x10049640
inc eax
lea ecx, [ebp - 0x8c]
push eax
push dword [ebp - 0x8c]
call fcn.10002720
mov esi, dword [esi]
test esi, esi
je 0x1004965e
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004965e
push dword [ebp - 0x64]
mov ecx, esi
call dword [0x100c6884]
mov eax, dword [edi + 0x15c]
xor ecx, ecx
movaps xmm0, xmmword [0x100c7f40]
movzx eax, byte [eax + ebx + 0x62]
push eax
mov eax, dword [edi + 0x15c]
movzx eax, byte [eax + ebx + 0x61]
push eax
movups xmmword [ebp - 0x74], xmm0
mov al, byte [ebp - 0x74]
xor byte [ebp + ecx - 0x73], al
inc ecx
cmp ecx, 0xe
jb 0x10049683
sub esp, 0x18
mov byte [ebp - 0x65], 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 0x100496bf
mov eax, dword [edx]
jmp 0x100496c1
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x73], 0
jne 0x100496ce
xor ecx, ecx
jmp 0x100496dd
lea ecx, [ebp - 0x73]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100496d4
sub ecx, esi
push ecx
lea eax, [ebp - 0x73]
mov ecx, edx
push eax
call fcn.10002840
lea eax, [ebp - 0xcc]
push eax
call fcn.10005e70
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 6
cmp dword [edx + 0x14], 0x10
jb 0x10049706
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x10049721
xor ecx, ecx
jmp 0x1004972f
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049726
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002840
mov esi, dword [ebp - 0x5c]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 7
mov ecx, dword [esi - 4]
call fcn.1001c1c0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10049760
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002720
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x10049794
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.10002720
mov eax, dword [edi + 0x15c]
lea ecx, [ebp - 0xcc]
movzx edx, byte [eax + ebx + 0x63]
call fcn.10042cc0
mov edx, eax
mov byte [ebp - 4], 8
cmp dword [edx + 0x14], 0x10
jb 0x100497b8
mov edx, dword [edx]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp byte [edx], 0
jne 0x100497dc
xor ecx, ecx
jmp 0x100497ed
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100497e1
sub ecx, esi
mov esi, dword [ebp - 0x5c]
push ecx
push edx
lea ecx, [ebp - 0xb4]
call fcn.10002840
mov byte [ebp - 4], 9
lea edx, [ebp - 0xb4]
mov ecx, dword [esi + 8]
call fcn.1001c1c0
mov eax, dword [ebp - 0xa0]
cmp eax, 0x10
jb 0x1004982a
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.10002720
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xa0], 0xf
mov dword [ebp - 0xa4], 0
mov byte [ebp - 0xb4], 0
cmp eax, 0x10
jb 0x10049863
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.10002720
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 0x1004989a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002720
mov eax, dword [ebp - 0x58]
add ebx, 0x68
inc eax
mov dword [ebp - 0x58], eax
cmp eax, dword [ebp - 0x90]
jl 0x100494a0
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.1006e1c5
mov esp, ebp
pop ebp
ret 0x10