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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc74
mov eax, dword [0x4bd910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc08], ecx
mov ecx, dword [ebp - 0xc08]
call fcn.004594f0
mov dword [ebp - 0xc6c], eax
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0xa4]
shl ecx, 1
mov edx, dword [ebp - 0xc08]
cmp dword [edx + 0x9c], ecx
jne 0x45af8e
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0xa8]
shl ecx, 1
mov edx, dword [ebp - 0xc08]
cmp dword [edx + 0xa0], ecx
jne 0x45af8e
mov dword [ebp - 0xc0c], 1
mov dword [ebp - 0xc14], 2
jmp 0x45b038
mov eax, dword [ebp - 0xc08]
imul ecx, dword [eax + 0x9c], 5
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0xa4]
shl eax, 3
cmp ecx, eax
jne 0x45afe4
mov ecx, dword [ebp - 0xc08]
imul edx, dword [ecx + 0xa0], 5
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0xa8]
shl ecx, 3
cmp edx, ecx
jne 0x45afe4
mov dword [ebp - 0xc0c], 5
mov dword [ebp - 0xc14], 8
jmp 0x45b038
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0x9c]
shl eax, 2
mov ecx, dword [ebp - 0xc08]
imul edx, dword [ecx + 0xa4], 5
cmp eax, edx
jne 0x45b038
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0xa0]
shl ecx, 2
mov edx, dword [ebp - 0xc08]
imul eax, dword [edx + 0xa8], 5
cmp ecx, eax
jne 0x45b038
mov dword [ebp - 0xc0c], 4
mov dword [ebp - 0xc14], 5
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
cdq
idiv dword [ebp - 0xc0c]
imul eax, dword [ebp - 0xc0c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x14]
cdq
idiv dword [ebp - 0xc0c]
imul eax, dword [ebp - 0xc0c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 0xc0c]
imul eax, dword [ebp - 0xc0c]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
cdq
idiv dword [ebp - 0xc0c]
imul eax, dword [ebp - 0xc0c]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0xc08]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xa4]
jle 0x45b0ae
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0xa4]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 0xc08]
mov eax, dword [ebp + 0x14]
cmp eax, dword [edx + 0xa8]
jle 0x45b0ce
mov ecx, dword [ebp - 0xc08]
mov edx, dword [ecx + 0xa8]
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0x14]
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x10]
cdq
idiv dword [ebp - 0xc0c]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
cdq
idiv dword [ebp - 0xc0c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
cdq
idiv dword [ebp - 0xc0c]
imul eax, dword [ebp - 0xc14]
mov dword [ebp - 0xc40], eax
mov eax, dword [ebp + 0xc]
cdq
idiv dword [ebp - 0xc0c]
imul eax, dword [ebp - 0xc14]
mov dword [ebp - 0xc58], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
lea ecx, [eax + edx*4]
mov edx, dword [ebp - 0xc08]
mov eax, dword [ebp + 0xc]
imul eax, dword [edx + 0xa4]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0xc18], ecx
mov edx, dword [ebp - 0xc40]
mov eax, dword [ebp - 0xc6c]
lea ecx, [eax + edx*4]
mov edx, dword [ebp - 0xc08]
mov eax, dword [ebp - 0xc58]
imul eax, dword [edx + 0x9c]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0xc10], ecx
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0x9c]
mov ecx, dword [ebp - 0xc10]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc20], edx
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0x9c]
mov edx, dword [ebp - 0xc20]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xc34], eax
mov ecx, dword [ebp - 0xc08]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0xc34]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc68], ecx
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0x9c]
mov ecx, dword [ebp - 0xc68]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc48], edx
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0x9c]
mov edx, dword [ebp - 0xc48]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xc60], eax
mov ecx, dword [ebp - 0xc08]
mov edx, dword [ecx + 0x9c]
mov eax, dword [ebp - 0xc60]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc50], ecx
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0x9c]
mov ecx, dword [ebp - 0xc50]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc74], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc24], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc1c], ecx
cmp dword [ebp - 0xc0c], 1
jne 0x45b35b
cmp dword [ebp - 0xc14], 2
jne 0x45b35b
mov edx, dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc1c]
sub eax, 1
mov dword [ebp - 0xc1c], eax
test edx, edx
je 0x45b356
pushaw
mov esi, dword [ebp - 0xc10]
mov edi, dword [ebp - 0xc20]
mov ebx, dword [ebp - 0xc18]
mov ecx, dword [ebp - 0xc24]
mov eax, dword [esi]
and eax, 0xff00ff
mov edx, dword [esi + 4]
and edx, 0xff00ff
add eax, edx
mov edx, dword [edi]
and edx, 0xff00ff
add eax, edx
mov edx, dword [edi + 4]
and edx, 0xff00ff
add eax, edx
shr eax, 2
mov dl, byte [esi + 1]
mov dh, 0
add dl, byte [esi + 5]
adc dh, 0
add dl, byte [edi + 1]
adc dh, 0
add dl, byte [edi + 5]
adc dh, 0
shr edx, 2
mov ah, dl
mov dword [ebx], eax
add ebx, 4
add esi, 8
add edi, 8
dec ecx
jne 0x45b295
popaw
mov ecx, dword [ebp - 0xc08]
mov edx, dword [ecx + 0xa4]
imul edx, dword [ebp - 0xc0c]
mov eax, dword [ebp - 0xc18]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc18], ecx
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0x9c]
imul eax, dword [ebp - 0xc14]
mov ecx, dword [ebp - 0xc10]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc10], edx
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0x9c]
imul ecx, dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc20]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xc20], eax
jmp 0x45b25e
jmp 0x45ba44
cmp dword [ebp - 0xc0c], 5
jne 0x45b746
cmp dword [ebp - 0xc14], 8
jne 0x45b746
mov ecx, dword [ebp - 0xc08]
mov edx, dword [ecx + 0x9c]
shl edx, 2
mov dword [ebp - 0xc70], edx
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0xa4]
shl ecx, 2
mov dword [ebp - 0xc38], ecx
mov edx, dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc1c]
sub eax, 1
mov dword [ebp - 0xc1c], eax
test edx, edx
je 0x45b741
mov ecx, dword [ebp - 0xc10]
mov dword [ebp - 0xc44], ecx
mov edx, dword [ebp - 0xc18]
mov dword [ebp - 0xc3c], edx
mov dword [ebp - 0xc2c], 0
jmp 0x45b3ef
mov eax, dword [ebp - 0xc2c]
add eax, 1
mov dword [ebp - 0xc2c], eax
mov ecx, dword [ebp - 0xc2c]
cmp ecx, dword [ebp - 0xc24]
jge 0x45b6f8
pushaw
mov esi, dword [ebp - 0xc10]
lea edi, [ebp - 0xc04]
mov ecx, 8
mov edx, dword [esi]
mov eax, edx
and eax, 0xff
mov ebx, eax
shl eax, 2
add eax, ebx
mov dword [edi], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
shl eax, 2
add eax, ebx
mov dword [edi + 4], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
shl eax, 2
add eax, ebx
mov dword [edi + 8], eax
mov edx, dword [esi + 4]
mov eax, edx
and eax, 0xff
mov ebx, eax
add eax, eax
mov dword [edi + 0xc], eax
add eax, ebx
add dword [edi], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
add eax, eax
mov dword [edi + 0x10], eax
add eax, ebx
add dword [edi + 4], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
add eax, eax
mov dword [edi + 0x14], eax
add eax, ebx
add dword [edi + 8], eax
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xff
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0xc], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x10], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x14], eax
mov edx, dword [esi + 0xc]
mov eax, edx
and eax, 0xff
add dword [edi + 0xc], eax
shl eax, 2
mov dword [edi + 0x18], eax
mov eax, edx
and eax, 0xff00
add dword [edi + 0x10], eax
shl eax, 2
mov dword [edi + 0x1c], eax
mov eax, edx
and eax, 0xff0000
add dword [edi + 0x14], eax
shl eax, 2
mov dword [edi + 0x20], eax
mov edx, dword [esi + 0x10]
mov eax, edx
and eax, 0xff
mov dword [edi + 0x24], eax
shl eax, 2
add dword [edi + 0x18], eax
mov eax, edx
and eax, 0xff00
mov dword [edi + 0x28], eax
shl eax, 2
add dword [edi + 0x1c], eax
mov eax, edx
and eax, 0xff0000
mov dword [edi + 0x2c], eax
shl eax, 2
add dword [edi + 0x20], eax
mov edx, dword [esi + 0x14]
mov eax, edx
and eax, 0xff
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x24], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x28], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x2c], eax
mov edx, dword [esi + 0x18]
mov eax, edx
and eax, 0xff
mov ebx, eax
add eax, eax
add dword [edi + 0x24], eax
add eax, ebx
mov dword [edi + 0x30], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
add eax, eax
add dword [edi + 0x28], eax
add eax, ebx
mov dword [edi + 0x34], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
add eax, eax
add dword [edi + 0x2c], eax
add eax, ebx
mov dword [edi + 0x38], eax
mov edx, dword [esi + 0x1c]
mov eax, edx
and eax, 0xff
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x30], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x34], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x38], eax
add esi, dword [ebp - 0xc70]
add edi, 0x3c
dec ecx
jne 0x45b414
mov ecx, 0xf
lea esi, [ebp - 0xc04]
lea edi, [ebp - 0xa24]
mov eax, dword [esi]
mov ebx, eax
shl eax, 2
add eax, ebx
mov dword [edi], eax
mov eax, dword [esi + 0x3c]
mov ebx, eax
add eax, eax
mov dword [edi + 0x3c], eax
add eax, ebx
add dword [edi], eax
mov eax, dword [esi + 0x78]
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0x3c], eax
mov eax, dword [esi + 0xb4]
add dword [edi + 0x3c], eax
shl eax, 2
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0xf0]
mov dword [edi + 0xb4], eax
shl eax, 2
add dword [edi + 0x78], eax
mov eax, dword [esi + 0x12c]
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0xb4], eax
mov eax, dword [esi + 0x168]
mov ebx, eax
add eax, eax
add dword [edi + 0xb4], eax
add eax, ebx
mov dword [edi + 0xf0], eax
mov eax, dword [esi + 0x1a4]
mov ebx, eax
shl eax, 2
add eax, ebx
add dword [edi + 0xf0], eax
add esi, 4
add edi, 4
dec ecx
jne 0x45b5e8
lea esi, [ebp - 0xa24]
mov edi, dword [ebp - 0xc18]
mov ebx, 5
push edi
mov ecx, 5
mov eax, dword [esi]
shr eax, 6
mov edx, dword [esi + 4]
shr edx, 6
and edx, 0xff00
or eax, edx
mov edx, dword [esi + 8]
shr edx, 6
and edx, 0xff0000
or eax, edx
mov dword [edi], eax
add esi, 0xc
add edi, 4
dec ecx
jne 0x45b691
pop edi
add edi, dword [ebp - 0xc38]
dec ebx
jne 0x45b68b
popaw
mov edx, dword [ebp - 0xc0c]
mov eax, dword [ebp - 0xc18]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc18], ecx
mov edx, dword [ebp - 0xc14]
mov eax, dword [ebp - 0xc10]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc10], ecx
jmp 0x45b3e0
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0xa4]
imul eax, dword [ebp - 0xc0c]
mov ecx, dword [ebp - 0xc3c]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc18], edx
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0x9c]
imul ecx, dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc44]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xc10], eax
jmp 0x45b39f
jmp 0x45ba44
cmp dword [ebp - 0xc0c], 4
jne 0x45ba44
cmp dword [ebp - 0xc14], 5
jne 0x45ba44
mov ecx, dword [ebp - 0xc08]
mov edx, dword [ecx + 0x9c]
shl edx, 2
mov dword [ebp - 0xc4c], edx
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0xa4]
shl ecx, 2
mov dword [ebp - 0xc54], ecx
mov dword [ebp - 0xc28], 0xa3d70a3
mov edx, dword [ebp - 0xc1c]
mov eax, dword [ebp - 0xc1c]
sub eax, 1
mov dword [ebp - 0xc1c], eax
test edx, edx
je 0x45ba44
mov ecx, dword [ebp - 0xc10]
mov dword [ebp - 0xc64], ecx
mov edx, dword [ebp - 0xc18]
mov dword [ebp - 0xc5c], edx
mov dword [ebp - 0xc30], 0
jmp 0x45b7e4
mov eax, dword [ebp - 0xc30]
add eax, 1
mov dword [ebp - 0xc30], eax
mov ecx, dword [ebp - 0xc30]
cmp ecx, dword [ebp - 0xc24]
jge 0x45b9fb
pushaw
mov esi, dword [ebp - 0xc10]
lea edi, [ebp - 0xc04]
mov ecx, 5
mov edx, dword [esi]
mov eax, edx
and eax, 0xff
shl eax, 2
mov dword [edi], eax
mov eax, edx
and eax, 0xff00
shl eax, 2
mov dword [edi + 4], eax
mov eax, edx
and eax, 0xff0000
shl eax, 2
mov dword [edi + 8], eax
mov edx, dword [esi + 4]
mov eax, edx
and eax, 0xff
mov ebx, eax
add dword [edi], eax
add eax, eax
add eax, ebx
mov dword [edi + 0xc], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
add dword [edi + 4], eax
add eax, eax
add eax, ebx
mov dword [edi + 0x10], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
add dword [edi + 8], eax
add eax, eax
add eax, ebx
mov dword [edi + 0x14], eax
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xff
add eax, eax
add dword [edi + 0xc], eax
mov dword [edi + 0x18], eax
mov eax, edx
and eax, 0xff00
add eax, eax
add dword [edi + 0x10], eax
mov dword [edi + 0x1c], eax
mov eax, edx
and eax, 0xff0000
add eax, eax
add dword [edi + 0x14], eax
mov dword [edi + 0x20], eax
mov edx, dword [esi + 0xc]
mov eax, edx
and eax, 0xff
mov ebx, eax
mov dword [edi + 0x24], eax
add eax, eax
add eax, ebx
add dword [edi + 0x18], eax
mov eax, edx
and eax, 0xff00
mov ebx, eax
mov dword [edi + 0x28], eax
add eax, eax
add eax, ebx
add dword [edi + 0x1c], eax
mov eax, edx
and eax, 0xff0000
mov ebx, eax
mov dword [edi + 0x2c], eax
add eax, eax
add eax, ebx
add dword [edi + 0x20], eax
mov edx, dword [esi + 0x10]
mov eax, edx
and eax, 0xff
shl eax, 2
add dword [edi + 0x24], eax
mov eax, edx
and eax, 0xff00
shl eax, 2
add dword [edi + 0x28], eax
mov eax, edx
and eax, 0xff0000
shl eax, 2
add dword [edi + 0x2c], eax
add esi, dword [ebp - 0xc4c]
add edi, 0x30
dec ecx
jne 0x45b809
mov ecx, 0xc
lea esi, [ebp - 0xc04]
lea edi, [ebp - 0xb14]
mov eax, dword [esi]
shl eax, 2
mov dword [edi], eax
mov eax, dword [esi + 0x30]
mov ebx, eax
add dword [edi], eax
add eax, eax
add eax, ebx
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x60]
add eax, eax
add dword [edi + 0x30], eax
mov dword [edi + 0x60], eax
mov eax, dword [esi + 0x90]
mov ebx, eax
mov dword [edi + 0x90], eax
add eax, eax
add eax, ebx
add dword [edi + 0x60], eax
mov eax, dword [esi + 0xc0]
shl eax, 2
add dword [edi + 0x90], eax
add esi, 4
add edi, 4
dec ecx
jne 0x45b923
lea esi, [ebp - 0xb14]
mov edi, dword [ebp - 0xc18]
mov ecx, 4
push ecx
push edi
mov ecx, 4
mov eax, dword [esi]
mul dword [ebp - 0xc28]
mov ebx, edx
mov eax, dword [esi + 4]
mul dword [ebp - 0xc28]
and edx, 0xff00
or ebx, edx
mov eax, dword [esi + 8]
mul dword [ebp - 0xc28]
and edx, 0xff0000
or ebx, edx
mov dword [edi], ebx
add esi, 0xc
add edi, 4
dec ecx
jne 0x45b988
pop edi
pop ecx
add edi, dword [ebp - 0xc54]
dec ecx
jne 0x45b981
popaw
mov edx, dword [ebp - 0xc0c]
mov eax, dword [ebp - 0xc18]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc18], ecx
mov edx, dword [ebp - 0xc14]
mov eax, dword [ebp - 0xc10]
lea ecx, [eax + edx*4]
mov dword [ebp - 0xc10], ecx
jmp 0x45b7d5
mov edx, dword [ebp - 0xc08]
mov eax, dword [edx + 0xa4]
imul eax, dword [ebp - 0xc0c]
mov ecx, dword [ebp - 0xc5c]
lea edx, [ecx + eax*4]
mov dword [ebp - 0xc18], edx
mov eax, dword [ebp - 0xc08]
mov ecx, dword [eax + 0x9c]
imul ecx, dword [ebp - 0xc14]
mov edx, dword [ebp - 0xc64]
lea eax, [edx + ecx*4]
mov dword [ebp - 0xc10], eax
jmp 0x45b794
mov ecx, dword [ebp - 0xc08]
call fcn.00459fa0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00471a6a
mov esp, ebp
pop ebp
ret 0x14