Function at 0x1004a510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x100d6084]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov byte [esp + 0x40], 0xe
mov al, 0x7a
xor al, byte [esp + 0x40]
mov dl, 0x60
xor dl, byte [esp + 0x40]
mov dh, 0x61
mov byte [esp + 0x1d], dh
mov ah, 0x51
mov byte [esp + 0x42], al
mov byte [esp + 0x13], 0x6c
mov dh, byte [esp + 0x13]
xor dh, byte [esp + 0x40]
mov byte [esp + 0x1e], 0x7d
mov al, byte [esp + 0x1e]
mov byte [esp + 0x43], dl
mov dl, byte [esp + 0x40]
xor al, dl
mov byte [esp + 0x13], dh
mov byte [esp + 0x41], dh
mov dh, byte [esp + 0x1d]
mov cl, 0x6d
mov byte [esp + 0x48], al
mov ch, 0x62
mov byte [esp + 0x1f], 0x6b
xor ah, dl
mov al, byte [esp + 0x1f]
xor cl, dl
xor ch, dl
mov byte [esp + 0x4a], 0
xor dh, dl
xor al, dl
mov byte [esp + 0x44], ah
cmp byte [esp + 0x13], 0
mov byte [esp + 0x45], cl
mov byte [esp + 0x46], ch
mov byte [esp + 0x47], dh
mov byte [esp + 0x49], al
mov byte [esp + 0x4a], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jne 0x1004a5d4
xor ecx, ecx
jmp 0x1004a5e9
lea ecx, [esp + 0x41]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a5e0
sub ecx, edx
push ecx
lea eax, [esp + 0x45]
push eax
lea ecx, [esp + 0x68]
call fcn.10002840
mov ecx, dword [edi]
lea edx, [esp + 0x60]
call fcn.1001b7d0
mov dword [edi + 4], eax
mov eax, dword [esp + 0x74]
cmp eax, 0x10
jb 0x1004a61e
inc eax
lea ecx, [esp + 0x60]
push eax
push dword [esp + 0x64]
call fcn.10002720
movaps xmm0, xmmword [str._ZIZdYZHdROV]
xor ecx, ecx
movups xmmword [esp + 0x50], xmm0
nop dword [eax]
mov al, byte [esp + 0x50]
xor byte [esp + ecx + 0x51], al
inc ecx
cmp ecx, 0xe
jb 0x1004a630
cmp byte [esp + 0x51], 0
mov byte [esp + 0x5f], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jne 0x1004a663
xor ecx, ecx
jmp 0x1004a679
lea ecx, [esp + 0x51]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a670
sub ecx, edx
push ecx
lea eax, [esp + 0x55]
push eax
lea ecx, [esp + 0x68]
call fcn.10002840
mov ecx, dword [edi]
lea edx, [esp + 0x60]
call fcn.1001b7d0
mov dword [edi + 8], eax
mov eax, dword [esp + 0x74]
cmp eax, 0x10
jb 0x1004a6ae
inc eax
lea ecx, [esp + 0x60]
push eax
push dword [esp + 0x64]
call fcn.10002720
call fcn.10018a60
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x1004a843
mov dword [edi + 0xc], eax
call fcn.1001bea0
mov ecx, eax
call dword [0x100c6540]
test eax, eax
je 0x1004a843
mov ecx, dword [edi + 0xc]
mov dword [ecx], eax
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
mov dword [esp + 0x18], edx
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004a71b
push 4
push eax
call esi
test eax, eax
jne 0x1004a71b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004a71b
push 4
push eax
call esi
test eax, eax
jne 0x1004a71b
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004a765
push 4
push eax
call esi
test eax, eax
jne 0x1004a765
mov ecx, dword [esp + 0xc]
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x3f340000
mov dword [esp + 8], 0x3f340000
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x100c6550]
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004a79b
push 4
push eax
call esi
test eax, eax
jne 0x1004a79b
mov eax, dword [esp + 0xc]
add eax, 0xcc
push 4
push eax
mov dword [esp + 0x14], eax
call esi
test eax, eax
jne 0x1004a79b
mov eax, dword [esp + 0xc]
mov dword [eax], 0xb
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004a7c0
push 4
push eax
call esi
test eax, eax
jne 0x1004a7c0
mov ecx, dword [esp + 0xc]
push pe_nt_image_headers32
call dword [0x100c651c]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x60]
push eax
call fcn.1001b880
add esp, 4
movups xmm0, xmmword [eax]
mov eax, dword [edi + 0xc]
movups xmmword [esp + 0x50], xmm0
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004a7fd
push 4
push eax
call esi
test eax, eax
jne 0x1004a7fd
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x50]
push eax
call dword [0x100c654c]
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004a822
push 4
push eax
call esi
test eax, eax
jne 0x1004a822
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x50]
push eax
call dword [0x100c64fc]
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1004a843
push 4
push eax
call esi
test eax, eax
jne 0x1004a843
mov ecx, dword [esp + 0xc]
push eax
call dword [0x100c6510]
mov cl, 0x6e
mov dword [esp + 0x40], 0x1d0f0c6e
mov dword [esp + 0x44], 0x160b310b
xor eax, eax
mov dword [esp + 0x48], 0xf060d
mov word [esp + 0x4c], 0xb09
mov byte [esp + 0x4e], 0
nop dword [eax + eax]
xor byte [esp + eax + 0x41], cl
inc eax
cmp eax, 0xd
jae 0x1004a880
mov cl, byte [esp + 0x40]
jmp 0x1004a870
cmp byte [esp + 0x41], 0
mov byte [esp + 0x4e], 0
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jne 0x1004a8a5
xor ecx, ecx
jmp 0x1004a8b9
lea ecx, [esp + 0x41]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a8b0
sub ecx, edx
push ecx
lea eax, [esp + 0x45]
push eax
lea ecx, [esp + 0x68]
call fcn.10002840
mov ecx, dword [edi]
lea edx, [esp + 0x60]
call fcn.1001b7d0
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x74]
cmp eax, 0x10
jb 0x1004a8ee
inc eax
lea ecx, [esp + 0x60]
push eax
push dword [esp + 0x64]
call fcn.10002720
xor eax, eax
mov dword [esp + 0xc], eax
push eax
mov dl, 1
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1c], dl
mov al, 0x24
mov cl, 0x65
mov byte [esp + 0x1f], 0
xor al, dl
mov dword [esp + 0x48], 0
xor cl, dl
mov byte [esp + 0x1d], al
sub esp, 0x18
mov byte [esp + 0x36], cl
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [esp + 0x35], 0
jne 0x1004a93e
xor ecx, ecx
jmp 0x1004a95b
lea ecx, [esp + 0x35]
lea eax, [ecx + 1]
mov dword [esp + 0x40], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a950
sub ecx, dword [esp + 0x40]
push ecx
lea eax, [esp + 0x39]
mov ecx, edx
push eax
call fcn.10002840
lea eax, [esp + 0x44]
push eax
call fcn.1000f610
mov ecx, dword [edi + 0x20]
add esp, 0x20
mov edx, eax
call fcn.1001b7d0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
cmp ecx, 0x10
jb 0x1004a99b
inc ecx
push ecx
push dword [esp + 0x2c]
lea ecx, [esp + 0x30]
call fcn.10002720
call fcn.10018a60
mov edi, eax
test edi, edi
je 0x1004ab6f
mov dword [esp + 0x44], edi
call fcn.1001bea0
mov ecx, eax
call dword [0x100c6540]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004ab6f
mov edx, dword [esp + 0x20]
push 4
mov dword [edi], eax
push eax
mov edx, dword [edx]
mov dword [esp + 0x2c], edx
call esi
test eax, eax
jne 0x1004a9fd
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1004a9fd
push 4
push eax
call esi
test eax, eax
jne 0x1004a9fd
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
call eax
mov eax, dword [edi]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004aa44
push 4
push eax
call esi
test eax, eax
jne 0x1004aa44
mov ecx, dword [esp + 0x14]
sub esp, 0x20
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x3f340000
mov dword [esp + 8], 0x3f340000
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [0x100c6550]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004aa77
push 4
push eax
call esi
test eax, eax
jne 0x1004aa77
mov eax, dword [esp + 0x14]
add eax, 0xcc
push 4
push eax
mov dword [esp + 0x1c], eax
call esi
test eax, eax
jne 0x1004aa77
mov eax, dword [esp + 0x14]
mov dword [eax], 0xb
mov eax, dword [edi]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004aa99
push 4
push eax
call esi
test eax, eax
jne 0x1004aa99
mov ecx, dword [esp + 0x14]
push pe_nt_image_headers32
call dword [0x100c651c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
test eax, eax
je 0x1004aaf6
push 4
push eax
call esi
test eax, eax
jne 0x1004aaf6
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0xdc]
mov dword [esp + 0x50], eax
mov eax, dword [ecx + 0xe0]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0xe4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0xe8]
mov dword [esp + 0x5c], eax
movaps xmm0, xmmword [esp + 0x50]
movaps xmmword [esp + 0x60], xmm0
mov eax, dword [edi]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004ab22
push 4
push eax
call esi
test eax, eax
jne 0x1004ab22
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push eax
call dword [0x100c654c]
mov eax, dword [edi]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004ab44
push 4
push eax
call esi
test eax, eax
jne 0x1004ab44
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x60]
push eax
call dword [0x100c64fc]
mov edi, dword [edi]
test edi, edi
je 0x1004ab5c
push 4
push edi
call esi
test eax, eax
jne 0x1004ab5c
push eax
mov ecx, edi
call dword [0x100c6510]
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0x24]
call fcn.1004c1f0
jmp 0x1004ab73
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, 0x18
jl 0x1004a8f4
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
xor ecx, esp
call fcn.1006e175
mov esp, ebp
pop ebp
ret