Function at 0x4376f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, esi
sub eax, dword [esp + 0x44]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x1c], eax
cmp eax, esi
jbe 0x4379db
mov ebp, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x437770
mov ecx, dword [esp + 4]
mov ebx, ecx
mov eax, dword [esp]
sub ebx, eax
cmp ecx, dword [esp + 0xc]
je 0x437859
mov dword [eax + ebx], esi
add ecx, 4
mov dword [edi + 4], ecx
mov eax, dword [esp + 0x44]
add esi, eax
dec esi
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x4379db
mov dword [esp + 4], ecx
test ebp, ebp
je 0x4377c8
movzx ecx, byte [ebp]
mov byte [esp + 0x10], 0x4d
mov dword [esp + 0x11], 0
mov edx, 0xe3
nop
nop
movzx ebx, byte [esp + edx - 0xd3]
mov eax, ebx
not eax
lea edi, [ebx + eax*2]
lea eax, [ebx + eax*2]
inc eax
or eax, edx
sub edi, eax
or ebx, edx
and ebx, edi
add bl, 0x91
mov byte [esp + edx - 0xd3], bl
inc edx
cmp edx, 0xe8
jne 0x437790
cmp cl, byte [esp + 0x10]
mov edi, dword [esp + 0x34]
je 0x4377d3
movzx eax, byte [esi]
mov ecx, dword [esp + 0x40]
cmp al, byte [ecx]
jne 0x437850
cmp dword [esp + 0x44], 2
jb 0x437740
mov ecx, 1
jmp 0x43780c
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x40]
cmp al, byte [edx + ecx]
jne 0x43794f
inc ecx
cmp ecx, dword [esp + 0x44]
je 0x437740
test ebp, ebp
je 0x4377f0
movzx edx, byte [ebp + ecx]
mov byte [esp + 0x10], 0xef
lea eax, [esp + 0x11]
mov byte [eax + 4], 0
mov dword [eax], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
mov eax, ebx
add al, 0x78
xor al, byte [esp + ebx + 0x10]
add al, 0xa8
mov byte [esp + ebx + 0x10], al
inc ebx
cmp ebx, 6
jne 0x437830
cmp dl, byte [esp + 0x10]
jne 0x4377f0
jmp 0x437801
mov ecx, dword [esp + 4]
jmp 0x437765
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43786d
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.004084c0
add esp, 4
mov ebp, eax
mov edx, dword [esp]
test edx, edx
je 0x4379b3
cmp ebp, edx
mov eax, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebp
jbe 0x43795b
cmp eax, ebp
jbe 0x43795b
test ebx, ebx
je 0x43799c
mov eax, dword [esp]
mov edx, dword [esp + 8]
add eax, edx
dec eax
mov ecx, dword [esp + 0x18]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x4378e4
neg edi
xor edx, edx
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x4378d0
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, dword [esp]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43799c
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x437900
jmp 0x43799c
add esi, ecx
dec esi
mov ecx, dword [esp + 4]
jmp 0x437765
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov dword [esp], edx
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
mov edx, ebx
and edx, 0xfffffffc
add ebp, edx
add edx, dword [esp]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x43799c
mov ecx, dword [esp + 8]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [ebp + ecx], dl
push dword [esp]
call fcn.004084d0
add esp, 4
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x18]
mov dword [edi], ebp
mov eax, dword [esp + 0xc]
lea eax, [eax*4]
add eax, ebp
mov ecx, ebp
add ecx, ebx
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov eax, ebp
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
jmp 0x437755
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret