Function at 0x40ce3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c8
mov edi, dword [esp + 0x1e8]
mov eax, dword [esp + 0x1dc]
mov dword [esp], eax
add eax, 0x14
mov ecx, esp
push eax
push ecx
call fcn.0040c780
add esp, 8
mov ecx, dword [esp]
add eax, ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 4], eax
cmp ecx, eax
jae 0x40cfa8
mov ebx, dword [esp + 0x1e4]
lea edi, [esp + 0x3c]
lea eax, [ebx + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [ebx + 0x14]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x1c]
mov dword [esp + 8], eax
lea eax, [ebx + 0x18]
mov dword [esp + 0x24], eax
lea eax, [ebx + 4]
mov dword [esp + 0x20], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 8]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x28]
mov dword [esp + 0x30], eax
jmp 0x40c9d6
add esi, 0xffffffd0
mov dword [edi + 4], esi
add edi, 4
mov ecx, dword [esp]
cmp ecx, dword [esp + 4]
jae 0x40cfa6
lea edx, [ecx + 1]
mov dword [esp], edx
movzx esi, byte [ecx]
lea eax, [esi - 3]
cmp eax, 0x91
ja case.0x40c9ed.4
jmp dword [eax*4 + 0x40d060]
add esi, 0xffffffb0
cmp esi, 7
ja case.default.0x40ca02
mov eax, ebx
jmp dword [esi*4 + 0x40d340]
mov eax, dword [esp + 0x18]
jmp case.0x40ca02.80
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], edi
xor ebp, ebp
mov ecx, 0xfffffff9
xor edi, edi
mov eax, edx
nop word cs:[eax + eax]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], edx
cmp eax, dword [esp + 4]
je 0x40cfb5
add ecx, 7
movzx ebx, byte [eax]
mov bh, bl
and bh, 0x7f
movzx ebp, bh
xor esi, esi
shld esi, ebp, cl
inc eax
shl ebp, cl
test cl, 0x20
cmovne esi, ebp
mov edx, 0
cmovne ebp, edx
or edi, esi
mov edx, dword [esp + 0xc]
or edx, ebp
mov ebp, edx
mov edx, dword [esp + 0x10]
inc edx
test bl, bl
js 0x40ca40
shr bl, 6
cmp ecx, 0x39
setb bh
add cl, 7
mov eax, 0xffffffff
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne eax, ecx
test bl, bh
cmove eax, ecx
mov dword [esp], edx
mov ecx, dword [esp + 0x34]
add ecx, 0xffffff92
cmp ecx, 9
ja case.default.0x40ca02
or ebp, eax
mov ebx, dword [esp + 0x1e4]
mov eax, ebx
mov edi, dword [esp + 0x14]
jmp dword [ecx*4 + 0x40d2f0]
mov eax, dword [esp + 8]
jmp case.0x40cace.112
mov eax, dword [esp + 0x1c]
jmp case.0x40ca02.80
mov eax, dword [esp + 0x20]
jmp case.0x40ca02.80
mov eax, dword [esp + 8]
jmp case.0x40ca02.80
mov eax, dword [esp + 0x24]
jmp case.0x40ca02.80
mov eax, dword [esp + 0x28]
jmp case.0x40ca02.80
mov eax, dword [esp + 0x2c]
nop dword [eax]
mov eax, dword [eax]
jmp 0x40cc60
mov eax, dword [esp + 0x30]
jmp case.0x40cace.112
mov eax, dword [esp + 0x18]
jmp case.0x40cace.112
mov eax, dword [esp + 0x1c]
jmp case.0x40cace.112
mov eax, dword [esp + 0x20]
jmp case.0x40cace.112
mov eax, dword [esp + 0x24]
jmp case.0x40cace.112
mov eax, dword [esp + 0x28]
jmp case.0x40cace.112
mov eax, dword [esp + 0x2c]
nop
add ebp, dword [eax]
mov dword [edi + 4], ebp
jmp 0x40c9c6
mov eax, dword [ecx + 1]
add ecx, 5
jmp 0x40cc5c
mov eax, dword [ecx + 1]
add ecx, 9
jmp 0x40cc5c
mov eax, dword [edi - 4]
xor ecx, ecx
cmp eax, dword [edi]
setbe cl
jmp 0x40ce99
mov eax, dword [edi - 4]
xor ecx, ecx
cmp eax, dword [edi]
setb cl
jmp 0x40ce99
mov dword [esp + 0x14], edi
push dword [esp + 4]
lea eax, [esp + 4]
push eax
call fcn.0040c780
add esp, 8
mov dword [esp + 0x34], eax
mov ebp, dword [esp]
mov dword [esp + 0xc], 0
mov ecx, 0xfffffff9
xor edi, edi
mov esi, ebp
nop dword [eax + eax]
mov dword [esp + 0x10], ebp
cmp esi, dword [esp + 4]
je 0x40cfb5
add ecx, 7
movzx ebx, byte [esi]
mov eax, ebx
and al, 0x7f
movzx eax, al
xor edx, edx
shld edx, eax, cl
inc esi
shl eax, cl
test cl, 0x20
cmovne edx, eax
mov ebp, 0
cmovne eax, ebp
or edi, edx
or dword [esp + 0xc], eax
mov ebp, dword [esp + 0x10]
inc ebp
test bl, bl
js 0x40cba0
shr bl, 6
cmp ecx, 0x39
setb dl
add cl, 7
mov eax, 0xffffffff
shl eax, cl
test cl, 0x20
mov ecx, 0
cmovne eax, ecx
test bl, dl
cmove eax, ecx
mov dword [esp], ebp
mov edx, dword [esp + 0x34]
add edx, 2
cmp edx, 9
ja case.default.0x40ca02
mov ecx, dword [esp + 0xc]
or ecx, eax
mov ebx, dword [esp + 0x1e4]
mov eax, ebx
mov edi, dword [esp + 0x14]
jmp dword [edx*4 + 0x40d2c8]
mov eax, dword [esp + 8]
jmp case.0x40cc29.0
mov eax, dword [edi]
jmp case.0x40cecb.4
movzx eax, byte [ecx + 1]
jmp 0x40cc4a
movsx eax, byte [ecx + 1]
add ecx, 2
jmp 0x40cc5c
movzx eax, word [ecx + 1]
jmp 0x40cc59
movsx eax, word [ecx + 1]
add ecx, 3
mov dword [esp], ecx
nop
mov dword [edi + 4], eax
jmp 0x40c9c6
push dword [esp + 4]
lea eax, [esp + 4]
push eax
call fcn.0040c780
add esp, 8
jmp 0x40cc60
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov ecx, 0xfffffff9
mov edi, edx
xor ebp, ebp
mov dword [esp + 0x10], edx
nop word cs:[eax + eax]
cmp edi, dword [esp + 4]
je 0x40cfb5
add ecx, 7
movzx ebx, byte [edi]
mov eax, ebx
and al, 0x7f
movzx eax, al
xor edx, edx
shld edx, eax, cl
inc edi
shl eax, cl
test cl, 0x20
cmovne edx, eax
mov esi, 0
cmovne eax, esi
or ebp, edx
or dword [esp + 0xc], eax
inc dword [esp + 0x10]
test bl, bl
js 0x40cca0
shr bl, 6
cmp ecx, 0x39
setb al
add cl, 7
mov edx, 0xffffffff
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne edx, ecx
test bl, al
cmove edx, ecx
mov eax, dword [esp + 0xc]
or eax, edx
mov ecx, dword [esp + 0x10]
mov dword [esp], ecx
mov edi, dword [esp + 0x14]
mov dword [edi + 4], eax
add edi, 4
mov ebx, dword [esp + 0x1e4]
jmp 0x40c9c9
mov eax, dword [edi]
jmp 0x40cc60
add edi, 0xfffffffc
jmp 0x40c9c9
mov eax, dword [edi - 4]
jmp 0x40cc60
movzx eax, byte [ecx + 1]
add ecx, 2
mov dword [esp], ecx
shl eax, 2
neg eax
mov eax, dword [edi + eax]
jmp 0x40cc60
movsd xmm0, qword [edi - 4]
shufps xmm0, xmm0, 0xe1
movlps qword [edi - 4], xmm0
jmp 0x40c9c9
mov eax, dword [edi]
movsd xmm0, qword [edi - 8]
movsd qword [edi - 4], xmm0
mov dword [edi - 8], eax
jmp 0x40c9c9
mov eax, dword [edi]
mov eax, dword [eax]
jmp 0x40cdc7
mov eax, dword [edi]
test eax, eax
jns 0x40c9c9
neg eax
mov dword [edi], eax
jmp 0x40c9c9
mov eax, dword [edi]
and dword [edi - 4], eax
add edi, 0xfffffffc
jmp 0x40c9c9
mov eax, dword [edi - 4]
cdq
idiv dword [edi]
jmp 0x40cdc7
mov eax, dword [edi]
sub dword [edi - 4], eax
add edi, 0xfffffffc
jmp 0x40c9c9
mov eax, dword [edi - 4]
cdq
idiv dword [edi]
mov dword [edi - 4], edx
add edi, 0xfffffffc
jmp 0x40c9c9
mov eax, dword [edi - 4]
imul eax, dword [edi]
mov dword [edi - 4], eax
add edi, 0xfffffffc
jmp 0x40c9c9
neg dword [edi]
jmp 0x40c9c9
not dword [edi]
jmp 0x40c9c9
mov eax, dword [edi]
or dword [edi - 4], eax
add edi, 0xfffffffc
jmp 0x40c9c9
mov eax, dword [edi]
add dword [edi - 4], eax
add edi, 0xfffffffc
jmp 0x40c9c9
push dword [esp + 4]
lea eax, [esp + 4]
push eax
call fcn.0040c780
add esp, 8
add dword [edi], eax
jmp 0x40c9c9
movzx ecx, byte [edi]
shl dword [edi - 4], cl
add edi, 0xfffffffc
jmp 0x40c9c9
movzx ecx, byte [edi]
shr dword [edi - 4], cl
add edi, 0xfffffffc
jmp 0x40c9c9
movzx ecx, byte [edi]
sar dword [edi - 4], cl
add edi, 0xfffffffc
jmp 0x40c9c9
mov eax, dword [edi]
xor dword [edi - 4], eax
add edi, 0xfffffffc
jmp 0x40c9c9
movsx eax, word [ecx + 1]
add ecx, 3
mov dword [esp], ecx
lea edx, [edi - 4]
cmp dword [edi], 0
je 0x40cf0c
add ecx, eax
mov dword [esp], ecx
mov edi, edx
jmp 0x40c9c9
mov eax, dword [edi - 4]
xor ecx, ecx
cmp eax, dword [edi]
sete cl
jmp 0x40ce99
mov eax, dword [edi - 4]
xor ecx, ecx
cmp eax, dword [edi]
setae cl
jmp 0x40ce99
mov eax, dword [edi - 4]
xor ecx, ecx
cmp eax, dword [edi]
seta cl
jmp 0x40ce99
mov eax, dword [edi - 4]
xor ecx, ecx
cmp eax, dword [edi]
setne cl
mov dword [edi - 4], ecx
add edi, 0xfffffffc
jmp 0x40c9c9
movsx eax, word [ecx + 1]
add eax, ecx
add eax, 3
mov dword [esp], eax
jmp 0x40c9c9
mov eax, dword [edi]
lea edx, [ecx + 2]
mov dword [esp], edx
movzx ecx, byte [ecx + 1]
dec ecx
cmp ecx, 7
ja case.0x40cecb.3
jmp dword [ecx*4 + 0x40d2a8]
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x40c9c9
push dword [esp + 4]
lea eax, [esp + 4]
push eax
call fcn.0040c780
add esp, 8
add eax, 2
cmp eax, 9
ja case.default.0x40ca02
mov ecx, ebx
jmp dword [eax*4 + 0x40d318]
mov ecx, dword [esp + 8]
mov eax, dword [ecx]
jmp 0x40cc60
mov edi, edx
jmp 0x40c9c9
movzx eax, byte [eax]
mov dword [edi], eax
jmp 0x40c9c9
movzx eax, word [eax]
mov dword [edi], eax
jmp 0x40c9c9
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx]
jmp 0x40cc60
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
jmp 0x40cc60
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
jmp 0x40cc60
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
jmp 0x40cc60
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
jmp 0x40cc60
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
jmp 0x40cc60
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
jmp 0x40cc60
mov eax, dword [esp + 0x30]
jmp case.0x40cc29.0
mov eax, dword [esp + 0x18]
jmp case.0x40cc29.0
mov eax, dword [esp + 0x1c]
jmp case.0x40cc29.0
mov eax, dword [esp + 0x20]
jmp case.0x40cc29.0
mov eax, dword [esp + 0x24]
jmp case.0x40cc29.0
mov eax, dword [esp + 0x28]
jmp case.0x40cc29.0
mov eax, dword [esp + 0x2c]
add ecx, dword [eax]
mov dword [edi + 4], ecx
jmp 0x40c9c6
mov edi, dword [edi]
mov eax, edi
add esp, 0x1c8
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [fcn.00408150]
push 2
call esi
add esp, 4
push str.truncated_sleb128_expression
push str.getSLEB128
push str.libunwind:__s____s_n
push eax
call fcn.004098c0
add esp, 0x10
push 2
call esi
add esp, 4
push eax
call sub.msvcrt.dll_fflush
add esp, 4
call sub.msvcrt.dll_abort
mov esi, dword [fcn.00408150]
push 2
call esi
add esp, 4
push str.unsupported_x86_register
push str.getRegister
jmp 0x40cfcc
mov esi, dword [fcn.00408150]
push 2
call esi
add esp, 4
push str.DWARF_opcode_not_implemented
jmp 0x40d056
mov esi, dword [fcn.00408150]
push 2
call esi
add esp, 4
push str.DW_OP_fbreg_not_implemented
jmp 0x40d056
mov esi, dword [fcn.00408150]
push 2
call esi
add esp, 4
push str.DW_OP_piece_not_implemented
jmp 0x40d056
mov esi, dword [fcn.00408150]
push 2
call esi
add esp, 4
push str.DW_OP_deref_size_with_bad_size
push str.evaluateExpression
jmp 0x40cfcc