Function at 0x431744
Capabilities:
Create restart manager session
Encode data using xor
Enumerate processes that use resource

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov esi, edx
mov ebx, ecx
mov ebp, dword [esp + 0x94]
mov edi, dword [edx + 4]
mov edx, dword [edx + 8]
mov ecx, edi
mov dword [esp + 0x44], edx
push dword [ebp + 8]
push dword [ebp + 4]
call fcn.00431e01
add esp, 8
test al, al
je 0x431786
mov byte [ebx + 4], 1
mov dword [ebx], 0
jmp 0x431af0
mov dword [esp + 0x14], edi
mov dword [esp + 8], esi
xor edi, edi
mov dword [esp], edi
lea eax, [0x4a26f2]
lea esi, [esp + 0x1c]
mov dword [esi], eax
mov ecx, dword [esi]
mov dword [esi], 0x517b96a9
mov edx, dword [esi]
call fcn.00426f68
mov dword [esi + 0x20], edi
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi], xmm0
mov ecx, 0xfffffffc
mov edx, dword [ecx + 0x4a6513]
xor edx, dword [eax + ecx + 4]
mov dword [esp + ecx + 0x20], edx
add ecx, 4
cmp ecx, 0x20
jb 0x4317c0
mov al, byte [eax + 0x24]
xor al, 0x35
mov byte [esp + 0x40], al
movups xmm0, xmmword [esp + 0x1c]
movups xmm1, xmmword [esp + 0x2c]
movups xmmword [esp + 0x54], xmm0
movups xmmword [esp + 0x64], xmm1
movsd xmm0, qword [esp + 0x39]
movsd qword [esp + 0x71], xmm0
mov cl, byte [esp + 0x54]
movzx edi, cl
test cl, cl
mov dword [esp + 4], ebx
js 0x431816
xor ebp, ebp
inc ebp
jmp 0x4318ae
and edi, 0x1f
movzx edx, byte [esp + 0x55]
and edx, 0x3f
cmp cl, 0xdf
jbe 0x43186b
movzx eax, byte [esp + 0x56]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x431877
movzx ecx, byte [esp + 0x57]
and edi, 7
shl edi, 0x12
shl eax, 6
and ecx, 0x3f
or ecx, eax
or edi, ecx
mov ebp, 4
cmp edi, 0x110000
jne 0x431881
mov esi, 2
mov ebp, dword [esp + 0x94]
jmp 0x431a16
shl edi, 6
or edi, edx
mov ebp, 2
jmp 0x4318ae
shl edi, 0xc
or edi, eax
mov ebp, 3
cmp edi, 0xffff
jbe 0x4318ae
lea eax, [edi + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and edi, 0x3ff
or edi, 0xdc00
xor esi, esi
inc esi
mov ebx, edi
mov dword [esp + 0x10], eax
jmp 0x4318b6
mov dword [esp + 0x10], edi
xor ebx, ebx
xor esi, esi
mov eax, ebp
xor eax, 0x27
mov ecx, 0x55555556
mul ecx
lea edi, [esp + 0x79]
add esi, edx
cmp esi, 4
mov ecx, 3
cmovae ecx, esi
inc ecx
call fcn.00478d1b
mov ecx, dword [esp + 0x10]
mov word [edx], cx
lea ecx, [esp + 0x1c]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], 1
add edi, 2
mov dword [esp + 0x10], edi
xor edi, edi
inc edi
test bx, bx
jne 0x4319a3
cmp ebp, 0x25
je 0x4319f1
mov cl, byte [esp + ebp + 0x54]
movzx ebx, cl
test cl, cl
js 0x43191d
inc ebp
jmp 0x4319a3
and ebx, 0x1f
movzx esi, byte [esp + ebp + 0x55]
and esi, 0x3f
cmp cl, 0xdf
jbe 0x431969
movzx eax, byte [esp + ebp + 0x56]
shl esi, 6
and eax, 0x3f
or eax, esi
cmp cl, 0xf0
jb 0x431973
movzx ecx, byte [esp + ebp + 0x57]
and ebx, 7
mov esi, ebx
shl esi, 0x12
shl eax, 6
and ecx, 0x3f
or ecx, eax
mov ebx, ecx
or ebx, esi
cmp ebx, 0x110000
je 0x4319f1
add ebp, 4
jmp 0x43197b
add ebp, 2
shl ebx, 6
or ebx, esi
jmp 0x4319a3
add ebp, 3
shl ebx, 0xc
or ebx, eax
cmp ebx, 0xffff
jbe 0x4319a3
lea eax, [ebx + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and ebx, 0x3ff
or ebx, 0xdc00
mov esi, ebx
mov ebx, eax
jmp 0x4319a5
xor esi, esi
cmp edi, dword [esp + 0x1c]
je 0x4319bb
mov word [edx + edi*2], bx
inc edi
mov dword [esp + 0x24], edi
mov ebx, esi
jmp 0x4318fa
lea ecx, [esp + ebp]
add ecx, 0x54
mov eax, dword [esp + 0x10]
sub eax, ecx
mov ecx, 0xaaaaaaab
mul ecx
mov eax, edx
shr eax, 1
cmp si, 1
sbb eax, 0
add eax, 2
lea ecx, [esp + 0x1c]
mov edx, edi
push eax
call fcn.00492167
add esp, 4
mov edx, dword [esp + 0x20]
jmp 0x4319ab
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x1c], 0
je 0x431a0b
push esi
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [esp + 0x94]
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x14]
mov eax, esp
push esi
push 0
push eax
call dword [sym.imp.rstrtmgr.dll_RmStartSession]
test eax, eax
jne 0x431ace
lea ebx, [esp + 0x54]
mov ecx, ebx
mov edx, edi
push dword [esp + 0x44]
call fcn.0046d910
add esp, 4
mov esi, dword [ebx + 4]
mov eax, dword [ebx + 8]
add eax, esi
lea edi, [esp + 0x1c]
mov dword [edi], 1
mov dword [edi + 4], esi
mov dword [edi + 8], eax
mov word [edi + 0xc], 0
lea ecx, [esp + 0x48]
mov edx, edi
call fcn.00478fe0
test dword [ebx], 0x7fffffff
je 0x431a82
push esi
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
sub esp, 0x1c
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], 1
call dword [sym.imp.rstrtmgr.dll_RmRegisterResources]
test eax, eax
je 0x431b28
cmp dword [esp + 0x48], 0
mov ebx, dword [esp + 4]
je 0x431ace
push dword [esp + 0x4c]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov dword [ebx], eax
mov dword [ebx + 4], 0x4a67c8
mov esi, dword [esp + 8]
cmp dword [ebp], 0
je 0x431b07
push dword [ebp + 4]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi], 0
je 0x431b1d
push dword [esi + 4]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
lea eax, [esp + 0xc]
mov dword [eax], ebx
lea edi, [esp + 0x18]
mov dword [edi], ebx
lea ebp, [esp + 0x7c]
mov dword [ebp], ebx
push ebp
push ebx
push edi
push eax
push dword [esp + 0x10]
call dword [sym.imp.rstrtmgr.dll_RmGetList]
cmp eax, 0xea
je 0x431b91
test eax, eax
jne 0x431ba2
push dword [esp]
call dword [sym.imp.rstrtmgr.dll_RmEndSession]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov dword [ecx + 4], 0x4a67c8
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x94]
jmp 0x431d30
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x431bae
mov eax, 4
xor esi, esi
jmp 0x431be2
mov esi, dword [esp + 0xc]
test esi, esi
je 0x431c52
cmp esi, 0x310dcb
ja 0x431d52
imul ebx, esi, 0x29c
test ebx, ebx
js 0x431d52
mov al, byte [0x4c0b90]
xor ecx, ecx
mov edx, ebx
call fcn.0046de40
test eax, eax
je 0x431d57
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x18], ebx
push ebp
mov ebx, eax
push eax
push edi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.rstrtmgr.dll_RmGetList]
test eax, eax
jne 0x431ce7
cmp dword [esp + 0xc], 0
je 0x431ce7
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x431c3f
mov eax, dword [0x4c0a9c]
imul edi, ecx, 0x29c
test eax, eax
je 0x431c35
push 0
push 1
push dword [esp + 8]
call eax
mov eax, dword [0x4c0a9c]
jmp 0x431c37
xor eax, eax
add edi, 0xfffffd64
jne 0x431c20
test esi, esi
je 0x431c52
push ebx
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp]
call dword [sym.imp.rstrtmgr.dll_RmEndSession]
lea edi, [esp + 0x54]
mov ecx, edi
mov edx, dword [esp + 8]
call fcn.004023c0
mov ebx, dword [edi + 4]
mov ebp, dword [edi + 8]
lea edi, [esp + 0x1c]
mov ecx, edi
mov edx, dword [esp + 0x94]
call fcn.004023c0
mov esi, dword [edi + 4]
mov ecx, ebx
mov edx, ebp
push dword [edi + 8]
push esi
call fcn.00431e01
add esp, 8
mov ebx, eax
cmp dword [edi], 0
je 0x431cab
push esi
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x54], 0
je 0x431cc4
push dword [esp + 0x58]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test bl, bl
mov ebp, dword [esp + 0x94]
je 0x431ab1
mov eax, dword [esp + 4]
mov byte [eax + 4], 1
mov dword [eax], 0
mov esi, dword [esp + 8]
jmp 0x431d30
push dword [esp]
call dword [sym.imp.rstrtmgr.dll_RmEndSession]
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1c]
mov byte [ecx], 0
mov dword [ecx + 4], eax
call fcn.00434bb2
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov dword [ecx + 4], 0x4a67c8
test esi, esi
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x94]
je 0x431d30
push ebx
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x48], 0
je 0x431af0
push dword [esp + 0x4c]
push 0
push dword [0x4c0b18]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x431af0
call fcn.004010d0
mov ecx, 4
mov edx, ebx
call fcn.0048d220