Function at 0x10048490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ace76
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x100d6084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
cmp dword [0x100dafa4], 0
je 0x10048be5
push dword [ebp - 0x70]
mov edx, dword [esi + 0x160]
lea ebx, [esi + 0x15c]
push ecx
mov ecx, dword [ebx]
mov dword [ebp - 0x58], ebx
call fcn.10049e80
mov eax, dword [ebx]
xor edi, edi
mov dword [ebx + 4], eax
add esp, 8
mov ecx, dword [esi + 0x154]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi + 0x150]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
imul ecx
mov dword [ebp - 0x30], edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x10048662
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
mov edx, dword [ebp - 0x34]
mov ebx, dword [edx + 0x150]
cmp byte [esi + ebx + 0x63], 0
je 0x100485a6
cmp byte [0x100db41d], 0
mov eax, dword [0x100dafa4]
mov dword [ebp - 0x38], eax
je 0x10048599
mov ecx, 0xd78c9c
call fcn.1001c490
mov edi, eax
test edi, edi
je 0x10048590
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10048590
push 4
add edi, 0xb7c
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x10048593
mov ecx, dword [ebp - 0x38]
mov al, byte [edi]
mov byte [ecx + 0x3a], al
mov eax, ecx
jmp 0x10048596
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x30]
mov al, byte [eax + 0x3a]
cmp byte [esi + ebx + 0x63], al
jne 0x1004862a
mov eax, dword [edx + 0x150]
mov dword [ebp - 0x54], eax
mov al, byte [esi + eax + 0x63]
cmp al, 1
je 0x100485bb
cmp al, 2
jne 0x10048613
cmp byte [0x100db41d], 0
mov ebx, dword [0x100dafa4]
je 0x10048607
mov ecx, 0xd78c9c
call fcn.1001c490
mov edi, eax
test edi, edi
je 0x10048604
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10048604
push 4
add edi, 0x6a0
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x34]
test eax, eax
jne 0x10048607
mov al, byte [edi]
mov byte [ebx + 0x34], al
jmp 0x10048607
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x54]
mov al, byte [ebx + 0x34]
cmp byte [esi + ecx + 0x63], al
jne 0x10048627
mov eax, dword [edx + 0x150]
lea ecx, [edx + 0x15c]
add eax, esi
push eax
call fcn.100498d0
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
inc edi
add esi, 0x68
mov dword [ebp - 0x30], edi
mov ecx, dword [eax + 0x154]
sub ecx, dword [eax + 0x150]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x10048530
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x15c]
cmp eax, dword [esi + 0x160]
jne 0x100486d4
lea edi, [esi + 0xc]
mov ebx, 4
mov esi, dword [edi]
test esi, esi
je 0x10048694
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10048694
push eax
mov ecx, esi
call dword [0x100c681c]
add edi, 4
sub ebx, 1
jne 0x10048678
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0x148]
test esi, esi
je 0x100486c5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100486c5
push edi
mov ecx, esi
call dword [0x100c6880]
mov dword [ebx + 0x14c], 1
jmp 0x10048be5
mov ecx, dword [esi + 0x160]
sub esp, 8
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100c8bf0]
mulsd xmm0, qword [0x100c7e40]
movsd qword [ebp - 0x74], xmm0
fld qword [ebp - 0x74]
fstp qword [esp]
call fcn.100a5aa0
fstp qword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x74]
movsd qword [esp], xmm0
call fcn.1004a1f0
add esp, 8
call fcn.100a8d80
mov dword [esi + 0x14c], eax
cmp dword [esi + 0x148], eax
jbe 0x1004874e
mov dword [esi + 0x148], 1
movzx eax, byte [ebp + 8]
lea ecx, [esi + 8]
shl eax, 2
or edx, 0xffffffff
mov dword [ebp - 0x78], eax
add eax, 0xfffffffc
imul edi, eax, 0x68
mov dword [ebp - 0x6c], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x54], edi
nop dword [eax]
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], eax
cmp edx, 4
jg 0x10048bb8
mov esi, dword [ebp - 0x58]
mov eax, 0x4ec4ec4f
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x6c], eax
jle 0x100487d0
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx]
test esi, esi
je 0x10048b9c
push 4
push esi
call ebx
test eax, eax
jne 0x10048b99
push eax
mov ecx, esi
call dword [0x100c681c]
jmp 0x10048b99
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x54]
mov edi, 0xffc4fc03
push 0xffffffffffffffff
add eax, esi
mov dword [ebp - 0x18], 0xf
push 0
push eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10002400
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 0
mov eax, dword [eax]
cmp byte [esi + eax + 0x64], 2
jne 0x1004886e
movaps xmm0, xmmword [0x100c8e00]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x4a574250
mov dword [ebp - 0x3c], 0x7e4d4c
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x16
jb 0x10048830
cmp byte [ebp - 0x4f], 0
mov byte [ebp - 0x39], 0
jne 0x1004884b
xor ecx, ecx
jmp 0x1004885a
lea ecx, [ebp - 0x4f]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048851
sub ecx, edx
push ecx
lea eax, [ebp - 0x4f]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000c3c0
mov edi, 0xff5cb9fe
jmp 0x100488c9
mov cl, 0x26
mov dword [ebp - 0x68], 0x737d0626
mov dword [ebp - 0x64], 0x54434248
xor eax, eax
mov dword [ebp - 0x60], 0x5f475106
mov word [ebp - 0x5c], 0x7b
nop dword [eax]
xor byte [ebp + eax - 0x67], cl
inc eax
cmp eax, 0xc
jae 0x1004889f
mov cl, byte [ebp - 0x68]
jmp 0x10048890
cmp byte [ebp - 0x67], 0
mov byte [ebp - 0x5b], 0
jne 0x100488ad
xor ecx, ecx
jmp 0x100488bc
lea ecx, [ebp - 0x67]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100488b3
sub ecx, edx
push ecx
lea eax, [ebp - 0x67]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000c3c0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x3c], 0xf
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x100488ef
xor ecx, ecx
jmp 0x100488fd
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100488f4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002840
mov esi, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 1
mov ecx, dword [esi]
call fcn.1001c1c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10048931
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002720
mov esi, dword [esi]
test esi, esi
je 0x10048949
push 4
push esi
call ebx
test eax, eax
jne 0x10048949
push edi
mov ecx, esi
call dword [0x100c6884]
mov eax, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
movaps xmm0, xmmword [0x100c7fc0]
mov ecx, dword [eax]
movzx eax, byte [edi + ecx + 0x62]
push eax
movzx eax, byte [edi + ecx + 0x61]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x88], xmm0
nop dword [eax]
mov al, byte [ebp - 0x88]
xor byte [ebp + ecx - 0x87], al
inc ecx
cmp ecx, 0xe
jb 0x10048970
sub esp, 0x18
mov byte [ebp - 0x79], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x100489a4
mov eax, dword [edx]
jmp 0x100489a6
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x87], 0
jne 0x100489b6
xor ecx, ecx
jmp 0x100489c9
lea ecx, [ebp - 0x87]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100489c0
sub ecx, esi
push ecx
lea eax, [ebp - 0x87]
mov ecx, edx
push eax
call fcn.10002840
lea eax, [ebp - 0xa0]
push eax
call fcn.10005e70
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x100489f5
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x10048a10
xor ecx, ecx
jmp 0x10048a1e
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048a15
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002840
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov ecx, dword [ecx - 4]
call fcn.1001c1c0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10048a4f
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002720
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x10048a83
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002720
mov esi, dword [ebp - 0x58]
lea ecx, [ebp - 0xa0]
mov eax, dword [esi]
movzx edx, byte [eax + edi + 0x63]
call fcn.10042cc0
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0x10
jb 0x10048aa6
mov edx, dword [edx]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp byte [edx], 0
jne 0x10048ac1
xor ecx, ecx
jmp 0x10048ad2
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10048ac6
sub ecx, esi
mov esi, dword [ebp - 0x58]
push ecx
push edx
lea ecx, [ebp - 0x50]
call fcn.10002840
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x50]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 8]
call fcn.1001c1c0
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x10048b03
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.10002720
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x50], 0
cmp eax, 0x10
jb 0x10048b37
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.10002720
mov eax, dword [esi]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov eax, dword [edi + eax + 0x18]
mov dword [ecx - 8], eax
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0xa0], 0
mov esi, dword [ecx]
test esi, esi
je 0x10048b7d
push 4
push esi
call ebx
test eax, eax
jne 0x10048b7a
push 1
mov ecx, esi
call dword [0x100c681c]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x10048b9c
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002720
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x6c]
add edi, 0x68
mov edx, dword [ebp - 0x70]
inc eax
cmp eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x54], edi
jl 0x10048770
mov esi, dword [ebp - 0x34]
mov edi, dword [esi + 0x148]
mov esi, dword [esi + 0x134]
test esi, esi
je 0x10048bdd
push 4
push esi
call ebx
test eax, eax
jne 0x10048bdd
push edi
mov ecx, esi
call dword [0x100c6880]
mov ecx, dword [ebp - 0x34]
call fcn.10047e60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006e1c5
mov esp, ebp
pop ebp
ret 4