Function at 0x1004ad30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad04b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x100d6084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x1c], ecx
mov dword [0x100df68c], eax
test ecx, ecx
jne 0x1004ad84
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x1004ada1
cmp ecx, dword [esi + 4]
jne 0x1004afcf
mov ecx, esi
call fcn.1004b660
jmp 0x1004afcf
and eax, 0xf0000
cmp eax, 0x10000
je 0x1004afb8
cmp eax, 0x40000
je 0x1004add1
cmp eax, 0x80000
jne 0x1004afcf
mov ecx, dword [esi]
xor dl, dl
call fcn.1001ba20
jmp 0x1004afcf
mov edi, dword [esi]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1004adf5
push 4
push edi
call ecx
test eax, eax
jne 0x1004adef
push eax
mov ecx, edi
call dword [0x100c6828]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [esi + 0x28]
xor ebx, ebx
sub eax, dword [esi + 0x24]
sar eax, 3
test eax, eax
je 0x1004ae3f
mov eax, dword [esi + 0x24]
mov edi, dword [eax + ebx*8 + 4]
test edi, edi
je 0x1004ae2b
mov edi, dword [edi]
test edi, edi
je 0x1004ae2b
push 4
push edi
call ecx
test eax, eax
jne 0x1004ae2b
push pe_nt_image_headers32
mov ecx, edi
call dword [0x100c682c]
mov eax, dword [esi + 0x28]
inc ebx
sub eax, dword [esi + 0x24]
mov ecx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
sar eax, 3
cmp ebx, eax
jb 0x1004ae04
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
cmp eax, ecx
je 0x1004afcf
mov ebx, dword [ebp - 0x1c]
mov edi, dword [eax + 4]
test edi, edi
je 0x1004ae5b
cmp dword [edi], ebx
je 0x1004ae67
add eax, 8
cmp eax, ecx
jne 0x1004ae50
jmp 0x1004afcf
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x1004afcf
cmp dword [edi + 0x54], 0
je 0x1004afcf
mov ecx, dword [ecx]
call fcn.10012920
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x1004afcf
push edi
mov ecx, esi
call fcn.1004b150
cmp dword [esi + 0x18], eax
jne 0x1004afcf
mov eax, dword [edi + 0x54]
mov edx, 0x4000
mov eax, dword [eax]
add eax, dword [ebx]
mov dword [esi + 0x14], eax
mov ecx, dword [edi]
call fcn.1001ba50
call fcn.1002c1c0
mov byte [ebp - 0x18], 0x4d
mov al, 8
xor al, byte [ebp - 0x18]
mov ah, 0x2c
mov byte [ebp - 0x17], al
mov cl, 0x35
mov al, byte [ebp - 0x18]
mov dl, 0x2e
xor ah, al
mov byte [ebp - 0xf], 0
mov ch, 0x23
mov byte [ebp - 0x13], ah
mov dh, 0x2a
mov byte [ebp - 0xf], 0
xor cl, al
xor ch, al
mov bl, 0x25
mov byte [ebp - 0x16], cl
mov bh, 0x28
mov byte [ebp - 0x12], ch
xor dl, al
lea ecx, [ebp - 0x5c]
xor bl, al
mov byte [ebp - 0x15], dl
xor dh, al
mov byte [ebp - 0x14], bl
xor bh, al
mov byte [ebp - 0x11], dh
lea eax, [ebp - 0x17]
mov byte [ebp - 0x10], bh
push eax
call fcn.10002940
push 0x64
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x8c]
mov edx, dword [ebp - 0x1c]
lea esi, [ebp - 0x5c]
push 4
push dword [edi + 0x54]
call fcn.10012eb0
add esp, 4
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x1004af3e
mov eax, dword [eax]
movaps xmm0, xmmword [str._iQKRZ]
xor ecx, ecx
movups xmmword [ebp - 0x44], xmm0
push eax
movaps xmm0, xmmword [0x100c8dd0]
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x24], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x1f
jb 0x1004af60
sub esp, 0x18
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.10002940
lea eax, [ebp - 0x74]
push eax
call fcn.1000f620
add esp, 0x20
mov edx, esi
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.1002c0a0
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.100022f0
lea ecx, [ebp - 0x8c]
call fcn.100022f0
lea ecx, [ebp - 0x5c]
call fcn.100022f0
jmp 0x1004afcf
push ecx
mov ecx, esi
call fcn.1004b110
test eax, eax
je 0x1004afcf
push eax
mov ecx, esi
call fcn.1004b150
mov dword [esi + 0x18], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8