Function at 0x100030d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 0x18]
mov edx, ecx
push ebx
push ebp
push esi
lea eax, [ecx + 9]
mov ebx, ecx
mov dword [esp + 0x24], eax
xor ebx, 0x3656
mov eax, dword [esp + 0x1c]
xor edx, 0x3b
add eax, 0xfffffffb
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push edi
lea edi, [ecx - 0x3656]
lea esi, [eax - 0x3656]
lea ebp, [eax + 0x17]
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
xor eax, 0x34
cmp esi, eax
mov esi, dword [esp + 0x24]
je 0x100031ce
mov eax, ebp
xor eax, 0x31
cmp edi, eax
je 0x10003172
mov eax, dword [0x10165068]
cmp eax, dword [esi + 0xc]
je 0x1000314c
mov eax, dword [esi + 0xc0]
mov ecx, dword [0x101650f0]
sub eax, dword [esi + 0x40]
add eax, 0x69e0da1
add dword [ecx + 0x68], eax
mov ecx, dword [0x101650f0]
mov eax, 0x1002
sub eax, dword [esi + 0x38]
xor edx, 0xa
add dword [ecx + 0x68], eax
add edi, 0x366a
mov dword [0x1016505c], 0x100e1ac8
jmp 0x100031ce
mov eax, edi
sub eax, dword [esi + 0xc]
imul eax, eax, 0x366a
cmp ebx, eax
jbe 0x100031ce
mov eax, edx
sub eax, edi
sub eax, dword [esp + 0x28]
cmp dword [0x1016503c], eax
jae 0x100031ce
mov eax, dword [0x1016508c]
sub eax, dword [esp + 0x10]
or eax, dword [esp + 0x28]
mov ecx, dword [0x101650f0]
add dword [ecx + 0x144], eax
mov eax, dword [esi + 0x128]
or eax, dword [0x101650a4]
xor eax, 0x365c
add ebx, eax
mov eax, dword [0x101650ec]
imul eax, ebp
sub eax, dword [0x10165040]
add dword [esi + 4], eax
lea eax, [edi - 0xe]
cmp dword [esp + 0x28], eax
jle 0x100033c9
xor edi, edi
nop dword [eax]
mov eax, dword [esi + 0xc0]
sub eax, 0x12
imul eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xfc]
mov ecx, eax
xor ecx, 0xfff5faeb
add ecx, eax
mov eax, 1
mov dword [esi + 0xfc], ecx
sub eax, dword [esi + 0xf4]
add dword [esi + 0x12c], eax
mov ecx, dword [0x101650f0]
mov eax, dword [ecx + 0xb4]
mov edx, dword [eax + edi]
add edi, 4
mov eax, dword [ecx + 0x140]
imul edx, dword [esi + 0x68]
sub eax, 0x228e9
imul eax, dword [esi + 0xc0]
mov dword [esi + 0xc0], eax
mov eax, dword [0x101650f0]
mov ecx, dword [eax + 0xb8]
mov eax, dword [eax + 0x6c]
mov byte [ecx + eax], dl
mov eax, dword [0x101650f0]
inc dword [eax + 0x6c]
mov eax, dword [0x101650f0]
mov eax, dword [eax + 0x90]
xor eax, 0x945ae
sub dword [esi + 0xc0], eax
mov eax, dword [0x10164fc8]
add dword [0x101650c4], eax
mov eax, dword [0x10164ff8]
dec eax
xor dword [esi + 0x8c], eax
mov eax, dword [esi + 0xf4]
dec eax
or dword [esi + 0xd4], eax
mov eax, 1
sub eax, dword [esi + 0x50]
add dword [esi + 0xfc], eax
cmp edi, 0x51a20
jl 0x100031e0
mov ecx, dword [0x101650f0]
mov dword [0x101650b8], 0x10164fa8
mov eax, dword [ecx + 0x30]
add eax, dword [esi + 0xf8]
add eax, dword [ecx]
xor eax, 0x15d2bda6
xor edx, edx
mov dword [ecx + 0x124], eax
nop word [eax + eax]
mov eax, dword [esi + 0x7c]
xor eax, dword [0x10165078]
sub eax, 0x1ab6ef
add dword [esi + 0x60], eax
mov ecx, dword [0x101650f0]
mov eax, dword [ecx + 0x140]
sub eax, 0x228e9
imul eax, dword [ecx + 0x90]
mov dword [ecx + 0x90], eax
mov eax, dword [0x101650f0]
mov ecx, dword [eax + 0xc4]
mov eax, dword [0x10165050]
xor dword [ecx + edx], eax
add edx, 4
mov eax, dword [0x10165000]
sub eax, dword [0x10164fc8]
sub eax, 0x1a861c
add dword [esi + 0x9c], eax
mov eax, 0xd45b2211
sub eax, dword [0x10165054]
add dword [esi + 0x11c], eax
mov ecx, dword [0x101650f0]
mov eax, dword [ecx + 0xc]
sub eax, 0x16f03b
or dword [0x10164ff8], eax
mov eax, dword [0x101650ec]
sub eax, dword [esi + 0x10]
add dword [ecx + 0x12c], eax
mov eax, 0x69df501
mov ecx, dword [esi + 0x144]
xor ecx, dword [esi + 0x40]
sub eax, ecx
add dword [esi + 0x140], eax
mov eax, dword [esi + 0xc8]
add dword [esi + 0xa8], eax
cmp edx, 0xafec4
jl 0x100032e0
mov ecx, dword [0x101650f0]
mov eax, dword [ecx + 0x4c]
cmp eax, dword [esi + 8]
jae 0x10003441
mov eax, dword [ecx + 0xc4]
pop edi
pop esi
mov dword [ecx + 0xb0], eax
mov eax, dword [esp + 0x18]
pop ebp
add eax, 0x365f
pop ebx
pop ecx
ret
sub edx, dword [esi + 0x28]
cmp dword [0x10165088], edx
je 0x100033f7
mov eax, dword [esi + 0x13c]
xor eax, 0x3664
or dword [esi + 0x140], eax
mov eax, dword [esi + 0x40]
and eax, ebp
sub eax, dword [0x10165030]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [0x101650f0]
mov eax, dword [ecx + 0x144]
sub eax, 0x9a7
and eax, 0x3657
push eax
mov eax, dword [0x10164fb4]
add eax, 0xffffc9a4
or eax, dword [esi + 0x118]
push eax
mov eax, dword [ecx + 0xe0]
or eax, ebx
push eax
mov eax, dword [ecx + 0x2c]
xor eax, ebp
add eax, dword [esi + 0x94]
push eax
push 0x10164fa8
call fcn.10002a80
add esp, 0x14
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
add eax, 0x365f
pop ebx
pop ecx
ret