Function at 0x10103430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
lea ebx, [eax + 0x10]
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x101036da
test ebx, ebx
jne 0x1010345d
test edi, edi
jne 0x101036e9
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x101036e4
lea esi, [eax + 0x10]
test edi, edi
js 0x101036e9
cmp edi, dword [esi - 8]
jg 0x101036e9
mov dword [esi - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + esi], ax
test edi, edi
je 0x101034bb
push edi
test ebx, ebx
je 0x101034a0
push ebx
push esi
call fcn.102134e1
add esp, 0xc
jmp 0x101034bb
push 0
push esi
call fcn.102134e7
add esp, 0xc
call fcn.102134ed
mov dword [eax], 0x16
call fcn.10200a90
call fcn.10003980
test eax, eax
je 0x101036da
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 8]
push esi
mov dword [ebp - 4], eax
call fcn.1005b490
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax + 4]
lea eax, [ebp - 4]
push str._option__r_nhomePageProtect_d_r_nhomepage_s_r_n
push eax
call fcn.1009c8f0
mov edx, dword [ebp - 8]
add esp, 0x10
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10103512
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 4]
mov eax, dword [edi - 0xc]
inc eax
mov ebx, eax
and ebx, 0x80000003
jns 0x10103528
dec ebx
or ebx, 0xfffffffc
inc ebx
neg ebx
cdq
push 0x1025abd4
sbb ebx, ebx
and edx, 3
add eax, edx
neg ebx
sar eax, 2
xor ecx, ecx
add ebx, eax
mov edx, 4
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.101e2340
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
je 0x1010369d
lea ecx, [ebx*4]
push ecx
push 0x20
push eax
mov dword [ebp - 8], ecx
call fcn.102134e7
push dword [edi - 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.102134e1
add esp, 0x18
mov eax, edi
test ebx, ebx
jle 0x1010359e
lea ecx, [ecx]
xor dword [eax], 0x4f484951
lea eax, [eax + 4]
sub ebx, 1
jne 0x10103590
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101035db
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101035bf
mov eax, dword [eax + 0x24]
jmp 0x101035c1
xor eax, eax
test eax, eax
je 0x101035db
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call eax
jmp 0x101035f3
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10103687
mov dword [ebp + 0xc], 0
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1010363e
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10103626
mov eax, dword [eax + 0x2c]
jmp 0x10103628
xor eax, eax
test eax, eax
je 0x1010363e
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push 0
push ecx
push dword [ebp - 8]
push ebx
push edi
call eax
jmp 0x10103652
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push 0
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x1010367e
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x10103673
mov eax, dword [eax + 0x5c]
jmp 0x10103675
xor eax, eax
test eax, eax
je 0x1010367e
push edi
call eax
jmp 0x1010368a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010368a
mov ebx, dword [ebp + 8]
push ebx
call fcn.10213517
mov edi, dword [ebp - 4]
add esp, 4
mov ebx, 1
jmp 0x1010369f
xor ebx, ebx
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101036b7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101036cf
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.100030c0
call fcn.100041a0
push 0x80070057
call fcn.100030c0
int3