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

Disassembly:
push 0xffffffffffffffff
push 0x5d94cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x10]
push edi
lea ecx, [esp + 0x10]
lea edi, [esi + 0xc]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x40], esi
call fcn.00545350
mov eax, dword [esp + 0x10]
test eax, eax
je 0x561b19
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x561b26
mov eax, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 8]
call fcn.004975d0
mov edx, dword [esi]
test al, al
jne 0x561b53
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
mov ecx, esi
call dword [edx + 0x68]
test eax, eax
je 0x561b62
mov eax, 1
jmp 0x562124
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [esi + 0x24]
mov ebp, dword [esi + 0x28]
push 0xffffffffffffffff
mov ecx, edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], ebp
call fcn.00544b40
push 0xffffff
mov ecx, edi
call fcn.00544b30
mov eax, dword [esi + 0x20]
push 4
mov ecx, edi
mov dword [esp + 0x50], eax
call fcn.00544ac0
mov ebx, dword [esi + 0x30]
mov ecx, dword [esi + 0x44]
mov dword [esp + 0x20], ecx
mov ecx, edi
lea edx, [ebx*4]
mov dword [esp + 0x24], ebx
push edx
call fcn.00544b20
mov eax, dword [esp + 0x20]
lea ecx, [eax*4]
push ecx
mov ecx, edi
call fcn.00544b60
lea ecx, [esp + 0x3c]
call fcn.00496760
mov ecx, dword [esp + 0x44]
push 1
mov dword [esp + 0xc0], 0
call fcn.00496c80
lea edx, [esp + 0x2c]
lea eax, [esp + 0x30]
push edx
push eax
mov ecx, edi
call fcn.00545350
mov eax, dword [esp + 0x30]
test eax, eax
je 0x561c05
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jne 0x561c14
mov ecx, 1
mov eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
push ecx
mov ecx, dword [esp + 0x48]
push eax
call fcn.00496a80
test eax, eax
je 0x561c41
lea ecx, [esp + 0x3c]
mov dword [esp + 0xbc], 0xffffffff
call fcn.004969f0
mov eax, 2
jmp 0x562124
mov ecx, dword [esp + 0x44]
call fcn.00496c90
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
shl ecx, 2
shl edx, 2
push ecx
push edx
push eax
mov ecx, edi
call fcn.00545200
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x10]
sar eax, 2
sar ecx, 2
cmp eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
jge 0x561c82
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp ecx, eax
jge 0x561c90
mov eax, ecx
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x34]
xor ecx, ecx
mov cl, byte [esp + 0x36]
mov edx, edi
and edx, 0xff
and edi, 0xff00
shl edx, 0x10
add ecx, edx
add ecx, edi
xor edi, edi
test eax, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edi
jle 0x561e49
jmp 0x561cc7
mov edi, dword [esp + 0x18]
mov esi, dword [esi + 8]
mov ecx, esi
call fcn.00496c00
mov ecx, esi
mov ebx, eax
call fcn.00497810
mov ecx, dword [ebx + 8]
imul ecx, edi
lea ebx, [eax + ecx*4]
mov ecx, dword [esp + 0x44]
mov esi, ecx
call fcn.00496c00
mov ecx, esi
mov ebp, eax
call fcn.00497810
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x44]
imul edx, edi
mov esi, eax
shl edx, 4
add esi, edx
call fcn.00496c00
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x44]
lea edi, [esi + eax*4]
call fcn.00496c00
mov ecx, dword [eax + 8]
lea ebp, [edi + ecx*4]
mov ecx, dword [esp + 0x44]
call fcn.00496c00
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x10]
test eax, eax
lea ecx, [ebp + edx*4]
mov dword [esp + 0x1c], 0
jle 0x561e28
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
and edx, 0xff
and eax, 0xff
add eax, edx
mov edx, dword [ecx + 4]
and edx, 0xff
add ebx, 4
add eax, edx
mov edx, dword [ebp + 0xc]
and edx, 0xff
add esi, 0x10
add eax, edx
mov edx, dword [ebp + 8]
and edx, 0xff
add edi, 0x10
add eax, edx
mov edx, dword [ebp + 4]
and edx, 0xff
add ebp, 0x10
add eax, edx
mov edx, dword [edi - 4]
and edx, 0xff
add ecx, 0x10
add eax, edx
mov edx, dword [edi - 8]
and edx, 0xff
add eax, edx
mov edx, dword [edi - 0xc]
and edx, 0xff
add eax, edx
mov edx, dword [esi - 4]
and edx, 0xff
add eax, edx
mov edx, dword [esi - 8]
and edx, 0xff
add eax, edx
mov edx, dword [esi - 0xc]
and edx, 0xff
add eax, edx
mov edx, dword [ecx - 0x10]
and edx, 0xff
add eax, edx
mov edx, dword [ebp - 0x10]
and edx, 0xff
add eax, edx
mov edx, dword [edi - 0x10]
and edx, 0xff
add eax, edx
mov edx, dword [esi - 0x10]
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x28]
and eax, 0xff0
shl eax, 0x14
add eax, edx
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x561d46
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x561cc3
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x48]
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
call fcn.00544b20
mov eax, dword [esp + 0x20]
mov ecx, edi
push eax
call fcn.00544b60
cmp ebp, 0xffffffff
je 0x5620db
lea ecx, [esp + 0x50]
call fcn.00560e50
mov ecx, dword [0x5da354]
lea edx, [edi + 4]
push ecx
push 0
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0xc8], 1
call fcn.00403f40
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x78], edx
mov edx, dword [0x5da354]
mov dword [esp + 0x74], ecx
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x7c], eax
push edx
lea eax, [edi + 0x28]
mov dword [esp + 0x84], ecx
push 0
push eax
lea ecx, [esp + 0x90]
call fcn.00403f40
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
mov al, byte [edi + 0x40]
mov dword [esp + 0x94], ecx
mov cl, byte [edi + 0x41]
mov dword [esp + 0x98], edx
mov dl, byte [edi + 0x42]
mov byte [esp + 0x9d], cl
mov ecx, dword [edi + 0x48]
mov byte [esp + 0x9c], al
mov eax, dword [edi + 0x44]
mov dword [esp + 0xa4], ecx
push ebp
lea ecx, [esp + 0x60]
mov byte [esp + 0xa2], dl
mov dword [esp + 0xa4], eax
call fcn.00544b30
push 0xffffffffffffffff
lea ecx, [esp + 0x60]
call fcn.00544b40
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x50]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
call fcn.005613c0
mov eax, dword [esp + 0x14]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], ebx
jle 0x5620b1
mov edi, dword [esi + 8]
mov ecx, edi
call fcn.00496c00
mov ecx, edi
mov ebp, eax
call fcn.00497810
mov ecx, dword [ebp + 8]
imul ecx, ebx
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], edx
mov edi, ecx
call fcn.00496c00
mov ecx, edi
mov ebp, eax
call fcn.00497810
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], 0
imul ecx, ebx
lea ebp, [eax + ecx*4]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x1c], ebp
jle 0x56209c
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
mov edi, ecx
mov eax, 0xff
mov ebx, dword [edx]
mov esi, ebx
shr esi, 0x18
shr edi, 0x18
sub eax, esi
imul edi, eax
mov eax, 0x80808081
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x20], edx
lea edi, [edx + esi]
test edi, edi
je 0x56206d
test edx, edx
jne 0x561ffa
mov dword [ebp], ebx
jmp 0x56206d
mov eax, ebx
mov ebp, ecx
and eax, 0xff0000
and ebp, 0xff0000
imul eax, esi
imul ebp, edx
add eax, ebp
xor edx, edx
div edi
mov edx, ecx
and ecx, 0xff
and edx, 0xff00
imul ecx, dword [esp + 0x20]
imul edx, dword [esp + 0x20]
mov ebp, eax
mov eax, ebx
and eax, 0xff00
and ebp, 0xff0000
imul eax, esi
add eax, edx
xor edx, edx
div edi
xor edx, edx
and eax, 0xff00
add ebp, eax
mov eax, ebx
and eax, 0xff
imul eax, esi
add eax, ecx
div edi
shl edi, 0x18
add ebp, eax
mov eax, dword [esp + 0x18]
add ebp, edi
mov dword [eax], ebp
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add edi, 4
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jl 0x561fb6
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
mov dword [esp + 0x28], ebx
jl 0x561f61
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x50], 0x5db48c
lea ecx, [esp + 0x5c]
mov byte [esp + 0xbc], 2
call fcn.00544a40
lea ecx, [esp + 0x50]
mov byte [esp + 0xbc], 0
call fcn.004969f0
mov ecx, dword [esp + 0x4c]
lea edi, [esi + 0xc]
push ecx
mov ecx, edi
call fcn.00544ac0
mov edx, dword [esp + 0x34]
mov ecx, edi
push edx
call fcn.00544b30
push ebp
mov ecx, edi
call fcn.00544b40
mov esi, dword [esi + 8]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x90]
lea ecx, [esp + 0x3c]
mov byte [eax], 1
mov dword [esp + 0xbc], 0xffffffff
call fcn.004969f0
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret