Function at 0x438740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov dword [esp + 8], 0x40414e4f
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x4387ae
nop dword [eax + eax]
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0x36]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
mov ecx, 0xd32fde49
sub ecx, eax
add eax, 0x2cd02236
and ecx, 0x7a
and eax, 0x85
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x438770
mov esi, dword [esp + 8]
mov eax, dword [0x44739c]
test eax, eax
je 0x43880c
xor ecx, ecx
mov edx, dword [0x4473a0]
nop word cs:[eax + eax]
cmp dword [edx + ecx*8], 0x2286b4e
je 0x4387e0
inc ecx
cmp eax, ecx
jne 0x4387d0
jmp 0x43880c
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x43880c
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4473a4]
push eax
call fcn.00434c20
add esp, 0x24
mov esi, eax
cmp esi, 0xc0000023
jne 0x438a8c
push dword [esp + 0x1c]
call fcn.00432d50
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], 0x40414e4f
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 7
ja 0x438890
nop dword [eax]
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
lea esi, [ecx + 0x36]
and esi, edx
add ecx, edx
add esi, esi
sub ecx, esi
mov edx, 0xd32fde49
sub edx, ecx
add ecx, 0x2cd02236
and edx, 0x7a
and ecx, 0x85
sub ecx, edx
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 8
jb 0x438850
mov esi, dword [esp + 8]
mov ecx, dword [0x44739c]
test ecx, ecx
je 0x4388ee
mov edi, esi
xor edx, edx
mov esi, dword [0x4473a0]
nop dword [eax + eax]
cmp dword [esi + edx*8], 0x2286b4e
je 0x4388c2
inc edx
cmp ecx, edx
jne 0x4388b0
mov esi, edi
jmp 0x4388ee
mov ecx, dword [esi + edx*8 + 4]
mov esi, edi
cmp ecx, edi
je 0x4388ee
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x4473a4]
push ecx
call fcn.00434c20
add esp, 0x24
mov esi, eax
test esi, esi
js 0x438a83
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4389ec
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4389e5
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edi, dword [edi]
cmp edi, eax
cmovb eax, edi
test eax, eax
je 0x4389dd
mov edi, ebx
add edi, 0x14
mov dword [esp + 4], eax
and eax, 3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
je 0x438973
xor esi, esi
nop dword [eax + eax]
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
lea edi, [edi + ebx*2]
mov word [edx], cx
add edx, 2
inc esi
cmp eax, esi
jne 0x438940
mov eax, dword [esp + 4]
sub eax, esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
cmp dword [esp + 4], 4
jae 0x438980
jmp 0x4389dd
mov eax, dword [esp + 4]
cmp dword [esp + 4], 4
jb 0x4389dd
nop
movzx ecx, word [edi]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx], cx
lea ecx, [edi + ebx*2]
movzx esi, word [edi + ebx*2]
xor ebx, ebx
test si, si
setne bl
mov word [edx + 2], si
lea esi, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edx + 4], cx
lea ecx, [esi + ebx*2]
movzx esi, word [esi + ebx*2]
xor ebx, ebx
test si, si
setne bl
lea edi, [ecx + ebx*2]
mov word [edx + 6], si
add edx, 8
add eax, 0xfffffffc
jne 0x438980
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ecx, dword [ebp + 0x18]
mov word [edx], 0
mov edi, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edi], eax
mov edi, dword [ebp + 0x20]
test ecx, ecx
je 0x4389f8
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test edi, edi
je 0x438a83
mov ecx, ebx
mov dword [esp + 0x18], esi
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x438a78
mov eax, dword [edi]
mov dword [esp + 0x14], ecx
mov edx, dword [ecx + 0xc]
cmp eax, edx
cmovb edx, eax
mov eax, dword [ecx + 8]
add eax, ecx
mov dword [esp + 4], ebx
mov ecx, edx
shr ecx, 2
mov esi, edx
and esi, 0xfffffffc
mov edi, dword [ebp + 0x1c]
add dword [esp + 4], esi
add esi, eax
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 3
mov ecx, eax
shr ecx, 1
mov edi, esi
mov dword [esp + 0x20], esi
mov edi, dword [esp + 4]
mov ebx, dword [esp + 0x20]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [esp + 4]
mov edi, dword [ebp + 0x20]
mov ecx, dword [esp + 0x14]
test dl, 1
je 0x438a78
xor eax, 1
and eax, edx
and edx, 2
movzx eax, byte [esi + eax]
mov byte [ebx + edx], al
mov ebx, ecx
mov eax, dword [ecx + 0xc]
mov dword [edi], eax
mov esi, dword [esp + 0x18]
push ebx
call fcn.00432e70
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret