Function at 0x41ea40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x44], edx
push esi
push edi
push str.opcodes
mov esi, dword [ebx + 0x30]
mov eax, dword [ebx + 4]
push 0x3fffffff
mov dword [ebp - 0x40], eax
mov edi, dword [esi]
mov ecx, dword [esi + 8]
push 4
mov dword [ebp - 0x48], ebx
mov edx, dword [edi + 0x34]
lea eax, [edi + 0x14]
mov ecx, dword [ecx + 0x34]
push eax
push dword [esi + 0x10]
call fcn.00418bf0
mov dword [edi + 0x34], eax
add esp, 0x14
mov ecx, dword [esi + 0x10]
mov edx, edi
mov dword [eax + ecx*4], 0x13
mov ecx, esi
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
push dword [eax + 8]
call fcn.004077e0
mov ecx, dword [esi + 0x10]
add esp, 4
mov edi, dword [esi]
lea eax, [ecx - 1]
mov edx, dword [edi + 0x34]
push str.opcodes
push 0x3fffffff
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x14]
push 4
push eax
push ecx
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x34]
call fcn.00418bf0
mov dword [edi + 0x34], eax
add esp, 0x14
mov ecx, dword [esi + 0x10]
mov edx, edi
mov dword [eax + ecx*4], 0
mov ecx, esi
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
push dword [eax + 8]
call fcn.004077e0
mov ecx, dword [ebp - 0x44]
add esp, 4
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
movzx eax, byte [esi + 0x34]
mov dword [ecx + 0x10], 0xffffffff
mov dword [ecx + 0x14], 0xffffffff
mov dword [ecx], 8
mov dword [ecx + 8], eax
mov edx, dword [esi]
movzx ecx, byte [esi + 0x34]
inc ecx
movzx eax, byte [edx + 8]
cmp ecx, eax
jbe 0x41eb4f
cmp ecx, 0xff
jae 0x41f193
mov byte [edx + 8], cl
inc byte [esi + 0x34]
cmp dword [ebx + 0x10], 0x7b
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0
jne 0x41f1a0
cmp dword [ebx + 0x20], 0x120
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
jne 0x41edc7
lea edx, [ebx + 0x18]
mov ecx, ebx
call fcn.00416a50
mov dword [ebx + 0x10], eax
nop dword [eax + eax]
cmp dword [ebx + 0x10], 0x7d
je 0x41ede1
cmp dword [ebp - 0x30], 0
je 0x41ed66
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.00407e10
cmp dword [ebp - 0x30], 8
jne 0x41ebfc
movzx edx, byte [esi + 0x32]
test edx, edx
je 0x41ebf2
mov eax, dword [esi + 0x28]
add eax, edx
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
lea eax, [eax + ecx*8]
nop
lea eax, [eax - 0x18]
dec edx
cmp byte [eax + 9], 3
jne 0x41eca1
test edx, edx
jg 0x41ebe0
xor eax, eax
cmp dword [ebp - 0x28], eax
jl 0x41ebfc
dec byte [esi + 0x34]
mov edx, dword [esi]
movzx ecx, byte [esi + 0x34]
inc ecx
movzx eax, byte [edx + 8]
cmp ecx, eax
jbe 0x41ec1a
cmp ecx, 0xff
jae 0x41f193
mov byte [edx + 8], cl
inc byte [esi + 0x34]
lea edx, [ebp - 0x30]
movzx eax, byte [esi + 0x34]
mov ecx, esi
dec eax
push eax
call fcn.004084f0
add esp, 4
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0xc], 0x32
jne 0x41ed66
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov edx, dword [esi]
mov dword [ebp - 0x3c], edi
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push str.opcodes
push 0x3fffffff
push 4
cmp edi, 0xff
jg 0x41ecab
mov ecx, dword [esi + 8]
lea eax, [edx + 0x14]
mov edx, dword [edx + 0x34]
push eax
push dword [esi + 0x10]
mov ecx, dword [ecx + 0x34]
call fcn.00418bf0
mov ecx, dword [ebp - 0x34]
shl edi, 0x11
or edi, dword [ebp - 0x38]
shl edi, 7
mov dword [ecx + 0x34], eax
or edi, 0x32004e
mov ecx, dword [esi + 0x10]
mov dword [eax + ecx*4], edi
mov edi, dword [ebp - 0x34]
jmp 0x41ed38
movzx eax, byte [eax + 0xa]
inc eax
jmp 0x41ebf4
lea ecx, [edx + 0x14]
mov edx, dword [edx + 0x34]
push ecx
mov ecx, dword [esi + 8]
push dword [esi + 0x10]
mov ecx, dword [ecx + 0x34]
call fcn.00418bf0
mov ecx, dword [ebp - 0x34]
mov edi, eax
mov eax, dword [ebp - 0x3c]
add esp, 0x14
cdq
mov dword [ecx + 0x34], edi
mov ecx, 0x100
idiv ecx
mov ecx, dword [esi + 0x10]
shl edx, 0x11
mov ebx, eax
or edx, dword [ebp - 0x38]
shl edx, 7
or edx, 0x32804e
mov dword [edi + ecx*4], edx
mov ecx, esi
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
mov edx, dword [ebp - 0x34]
push dword [eax + 8]
call fcn.004077e0
mov edi, dword [esi]
add esp, 4
mov ecx, dword [esi + 8]
mov edx, dword [edi + 0x34]
lea eax, [edi + 0x14]
mov ecx, dword [ecx + 0x34]
push str.opcodes
push 0x3fffffff
push 4
push eax
push dword [esi + 0x10]
call fcn.00418bf0
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x10]
shl ebx, 7
or ebx, 0x52
mov dword [eax + ecx*4], ebx
mov ebx, dword [ebp - 0x48]
mov eax, dword [esi + 8]
add esp, 0x14
inc dword [esi + 0x10]
mov edx, edi
mov ecx, esi
mov eax, dword [eax + 8]
push eax
call fcn.004077e0
mov eax, dword [ebp - 0x38]
add esp, 4
inc al
mov byte [esi + 0x34], al
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 0x10]
mov ecx, ebx
cmp eax, 0x5b
je 0x41eda3
cmp eax, 0x123
je 0x41ed84
lea edx, [ebp - 0x30]
call fcn.004204b0
inc dword [ebp - 0xc]
jmp 0x41edab
lea edx, [ebx + 0x28]
call fcn.00416a50
mov dword [ebx + 0x20], eax
lea edx, [ebp - 0x30]
mov ecx, ebx
cmp eax, 0x3d
je 0x41eda6
call fcn.004204b0
inc dword [ebp - 0xc]
jmp 0x41edab
lea edx, [ebp - 0x30]
call fcn.0041e7a0
cmp dword [ebx + 0x10], 0x2c
lea edx, [ebx + 0x18]
jne 0x41eddb
cmp dword [ebx + 0x20], 0x120
mov eax, dword [ebx + 4]
mov dword [ebx + 8], eax
je 0x41eb8e
movups xmm0, xmmword [ebx + 0x20]
mov dword [ebx + 0x20], 0x120
movups xmmword [ebx + 0x10], xmm0
jmp 0x41eba0
cmp dword [ebx + 0x10], 0x3b
je 0x41edb4
push dword [ebp - 0x40]
mov edx, 0x7d
mov ecx, ebx
push 0x7b
call fcn.0041d400
mov ecx, dword [ebp - 0xc]
add esp, 8
test ecx, ecx
je 0x41f0fb
mov edi, dword [ebp - 0x30]
cmp edi, 0x12
je 0x41efb9
cmp edi, 0x13
je 0x41efb9
test edi, edi
je 0x41eea0
lea edx, [ebp - 0x30]
mov ecx, esi
call fcn.00407e10
cmp dword [ebp - 0x30], 8
jne 0x41ee60
movzx edx, byte [esi + 0x32]
test edx, edx
je 0x41ee56
mov eax, dword [esi + 0x28]
add eax, edx
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
lea eax, [eax + ecx*8]
lea eax, [eax - 0x18]
dec edx
cmp byte [eax + 9], 3
jne 0x41ee7d
test edx, edx
jg 0x41ee48
xor eax, eax
cmp dword [ebp - 0x28], eax
jl 0x41ee60
dec byte [esi + 0x34]
mov edx, dword [esi]
movzx ecx, byte [esi + 0x34]
inc ecx
movzx eax, byte [edx + 8]
cmp ecx, eax
jbe 0x41ee87
cmp ecx, 0xff
jae 0x41f1ac
jmp 0x41ee84
movzx eax, byte [eax + 0xa]
inc eax
jmp 0x41ee58
mov byte [edx + 8], cl
inc byte [esi + 0x34]
lea edx, [ebp - 0x30]
movzx eax, byte [esi + 0x34]
mov ecx, esi
dec eax
push eax
call fcn.004084f0
mov ecx, dword [ebp - 0xc]
add esp, 4
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov edi, dword [esi]
mov edx, dword [esi + 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
xor eax, eax
cmp ecx, 0xffffffff
mov dword [ebp - 0x3c], edi
push str.opcodes
cmovne eax, ecx
mov dword [ebp - 0x34], eax
push 0x3fffffff
push 4
cmp ebx, 0xff
jg 0x41eefd
mov ecx, dword [esi + 8]
lea eax, [edi + 0x14]
push eax
push edx
mov edx, dword [edi + 0x34]
mov ecx, dword [ecx + 0x34]
call fcn.00418bf0
shl ebx, 8
or ebx, dword [ebp - 0x34]
shl ebx, 9
or ebx, dword [ebp - 0x38]
shl ebx, 7
or ebx, 0x4e
jmp 0x41ef81
lea ecx, [edi + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [edi + 0x34]
mov ecx, dword [ecx + 0x34]
call fcn.00418bf0
mov edi, eax
mov ecx, 0x100
mov eax, dword [ebp - 0x3c]
add esp, 0x14
mov dword [eax + 0x34], edi
mov eax, ebx
cdq
idiv ecx
mov ecx, dword [esi + 0x10]
shl edx, 8
mov ebx, eax
or edx, dword [ebp - 0x34]
shl edx, 9
or edx, dword [ebp - 0x38]
shl edx, 7
or edx, 0x804e
mov dword [edi + ecx*4], edx
mov ecx, esi
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
mov edx, dword [ebp - 0x3c]
push dword [eax + 8]
call fcn.004077e0
mov edi, dword [esi]
add esp, 4
mov ecx, dword [esi + 8]
mov edx, dword [edi + 0x34]
lea eax, [edi + 0x14]
mov ecx, dword [ecx + 0x34]
push str.opcodes
push 0x3fffffff
push 4
push eax
push dword [esi + 0x10]
call fcn.00418bf0
shl ebx, 7
or ebx, 0x52
mov dword [edi + 0x34], eax
add esp, 0x14
mov ecx, dword [esi + 0x10]
mov edx, edi
mov dword [eax + ecx*4], ebx
mov ecx, esi
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
mov eax, dword [eax + 8]
push eax
call fcn.004077e0
mov eax, dword [ebp - 0x38]
add esp, 4
inc al
mov byte [esi + 0x34], al
mov edi, dword [ebp - 0x10]
add edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
jmp 0x41f0fe
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
mov eax, dword [ebp - 0x28]
lea edx, [ecx + eax*4]
cmp edi, 0x12
jne 0x41efd4
mov byte [edx + 3], 0
mov edi, dword [esi]
mov dword [ebp - 0x34], edi
jmp 0x41f016
and dword [edx], 0xffffff
mov ecx, dword [edx]
movzx eax, byte [esi + 0x34]
and ecx, 0xffff807f
shl eax, 7
or eax, ecx
mov dword [edx], eax
mov edi, dword [esi]
movzx ecx, byte [esi + 0x34]
inc ecx
mov dword [ebp - 0x34], edi
movzx eax, byte [edi + 8]
cmp ecx, eax
jbe 0x41f013
cmp ecx, 0xff
jae 0x41f1b9
mov byte [edi + 8], cl
mov edi, dword [esi]
mov dword [ebp - 0x34], edi
inc byte [esi + 0x34]
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov ebx, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov ecx, dword [ecx + 0x34]
push str.opcodes
push 0x3fffffff
mov dword [ebp - 0x38], eax
lea eax, [edi + 0x14]
push 4
push eax
push edx
mov edx, dword [edi + 0x34]
call fcn.00418bf0
add esp, 0x14
cmp ebx, 0xff
jg 0x41f05d
shl ebx, 0x11
or ebx, dword [ebp - 0x38]
shl ebx, 7
or ebx, 0x4e
jmp 0x41f0c8
mov ecx, dword [ebp - 0x34]
mov edi, eax
mov eax, ebx
cdq
mov dword [ecx + 0x34], edi
mov ecx, 0x100
idiv ecx
mov ecx, dword [esi + 0x10]
shl edx, 0x11
mov ebx, eax
or edx, dword [ebp - 0x38]
shl edx, 7
or edx, 0x804e
mov dword [edi + ecx*4], edx
mov ecx, esi
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
mov edx, dword [ebp - 0x34]
push dword [eax + 8]
call fcn.004077e0
mov edi, dword [esi]
add esp, 4
mov ecx, dword [esi + 8]
mov edx, dword [edi + 0x34]
lea eax, [edi + 0x14]
mov ecx, dword [ecx + 0x34]
push str.opcodes
push 0x3fffffff
push 4
push eax
push dword [esi + 0x10]
call fcn.00418bf0
shl ebx, 7
add esp, 0x14
or ebx, 0x52
mov dword [edi + 0x34], eax
mov edx, edi
mov ecx, dword [esi + 0x10]
mov dword [eax + ecx*4], ebx
mov ecx, esi
mov eax, dword [esi + 8]
inc dword [esi + 0x10]
mov eax, dword [eax + 8]
push eax
call fcn.004077e0
mov eax, dword [ebp - 0x38]
add esp, 4
inc al
mov byte [esi + 0x34], al
mov edi, dword [ebp - 0x10]
dec edi
add edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
jmp 0x41f0fe
mov edi, dword [ebp - 0x10]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax + 0x34]
lea esi, [eax + ecx*4]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
test eax, eax
je 0x41f137
dec eax
cmp eax, 0x100
jb 0x41f12d
nop word [eax + eax]
shr eax, 8
add ecx, 8
cmp eax, 0x100
jae 0x41f120
movzx eax, byte [eax + 0x436938]
inc ecx
add ecx, eax
mov eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and edi, 0x800000ff
jns 0x41f155
dec edi
or edi, 0xffffff00
inc edi
shl edi, 8
mov edx, 0x100
or edi, ecx
xor ecx, ecx
shl edi, 9
test eax, eax
cmovg ecx, edx
mov edx, dword [ebp - 0x44]
or edi, ecx
shl eax, 7
mov ecx, dword [ebp - 4]
or eax, 0x52
xor ecx, ebp
or edi, dword [edx + 8]
shl edi, 7
or edi, 0x13
mov dword [esi + 4], eax
mov dword [esi], edi
pop edi
pop esi
pop ebx
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 8]
mov edx, str.function_or_expression_needs_too_many_registers
call fcn.004156e0
mov edx, 0x7b
mov ecx, ebx
call fcn.0041d380
mov ecx, dword [esi + 8]
mov edx, str.function_or_expression_needs_too_many_registers
call fcn.004156e0
mov ecx, dword [esi + 8]
mov edx, str.function_or_expression_needs_too_many_registers
call fcn.004156e0
int3