Function at 0x10001d40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
lea eax, [ecx - 0x366a]
add edx, 0xffffc996
mov dword [esp + 0xc], eax
lea ebx, [ecx - 0x19]
mov eax, dword [esp + 0x20]
lea ebp, [ecx - 0x18]
push esi
mov esi, dword [esp + 0x18]
xor eax, 0x365c
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebp
push edi
lea edi, [ecx - 0x14]
cmp eax, ecx
je 0x10001ea2
mov eax, edx
xor eax, 0x3664
cmp ebx, eax
jge 0x10001ea2
mov eax, dword [0x101650f0]
mov ecx, edi
xor ecx, 0x3c
mov dword [eax + 0xb4], 0x10134f08
lea eax, [ebx + 8]
cmp ebp, eax
cmove ecx, edi
xor ebp, ebp
mov edi, ecx
nop dword [eax + eax]
mov ecx, dword [0x101650f0]
mov ebx, dword [esi + 0x68]
mov eax, dword [ecx + 0xb4]
mov edx, dword [eax + ebp]
add ebp, 4
mov eax, dword [ecx + 0x9c]
sub eax, dword [esi + 0x12c]
sub eax, 0x58a673
imul ebx, edx
or dword [esi + 0x70], eax
mov eax, dword [esi + 0x13c]
sub dword [0x101650ec], eax
mov eax, dword [0x101650f0]
mov ecx, dword [esi + 0xb8]
mov edx, ebx
shr edx, 0x18
mov eax, dword [eax + 0x8c]
xor eax, dword [esi + 8]
xor eax, 0x1dd969
or dword [esi + 0x58], eax
mov eax, dword [esi + 0x6c]
mov byte [ecx + eax], dl
mov ecx, ebx
inc dword [esi + 0x6c]
mov eax, dword [0x10165060]
mov edx, dword [esi + 0x6c]
shr ecx, 0x10
mov byte [edx + eax], cl
mov ecx, ebx
inc dword [esi + 0x6c]
mov eax, dword [0x10165060]
mov edx, dword [esi + 0x6c]
shr ecx, 8
mov byte [edx + eax], cl
inc dword [esi + 0x6c]
mov ecx, dword [0x101650f0]
mov eax, dword [0x10165068]
add eax, 0xffffffed
or dword [ecx + 0x60], eax
mov eax, dword [esi + 8]
imul eax, dword [esi + 0x144]
mov ecx, dword [esi + 0xb8]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x13c]
sub eax, dword [esi + 0x12c]
add eax, 0x4f
add dword [esi + 0x104], eax
mov eax, dword [esi + 0x6c]
mov byte [ecx + eax], bl
inc dword [esi + 0x6c]
cmp ebp, 0x2f904
jl 0x10001dc0
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
cmp ebx, edi
jge 0x10001fff
mov ecx, dword [0x101650f0]
mov eax, dword [ecx + 0xc0]
xor eax, 0x85e33770
mov dword [0x10165010], eax
cmp dword [ecx + 0x90], 0x8f63
jbe 0x10001edc
mov dword [ecx + 0xb4], section..data
mov ecx, dword [0x101650f0]
xor edi, edi
nop
mov eax, dword [0x101650a4]
add eax, 0xa0515
add dword [ecx + 0x10], eax
mov eax, dword [esi + 0x38]
sub dword [0x1016503c], eax
mov eax, dword [0x1016505c]
mov ebx, dword [edi + eax]
add edi, 4
mov eax, dword [0x101650f0]
imul ebx, dword [eax + 0x68]
mov eax, dword [eax + 0xd8]
xor eax, 1
or dword [0x10164ff8], eax
mov eax, dword [esi + 0x94]
xor dword [esi + 0xd4], eax
mov edx, ebx
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0xb8]
shr edx, 8
mov dword [esi + 0xc], eax
mov eax, dword [0x10165054]
add eax, 0x2ba4ddef
add dword [esi + 0x11c], eax
mov eax, dword [0x10165014]
mov byte [eax + ecx], dl
mov ecx, dword [0x10165014]
inc ecx
mov dword [0x10165014], ecx
mov eax, dword [esi + 0xac]
add eax, dword [esi + 0x118]
xor eax, 0xd45b2211
sub dword [0x10165024], eax
mov eax, dword [esi + 0xb8]
mov byte [ecx + eax], bl
mov ecx, dword [0x101650f0]
inc dword [0x10165014]
mov eax, dword [ecx + 0x7c]
sub eax, 5
or dword [ecx + 0xf4], eax
mov ecx, dword [0x101650f0]
mov eax, dword [ecx + 0x9c]
sub eax, dword [esi + 0x144]
xor eax, 0x58a6c1
add dword [0x101650e4], eax
cmp edi, 0x49fc8
jl 0x10001ee0
mov eax, dword [esi + 0xd0]
cmp eax, dword [ecx + 0x13c]
jb 0x10001fe8
mov eax, dword [0x10164ff8]
pop edi
add eax, 0xc7e3f1f8
pop esi
mov dword [0x10165010], eax
lea eax, [ebp + 7]
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [ecx + 0x70]
xor eax, dword [esi + 0x70]
add dword [0x10165044], eax
lea eax, [ebp + 7]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
sub edx, ebp
push edx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
imul eax, dword [esi + 0x58], 0x365c
cmp dword [esp + 0x14], eax
ja 0x10002021
xor edi, 0x366a
sub dword [0x10165068], edi
pop edi
pop esi
lea eax, [ebp + 7]
pop ebp
pop ebx
add esp, 8
ret