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

Disassembly:
cmp dword [ecx], 0xffffffff
je 0x103b759
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, ecx
push 0x1006c792
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
lea ecx, [esp + 0x10]
push 8
push 2
push ecx
push dword [edi]
call eax
test eax, eax
jle 0x103b75e
movzx eax, byte [esp + 0x11]
mov ecx, eax
and ecx, 0x7f
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
cmp ecx, 0x7f
je 0x103b7a2
cmp ecx, 0x7e
jne 0x103b833
mov word [esp], 0
push 0x1006c792
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
mov ecx, esp
push 8
push 2
push ecx
push dword [edi]
call eax
test eax, eax
setg bl
jg 0x103b73d
cmp dword [edi], 0xffffffff
je 0x103b73d
push 0xea8d1240
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
movzx eax, word [esp]
rol ax, 8
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
jmp 0x103b824
xor eax, eax
ret 4
cmp dword [edi], 0xffffffff
je 0x103ba09
push 0xea8d1240
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
jmp 0x103ba09
mov dword [esp + 4], 0
mov dword [esp], 0
push 0x1006c792
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
mov ecx, esp
push 8
push 8
push ecx
push dword [edi]
call eax
test eax, eax
setg bl
jg 0x103b811
cmp dword [edi], 0xffffffff
je 0x103b811
push 0xea8d1240
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
mov eax, dword [esp]
mov ecx, dword [esp + 4]
bswap ecx
bswap eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movzx eax, byte [esp + 0x11]
test al, al
jns 0x103b9ff
jmp 0x103b83d
xor ebx, ebx
test al, al
jns 0x103b9ff
lea esi, [esp + 0x20]
push 0x1006c792
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 8
push 4
push esi
push dword [edi]
call eax
mov cl, 1
test eax, eax
jle 0x103b9c4
test bl, bl
je 0x103ba09
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edi
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
lea eax, [ebx + 1]
push eax
call fcn.0102a430
add esp, 4
mov dword [esp + 0x24], eax
or esi, ebx
je 0x103b934
xor edi, edi
xor ecx, ecx
nop
nop
nop
nop
nop
mov dword [esp + 0x30], ecx
sub ebx, edi
cmp ebx, 0xffff
jl 0x103b8b3
mov ebx, 0xffff
mov esi, dword [esp + 0x24]
add esi, edi
push 0x1006c792
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 8
push ebx
push esi
mov esi, dword [esp + 0x34]
push dword [esi]
call eax
test eax, eax
mov ecx, dword [esp + 0x30]
jle 0x103b8f5
add edi, eax
adc ecx, 0
mov ebx, dword [esp + 0x18]
cmp edi, ebx
mov eax, ecx
sbb eax, dword [esp + 0x1c]
jb 0x103b8a0
jmp 0x103b934
cmp dword [esi], 0xffffffff
je 0x103b934
push 0xea8d1240
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 2
mov esi, dword [esp + 0x2c]
push dword [esi]
call eax
push 0xa3d60213
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
or ecx, eax
setne cl
mov edx, dword [esp + 0x2c]
and dl, cl
cmp dl, 1
jne 0x103b975
xor ecx, ecx
xor edx, edx
mov eax, dword [esp + 0x24]
mov esi, ecx
and esi, 3
movzx ebx, byte [esp + esi + 0x20]
xor byte [eax + ecx], bl
add ecx, 1
adc edx, 0
mov eax, dword [esp + 0x18]
cmp ecx, eax
mov esi, edx
sbb esi, dword [esp + 0x1c]
jb 0x103b950
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x24]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 5], 0
je 0x103b999
mov eax, esp
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0103ca90
jmp 0x103b9a6
mov eax, esp
lea edx, [esp + 0x10]
push edx
push eax
call fcn.0103c920
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov al, 1
jmp 0x103ba0b
cmp dword [edi], 0xffffffff
je 0x103b9ff
push 0xea8d1240
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push 2
push dword [edi]
call eax
push 0xa3d60213
push dword [0xef94d8]
call fcn.0105f180
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
xor ecx, ecx
test bl, bl
jne 0x103b86f
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4