Function at 0x1014cef0
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10206f54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x30], 0
mov edi, dword [ebx + 0xd4]
mov eax, edi
cdq
and edx, 7
mov dword [ebp - 0x34], esi
movzx ecx, byte [esi + 0x1c2ac]
add eax, edx
sar eax, 3
mov dword [ebp - 0x2c], eax
cdq
idiv ecx
xor edx, edx
mov ecx, dword [ebx + 0xdc]
mov dword [ebp - 0x44], eax
movzx eax, word [esi + 0x1ac]
div edi
mov edx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebx + 0xdc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], edi
mov dword [ecx + 0x54], edx
mov ecx, dword [ebx + 0xdc]
movzx eax, word [ebx + 0xd8]
cdq
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
lea ecx, [esi + 0x100]
mov eax, dword [ebx + 0xdc]
mov dword [eax + 0x74], edi
mov eax, dword [ebx + 0xdc]
mov dword [eax + 0x78], 0x40
cmp byte [esi + 0x1c274], 0
jbe 0x1014d07b
mov edx, 0xffffffb0
lea eax, [esi + 0x1c2b8]
sub edx, ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], edx
lea edi, [ebx + 0x74]
mov edx, 0xffffffc0
mov eax, 0xffffffa0
sub edx, ebx
sub eax, ebx
mov dword [ebp - 0x50], edx
mov edx, 0xffffffd0
sub edx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], edx
mov edx, 0xffffff8c
sub edx, ebx
mov dword [ebp - 0x28], edx
lea esi, [eax + edi]
mov eax, dword [ebp - 0x38]
mov eax, dword [esi + eax]
imul eax, dword [ecx]
shl eax, 2
shr eax, 6
push eax
push 0
push dword [edi - 0x30]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [edi - 0x30]
mov dword [ebp + edx*4 - 0x14], eax
mov eax, dword [ebx + 0xdc]
mov dword [ebp + edx*4 - 0x24], ecx
add eax, edi
mov edx, dword [ebp - 0x28]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebx + 0xdc]
mov eax, dword [edi]
mov edx, dword [ebp - 0x4c]
add edx, edi
mov dword [esi + ecx], eax
mov ecx, dword [ebx + 0xdc]
mov eax, dword [edi - 0x20]
mov esi, dword [ebp - 0x34]
mov dword [edx + ecx], eax
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebx + 0xdc]
add edx, edi
mov eax, dword [edi - 0x10]
mov dword [edx + ecx], eax
mov ecx, dword [ebx + 0xdc]
mov edx, dword [ebp - 0x54]
add ecx, edi
mov eax, dword [edi + 0x10]
add edi, 4
mov dword [ecx + edx], eax
mov ecx, dword [ebp - 0x30]
movzx eax, byte [esi + 0x1c274]
inc ecx
cmp ecx, eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x40]
lea ecx, [esi + 0x100]
jl 0x1014cfd3
lea ecx, [esi + 0x100]
mov eax, dword [esi + 0x108]
mov edx, 1
mov ecx, dword [ecx]
cmp ecx, eax
cmovae ecx, eax
mov dword [ebp - 0x38], ecx
cmp ecx, edx
jbe 0x1014d0bf
mov eax, 0x80
nop dword [eax]
mov esi, dword [ebx + 0xdc]
inc edx
mov ecx, 0x20
lea edi, [esi + eax]
lea eax, [eax + 0x80]
rep movsd dword es:[edi], dword [esi]
cmp edx, dword [ebp - 0x38]
jb 0x1014d0a0
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
xor edx, edx
imul eax, dword [ebp - 0x48]
xor edi, edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x3c], eax
movzx eax, ax
test eax, eax
je 0x1014d3c9
nop dword [eax + eax]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1014bb20
test al, al
je 0x1014d401
mov eax, dword [ebx + 0xdc]
mov ecx, edi
mov edx, dword [ebp - 0x30]
shl ecx, 7
mov dword [eax + ecx + 0x58], edx
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebp - 0x44]
mov dword [ecx + eax + 0x70], edx
mov eax, dword [ebx + 0xdc]
add eax, ecx
cmp byte [ebx + 0xe0], 0
push eax
je 0x1014d3ab
mov ecx, dword [esi + 0x1c35c]
call fcn.1017ff40
inc edi
mov dword [ebp - 0x28], edi
cmp edi, dword [ebp - 0x38]
jne 0x1014d157
mov ecx, dword [esi + 0x1c35c]
xor edi, edi
mov dword [ebp - 0x28], edi
call fcn.1017fff0
mov edx, dword [esi + 0x1c2cc]
mov eax, dword [ebx + 0x44]
imul edx, edi
shl edi, 7
mov ecx, edx
shr ecx, 6
lea esi, [eax + ecx*4]
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0x24], esi
lea ecx, [eax + edx*2]
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov dword [eax + edi + 4], esi
mov eax, dword [ebx + 0xdc]
mov esi, dword [ebp - 0x34]
mov dword [eax + edi + 0x14], ecx
mov ecx, dword [esi + 0x1c2cc]
mov eax, dword [ebx + 0x54]
imul ecx, edx
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x24], ecx
movzx ecx, byte [esi + 0x1c2ad]
mov eax, dword [ebx + 0xdc]
imul ecx, edx
imul ecx, dword [ebp - 0x2c]
shl ecx, 7
add ecx, dword [ebx + 0x64]
mov dword [eax + edi + 0x34], ecx
movzx ecx, byte [esi + 0x1c2ad]
mov eax, dword [ebx + 0x84]
imul ecx, edx
imul ecx, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x44], ecx
mov esi, dword [esi + 0x1c2d0]
mov eax, dword [ebx + 0x48]
imul esi, edx
mov ecx, esi
shr ecx, 6
lea edx, [eax + ecx*4]
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x20], edx
lea ecx, [eax + esi*2]
mov eax, dword [ebx + 0xdc]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov dword [eax + edi + 8], edx
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebp - 0x34]
mov dword [eax + edi + 0x18], ecx
mov ecx, dword [edx + 0x1c2d0]
mov eax, dword [ebx + 0x58]
imul ecx, esi
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x28], ecx
movzx ecx, byte [edx + 0x1c2ad]
mov eax, dword [ebx + 0xdc]
imul ecx, esi
imul ecx, dword [ebp - 0x2c]
shl ecx, 7
add ecx, dword [ebx + 0x68]
mov dword [eax + edi + 0x38], ecx
movzx ecx, byte [edx + 0x1c2ad]
mov eax, dword [ebx + 0x88]
imul ecx, esi
imul ecx, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x48], ecx
mov esi, dword [edx + 0x1c2d4]
imul esi, dword [ebp - 0x28]
mov eax, dword [ebx + 0x4c]
mov ecx, esi
shr ecx, 6
lea edx, [eax + ecx*4]
mov eax, dword [ebx + 0x7c]
mov dword [ebp - 0x1c], edx
lea ecx, [eax + esi*2]
mov eax, dword [ebx + 0xdc]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
mov dword [eax + edi + 0xc], edx
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebp - 0x34]
mov dword [eax + edi + 0x1c], ecx
mov ecx, dword [edx + 0x1c2d4]
mov eax, dword [ebx + 0x5c]
imul ecx, esi
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x2c], ecx
movzx ecx, byte [edx + 0x1c2ad]
mov eax, dword [ebx + 0xdc]
imul ecx, esi
imul ecx, dword [ebp - 0x2c]
shl ecx, 7
add ecx, dword [ebx + 0x6c]
mov dword [eax + edi + 0x3c], ecx
movzx ecx, byte [edx + 0x1c2ad]
mov eax, dword [ebx + 0x8c]
imul ecx, esi
imul ecx, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x4c], ecx
mov esi, dword [edx + 0x1c2d8]
imul esi, dword [ebp - 0x28]
mov eax, dword [ebx + 0x50]
mov ecx, esi
shr ecx, 6
lea edx, [eax + ecx*4]
mov eax, dword [ebx + 0x80]
mov dword [ebp - 0x18], edx
lea ecx, [eax + esi*2]
mov eax, dword [ebx + 0xdc]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 8], ecx
mov dword [eax + edi + 0x10], edx
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebp - 0x28]
mov dword [eax + edi + 0x20], ecx
mov ecx, dword [esi + 0x1c2d8]
mov eax, dword [ebx + 0x60]
imul ecx, edx
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x30], ecx
movzx ecx, byte [esi + 0x1c2ad]
mov eax, dword [ebx + 0xdc]
imul ecx, edx
imul ecx, dword [ebp - 0x2c]
shl ecx, 7
add ecx, dword [ebx + 0x70]
mov dword [eax + edi + 0x40], ecx
movzx ecx, byte [esi + 0x1c2ad]
mov eax, dword [ebx + 0x90]
imul ecx, edx
imul ecx, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x50], ecx
mov edi, edx
jmp 0x1014d3b2
mov ecx, esi
call fcn.1014d480
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
movzx eax, cx
mov dword [ebp - 0x30], edx
cmp edx, eax
jl 0x1014d0e0
movzx eax, word [esi + 0x1ac]
movzx ecx, byte [esi + 0x1c2ac]
sub eax, edx
dec eax
shl ecx, 3
add eax, ecx
cdq
idiv ecx
mov dword [ebp - 0x40], eax
test eax, eax
jle 0x1014d460
push ebx
push dword [ebp + 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1014bb20
test al, al
jne 0x1014d41d
pop edi
mov dword [esi + 0x48], 0xfffffffb
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0xdc]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
shl edi, 7
mov dword [eax + edi + 0x58], edx
mov eax, dword [ebx + 0xdc]
mov dword [eax + edi + 0x70], ecx
mov eax, dword [ebx + 0xdc]
add eax, edi
cmp byte [ebx + 0xe0], 0
push eax
je 0x1014d459
mov ecx, dword [esi + 0x1c35c]
call fcn.1017ff40
jmp 0x1014d460
mov ecx, esi
call fcn.1014d480
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a8b60
mov esp, ebp
pop ebp
ret 8