Function at 0x10068990
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa178
push 0x1006d0a0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x100adb80]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x38], edx
test esi, esi
je 0x10068c07
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10068c07
test eax, eax
je 0x10068c07
test ecx, ecx
je 0x10068c07
test edx, edx
je 0x10068c07
lea eax, [esi + ebx]
cmp esi, eax
ja 0x10068c07
mov dword [ebp - 4], 0
push 0x40
push 0
push ebx
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x10068c00
movdqu xmm1, xmmword [esi]
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [ebp - 0xb0], xmm0
movdqu xmm0, xmmword [esi + 0x20]
movdqu xmmword [ebp - 0xa0], xmm0
movdqu xmm0, xmmword [esi + 0x30]
movdqu xmmword [ebp - 0x90], xmm0
mov ecx, 0x5a4d
movd eax, xmm1
cmp ax, cx
jne 0x10068c00
push 0x18
mov edi, dword [ebp - 0x84]
push edi
push ebx
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x10068c00
movdqu xmm1, xmmword [esi + edi]
movdqu xmmword [ebp - 0x58], xmm1
movq xmm0, qword [esi + edi + 0x10]
movq qword [ebp - 0x48], xmm0
movd eax, xmm1
cmp eax, 0x4550
jne 0x10068c00
mov eax, dword [ebp - 0x54]
shr eax, 0x10
cmp eax, 0x3e8
ja 0x10068c00
mov eax, dword [ebp - 0x44]
shr eax, 0x10
test al, 2
je 0x10068c00
lea eax, [edi + 0x18]
push 2
push eax
push ebx
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x10068c00
movzx eax, word [esi + edi + 0x18]
cmp eax, 0x10b
je 0x10068be2
cmp eax, 0x20b
jne 0x10068c00
movzx esi, word [ebp - 0x44]
cmp esi, 0x70
jb 0x10068c00
push esi
lea eax, [edi + 0x18]
push eax
push ebx
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x10068c00
add esi, 0x18
add esi, edi
xor edi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], edi
movzx eax, word [ebp - 0x52]
cmp edi, eax
jae 0x10068c00
push 0x28
push esi
push ebx
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x10068c00
mov eax, dword [ebp - 0x40]
movdqu xmm1, xmmword [eax + esi]
movdqu xmmword [ebp - 0x80], xmm1
movdqu xmm0, xmmword [eax + esi + 0x10]
movdqu xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + esi + 0x20]
movq qword [ebp - 0x60], xmm0
movd dword [ebp - 0x28], xmm1
psrldq xmm1, 4
movd dword [ebp - 0x24], xmm1
mov byte [ebp - 0x20], 0
push 0x10083368
lea eax, [ebp - 0x28]
push eax
call fcn.10068ee0
add esp, 8
test eax, eax
je 0x10068bee
mov esi, dword [ebp - 0x70]
cmp dword [ebp - 0x78], esi
cmovb esi, dword [ebp - 0x78]
push esi
mov edi, dword [ebp - 0x6c]
push edi
push ebx
push 0
call fcn.10068230
add esp, 0x10
test eax, eax
je 0x10068c00
mov eax, dword [ebp - 0x34]
mov dword [eax], edi
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
jmp 0x10068c09
movzx esi, word [ebp - 0x44]
cmp esi, 0x60
jmp 0x10068b0c
add esi, 0x28
inc edi
jmp 0x10068b31
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006bd1f
mov esp, ebp
pop ebp
ret