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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov edx, dword [eax + 0x188]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x461423
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.00460fc0
cmp ebx, 8
mov eax, dword [esp + 0x2c]
jg 0x4611ae
mov edx, dword [eax + 0x184]
mov ecx, 0x186a0
test edx, edx
jle 0x461188
mov eax, dword [eax + 0x2c0]
xor ecx, ecx
test eax, eax
je 0x461188
call fcn.0045e060
mov ecx, eax
mov esi, dword [esp + 0x2c]
mov eax, esi
lea edx, [esi + 0x188]
call fcn.0045e120
test dword [esi + 0x78], 0x600080
jne 0x4613d2
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [eax + 0x14b], 2
jne 0x4611f4
mov eax, dword [esp + 0x2c]
movzx edx, byte [eax + 0x1a3]
lea eax, [edx - 1]
cmp al, 0xe
jbe 0x46121c
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x78]
mov edx, eax
and edx, 0x4000400
mov dword [esp + 0x10], eax
je 0x461566
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], 5
jmp 0x461254
mov ecx, eax
movzx eax, byte [eax + 0x1a0]
movzx edx, byte [ecx + 0x1a1]
cmp dl, al
cmovb edx, eax
movzx eax, byte [ecx + 0x1a2]
cmp dl, al
cmovb edx, eax
lea eax, [edx - 1]
cmp al, 0xe
ja 0x4611c9
mov ecx, dword [esp + 0x2c]
mov eax, 0x10
sub eax, edx
mov ecx, dword [ecx + 0x78]
mov edx, ecx
and edx, 0x4000400
mov dword [esp + 0x10], ecx
jne 0x461436
cmp al, 8
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 8
jbe 0x461568
mov eax, dword [esp + 0x2c]
test edx, edx
mov esi, dword [esp + 0x34]
mov dword [eax + 0x180], esi
je 0x46145a
mov ecx, eax
mov eax, dword [eax + 0x184]
mov dword [esp + 0x20], 0x186a0
test eax, eax
jle 0x4612d0
fild dword [ecx + 0x2c0]
fmul qword [0x566ca8]
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fmulp st(1)
fadd dword [0x566cb4]
fstp qword [esp]
call fcn.004bf2a0
fld qword [0x566cc0]
fucompi st(1)
jb 0x46153e
fld dword [0x566cc8]
fxch st(1)
fucomi st(1)
fstp st(1)
jb 0x461542
fstp qword [esp + 0x10]
cvttsd2si eax, qword [esp + 0x10]
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x30]
mov eax, 1
mov dword [esp + 0x28], 8
mov esi, eax
mov ebx, dword [esp + 0x2c]
sub dword [esp + 0x28], edi
movzx ecx, byte [esp + 0x28]
mov dword [esp], ebx
shl esi, cl
mov ecx, 0x10
sub ecx, edi
shl eax, cl
sub eax, 1
mov dword [esp + 0x24], eax
lea eax, [esi*4]
mov dword [esp + 4], eax
mov dword [esp + 0x38], esi
call fcn.004633d0
mov edi, eax
mov eax, ebx
mov dword [ebx + 0x18c], edi
mov ebp, eax
xor ebx, ebx
mov dword [esp + 4], 0x200
mov dword [esp], ebp
call fcn.00463390
mov dword [edi + ebx*4], eax
add ebx, 1
cmp esi, ebx
ja 0x461327
movzx ecx, byte [esp + 0x34]
mov ebp, 0xff
xor ebx, ebx
mov dword [esp + 0x1c], pe_nt_image_headers32
shr ebp, cl
mov dword [esp + 0x10], ebp
nop
lea esi, [esi]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ecx, eax
lea esi, [ecx - 0x80]
call fcn.0045e1a0
movzx eax, ax
imul eax, dword [esp + 0x24]
lea edx, [eax + 0x8000]
mov eax, 0x80008001
mul edx
shr edx, 0xf
add edx, 1
cmp edx, ebx
jbe 0x461453
mov ecx, dword [esp + 0x28]
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov ebp, ebx
shr ebp, cl
and eax, ebx
add ebx, 1
mov eax, dword [edi + eax*4]
cmp edx, ebx
mov word [eax + ebp*2], si
jne 0x4613a0
add dword [esp + 0x1c], 0x101
cmp dword [esp + 0x1c], 0x1007f
je 0x4614fa
mov ebx, edx
jmp 0x461360
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 0x2c0]
mov dword [esp], eax
call fcn.00460660
lea edx, [esi + 0x194]
mov ecx, eax
mov eax, esi
call fcn.0045e120
mov eax, dword [esi + 0x184]
test eax, eax
jle 0x461557
mov dword [esp], eax
call fcn.00460660
mov esi, dword [esp + 0x2c]
add esp, 0x4c
mov ecx, eax
pop ebx
lea edx, [esi + 0x190]
mov eax, esi
pop esi
pop edi
pop ebp
jmp fcn.0045e120
mov eax, dword [eax + 0x18c]
test eax, eax
jne 0x461151
jmp 0x46115d
cmp al, 4
ja 0x46123c
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], 5
jmp 0x461254
mov edx, ebx
jmp 0x4613b8
mov eax, dword [esp + 0x2c]
mov ecx, 0x186a0
mov edx, dword [eax + 0x184]
test edx, edx
jle 0x46147d
mov eax, dword [eax + 0x2c0]
xor ecx, ecx
test eax, eax
jne 0x461532
mov eax, dword [esp + 0x2c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x30]
lea edx, [eax + 0x18c]
call fcn.0045d460
mov eax, dword [esp + 0x2c]
test dword [eax + 0x78], 0x600080
je 0x4611a6
mov esi, eax
mov eax, dword [eax + 0x2c0]
mov dword [esp], eax
call fcn.00460660
mov ecx, dword [esp + 0x30]
lea edx, [esi + 0x19c]
mov dword [esp], eax
mov eax, esi
call fcn.0045d460
mov eax, dword [esi + 0x184]
test eax, eax
jle 0x46154b
mov dword [esp], eax
call fcn.00460660
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x30]
add esp, 0x4c
pop ebx
lea edx, [esi + 0x198]
mov eax, esi
pop esi
pop edi
pop ebp
jmp fcn.0045d460
mov ebx, dword [esp + 0x38]
mov esi, 0xff
movzx ecx, byte [esp + 0x34]
shl ebx, 8
sar esi, cl
cmp ebx, edx
jbe 0x461493
mov ecx, dword [esp + 0x28]
mov eax, edx
mov ebp, edx
and eax, esi
add edx, 1
mov eax, dword [edi + eax*4]
shr ebp, cl
cmp edx, ebx
mov word [eax + ebp*2], 0xffff
jne 0x461515
jmp 0x461493
call fcn.0045e060
mov ecx, eax
jmp 0x46147d
fstp st(0)
jmp 0x461544
fstp st(0)
xor eax, eax
jmp 0x4612cc
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x2c0]
jmp 0x4614da
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x2c0]
jmp 0x461409
xor eax, eax
movzx eax, al
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
jmp 0x461254