Function at 0x1004dc7b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ecx, dword [ebp + 0x28]
mov eax, 0x1018b100
push esi
push edi
test ecx, ecx
mov dword [ebp - 0xc], 0x20
mov esi, 0x101a9340
mov edx, 0x80
cmove esi, eax
sar edx, cl
push 0x40
pop eax
sar eax, cl
mov dword [ebp - 4], eax
shl eax, 2
mov dword [ebp - 0x60], eax
add eax, esi
mov dword [ebp - 0x18], eax
lea eax, [esi + edx*4]
mov dword [ebp - 0x20], eax
mov eax, 0xc0
sar eax, cl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edx
lea eax, [esi + eax*4]
mov dword [ebp - 0x28], eax
mov eax, pe_nt_image_headers32
sar eax, cl
mov dword [ebp - 0x24], eax
lea eax, [esi + eax*4]
mov dword [ebp - 0x30], eax
mov eax, 0x140
sar eax, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x38], eax
mov eax, 0x2c0
sar eax, cl
mov dword [ebp - 0x3c], eax
mov eax, 0x180
sar eax, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x40], eax
mov eax, 0x300
sar eax, cl
mov dword [ebp - 0x44], eax
mov eax, 0x1c0
sar eax, cl
mov dword [ebp - 0x2c], eax
lea eax, [esi + eax*4]
mov dword [ebp - 0x48], eax
mov eax, 0x3c0
sar eax, cl
mov dword [ebp - 0x4c], eax
mov eax, 0x200
sar eax, cl
mov dword [ebp - 0x34], eax
lea eax, [esi + eax*4]
mov dword [ebp - 0x50], eax
mov eax, 0x400
sar eax, cl
mov dword [ebp - 0x54], eax
mov eax, 0x240
sar eax, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x58], eax
mov eax, 0x4c0
sar eax, cl
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp + 0x24]
mov eax, dword [edi]
cmp eax, edx
jge 0x1004dd90
mov eax, 0x480
mov esi, 0x900
sar eax, cl
sub esi, eax
shl eax, 2
push eax
mov eax, dword [ebp + 0x20]
push eax
lea eax, [eax + esi*4]
push eax
call fcn.101158d0
mov ecx, dword [ebp + 0x28]
add esp, 0xc
sub esi, dword [ebp - 0x10]
mov dword [edi], esi
jmp 0x1004dd94
sub eax, edx
mov dword [edi], eax
mov eax, dword [edi]
mov edx, dword [ebp + 0x20]
lea edi, [edx + eax*4]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x1004ddea
mov edx, dword [ebp + 0x18]
mov ecx, edx
push 0x20
pop edi
lea esi, [edx + 0x267c]
movss xmm0, dword [ecx]
xorps xmm0, xmmword [0x101310f0]
movss dword [ecx], xmm0
lea ecx, [ecx + 4]
mov eax, dword [esi]
lea esi, [esi - 4]
mov dword [ecx + 0x7c], eax
dec edi
jne 0x1004ddb1
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
push edx
push esi
push eax
call dword [eax + 0x2c]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
push esi
push edi
call dword [eax + 0x14]
add esp, 0x14
jmp 0x1004de26
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x2600]
push edi
call dword [eax + 8]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push esi
push eax
call dword [eax + 0x2c]
mov eax, dword [ebp + 8]
add esi, 0x100
push edi
push esi
push eax
call dword [eax + 0x2c]
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
push esi
push edi
call dword [eax + 0x18]
add esp, 0x28
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x14]
mov esi, dword [ebp + 0x14]
push edi
push esi
call dword [eax]
push dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
push esi
push dword [ebp - 0x18]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x24]
push esi
push dword [ebp - 0x20]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x28]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
mov eax, dword [ebp - 0x34]
add esp, 0x4c
push dword [ebp - 4]
lea eax, [edi + eax*4]
push esi
push dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
push esi
push dword [ebp - 0x38]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x44]
push esi
push dword [ebp - 0x40]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
push esi
push dword [ebp - 0x48]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
mov eax, dword [ebp - 0x54]
add esp, 0x50
push dword [ebp - 4]
lea eax, [edi + eax*4]
push esi
push dword [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x5c]
push esi
push dword [ebp - 0x58]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
add esi, dword [ebp - 0x60]
add esp, 0x28
add dword [ebp + 0x18], 0x100
dec dword [ebp - 0xc]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp - 0x10]
mov dword [ebp + 0x14], esi
jne 0x1004dd5b
pop edi
pop esi
mov esp, ebp
pop ebp
ret