Function at 0x10031a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [eax + 0x630]
push esi
push edi
mov edi, eax
mov dword [ebp - 0x10], ecx
cmp eax, ecx
ja 0x10031aa5
mov esi, dword [ebp + 8]
cmp edi, 0x7541
ja 0x10031b06
je 0x10031adb
mov eax, edi
sub eax, 0x6f6
add byte [eax], al
je 0x10031ae5
sub eax, 0x12
je 0x10031aa5
sub eax, 0x5333
jne case.0x10031b30.30036
sbb ebp, esp
xor dl, byte [edx + 0xe20be]
add byte [ebx + 0xe202dc6], cl
add byte [eax], al
mov eax, esi
sub eax, 0xe20
je 0x10031aae
sub eax, 0x41
jne 0x10031ad0
cmpsb byte [esi], byte es:[edi]
cmpsb byte [esi], byte es:[edi]
invalid
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov bh, 0xdd
jcxz 0x10031a74
lea eax, [ebp - 8]
push eax
push 0
push 0x306
mov dword [ebp - 8], 0x28
call fcn.10030400
add esp, 0xc
or ebx, 0xffffffff
add esi, 0x41
cmp esi, 0xe61
jbe 0x10031a92
mov esi, str.eVrlteFriau
jmp case.0x10031b30.30036
mov ecx, dword [0x10137950]
test ecx, ecx
je 0x10031afc
push 0x669f
call fcn.10011620
add esp, 4
mov ebx, 0x10137db8
jmp case.0x10031b30.30036
cmp edi, 0x7661
ja case.0x10031b30.30036
je 0x10031c53
lea eax, [edi - 0x7553]
cmp eax, 0xfc
ja case.0x10031b30.30036
movzx edx, byte [eax + 0x10031cb8]
jmp dword [edx*4 + 0x10031c78]
mov dword [ebp + 8], str..lld3enlrk2e
jmp case.0x10031b30.30036
mov al, byte [esi + 1]
mov cl, byte [esi + 2]
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x14], cl
jmp case.0x10031b30.30036
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov cx, word [eax + 2]
mov word [ebp - 0x28], dx
movzx edx, word [eax + 4]
mov word [ebp - 0x22], cx
mov word [ebp - 0x2e], dx
jmp case.0x10031b30.30036
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x16]
mov word [ebp - 0x36], cx
jmp case.0x10031b30.30036
shl dword [ebp - 4], 8
jmp case.0x10031b30.30036
mov dl, byte [esi + 6]
mov al, byte [esi + 7]
mov cl, byte [esi + 8]
mov byte [ebp - 0x15], dl
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x1b], cl
jmp case.0x10031b30.30036
mov dl, byte [esi + 3]
mov al, byte [esi + 4]
mov cl, byte [esi + 5]
mov byte [ebp - 0x16], dl
mov byte [ebp - 0x19], al
mov byte [ebp - 0x13], cl
jmp case.0x10031b30.30036
mov dl, byte [esi + 9]
mov byte [ebp - 0x17], dl
jmp case.0x10031b30.30036
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x38]
xor eax, eax
push 0x36c3
push edx
mov word [ebp - 0x20], ax
call fcn.10030840
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x80
jmp case.0x10031b30.30036
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x12]
mov dx, word [eax + 0x14]
mov word [ebp - 0x38], cx
mov word [ebp - 0x2a], dx
jmp case.0x10031b30.30036
mov eax, dword [ebp + 8]
mov cx, word [eax + 0xe]
mov dx, word [eax + 0x10]
mov word [ebp - 0x24], cx
mov word [ebp - 0x34], dx
jmp case.0x10031b30.30036
mov al, byte [esi + 0xa]
mov byte [ebp - 0x18], al
mov byte [ebp - 0x11], 0
jmp case.0x10031b30.30036
mov eax, dword [ebp + 8]
mov cx, word [eax + 6]
mov dx, word [eax + 8]
mov ax, word [eax + 0xa]
mov word [ebp - 0x26], cx
mov word [ebp - 0x2c], dx
mov word [ebp - 0x30], ax
jmp case.0x10031b30.30036
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 0xc]
mov word [ebp - 0x32], dx
jmp case.0x10031b30.30036
mov al, byte [esi]
mov byte [ebp - 0x12], al
jmp case.0x10031b30.30036
movzx ecx, word [ebp - 4]
mov edx, dword [ebp + 0x10]
push ecx
push 0
push edx
call dword [ebp - 0xc]
add edi, 0x12
cmp edi, dword [ebp - 0x10]
jbe 0x10031a61
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret