Function at 0x4396c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x18], 0x3c3d3e3f
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x43973d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax - 0x74956178]
add eax, 0x88
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
add al, 0x48
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x439700
mov eax, dword [esp + 0x18]
mov edi, dword [0x447478]
test edi, edi
je 0x4397a4
xor ecx, ecx
mov edx, dword [0x44747c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x2286b4e
je 0x43977a
mov esi, ecx
and esi, 1
xor ecx, 1
lea ecx, [ecx + esi*2]
cmp ecx, edi
jb 0x439760
jmp 0x4397a4
mov edx, dword [edx + ecx*8 + 4]
cmp edx, eax
je 0x4397a4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x447480]
push edx
call fcn.00435b80
add esp, 0x24
cmp eax, 0xc0000023
jne 0x439a01
push dword [esp + 0x10]
call fcn.00433e70
add esp, 4
mov ebx, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], 0x3c3d3e3f
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x43982f
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x18]
lea esi, [ecx - 0x74956178]
add ecx, 0x88
and ecx, edx
or esi, edx
sub esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x14]
add cl, 0x48
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x18], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x4397f0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x447478]
test ecx, ecx
je 0x439888
xor edx, edx
mov esi, dword [0x44747c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x2286b4e
je 0x439860
inc edx
cmp ecx, edx
jne 0x439850
jmp 0x439888
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x439888
lea edx, [esp + 0x10]
push edx
push edi
push ebx
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push 6
push dword [0x447480]
push ecx
call fcn.00435b80
add esp, 0x24
mov dword [esp + 0x28], eax
test eax, eax
js 0x4399f4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x439978
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x439971
mov eax, dword [ebx + 0x10]
shr eax, 1
mov edx, dword [edx]
cmp edx, eax
jb 0x4398ba
mov edx, eax
test edx, edx
je 0x439969
mov dword [esp + 8], ebx
mov esi, ebx
add esi, 0x14
mov eax, edx
and eax, 3
mov dword [esp + 0xc], edx
je 0x4398f8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
dec edx
movzx ecx, word [esi]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [esi + ebx*2]
mov word [edi], cx
add edi, 2
dec eax
jne 0x4398e0
cmp dword [esp + 0xc], 4
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
jb 0x439969
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, word [esi]
xor ecx, ecx
test ax, ax
setne cl
mov word [edi], ax
lea eax, [esi + ecx*2]
movzx ecx, word [esi + ecx*2]
xor ebx, ebx
test cx, cx
setne bl
mov word [edi + 2], cx
lea ecx, [eax + ebx*2]
movzx eax, word [eax + ebx*2]
xor ebx, ebx
test ax, ax
setne bl
mov word [edi + 4], ax
lea eax, [ecx + ebx*2]
movzx ecx, word [ecx + ebx*2]
xor ebx, ebx
test cx, cx
setne bl
lea esi, [eax + ebx*2]
mov word [edi + 6], cx
add edi, 8
add edx, 0xfffffffc
jne 0x439910
mov ebx, dword [esp + 8]
mov ecx, dword [ebp + 0x18]
mov word [edi], 0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x10]
shr eax, 1
mov dword [edx], eax
mov esi, dword [ebp + 0x20]
test ecx, ecx
je 0x439984
mov eax, dword [ebx + 4]
mov dword [ecx], eax
test esi, esi
je 0x4399f4
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x4399ef
mov eax, dword [esi]
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jb 0x43999a
mov eax, ecx
mov edx, dword [ebx + 8]
add edx, ebx
mov ecx, eax
shr ecx, 2
mov esi, eax
not esi
or esi, 0xfffffffc
add esi, eax
add esi, edx
inc esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, eax
and edx, 0xfffffffc
add edx, dword [ebp + 0x1c]
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov edi, edx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ebx, dword [esp + 8]
test al, 1
mov esi, dword [ebp + 0x20]
je 0x4399ef
and eax, 2
mov ecx, dword [esp + 0xc]
movzx ecx, byte [ecx + eax]
mov byte [edx + eax], cl
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
push ebx
call fcn.00433f90
add esp, 4
mov eax, dword [esp + 0x28]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret