Function at 0x10049780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a5b5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [0x10081ac0], eax
mov eax, dword [esi]
push 4
push eax
mov dword [ebp - 0x2c], eax
call edi
test eax, eax
jne 0x10049a84
mov eax, dword [ebp - 0x2c]
add eax, 0xe5
push 4
push eax
call edi
test eax, eax
jne 0x10049a84
mov eax, dword [ebp - 0x2c]
mov al, byte [eax + 0xe5]
test al, al
je 0x10049a84
cmp byte [ebp + 8], 0
jne 0x10049a84
movaps xmm0, xmmword [str.8VL_J]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0xe
jb 0x10049810
xorps xmm0, xmm0
mov byte [ebp - 0x31], 0
lea ecx, [ebp - 0x3f]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049840
sub ecx, edx
lea eax, [ebp - 0x3f]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005220
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x49
mov byte [ebp - 0x2b], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049882
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10005220
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x100498bc
push 4
push eax
call edi
test eax, eax
jne 0x100498bc
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
push eax
call dword [0x1007522c]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x100498f6
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100498ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100498ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
cmova edx, dword [ebp - 0x28]
mov ecx, edx
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x48], xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x2c], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10049920
sub ecx, dword [ebp - 0x2c]
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.10005220
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10049958
push 4
push eax
call edi
test eax, eax
jne 0x10049958
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
push eax
call dword [0x10075270]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x10049992
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049988
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10049988
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov esi, dword [esi + 0x10]
test esi, esi
je 0x100499aa
push 4
push esi
call edi
test eax, eax
jne 0x100499aa
mov ecx, esi
call dword [0x10075234]
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x3e
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100499d0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.10005220
mov esi, dword [ebp - 0x30]
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10049a0d
push 4
push eax
call edi
test eax, eax
jne 0x10049a0d
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x60]
push eax
call dword [0x10075274]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x10049a47
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049a3d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10049a3d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, esi
call fcn.1004b7f0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10049a84
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10049a7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10049a7a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006625f
mov esp, ebp
pop ebp
ret 0xc