Function at 0x1001c6ce
Capabilities:
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x1003e620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [eax + 0xe]
push edi
mov edi, eax
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x258], ecx
cmp eax, ecx
jae case.0x1001c639.151
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x86]
xor ecx, ecx
cmp eax, 0x23
ja case.0x1001c639.136
movzx eax, byte [eax + 0x1001cd60]
jmp dword [eax*4 + 0x1001cd24]
inc edx
loope 0x1001c692
int1
mov dword [ebp - 0x248], ecx
cmp ebx, ecx
jne case.0x1001c639.136
push str.VCVTQQ2PDZrrb
push 0x1003455f
push 0
push 0x1003455f
push 0x1003455c
push 2
call fcn.100021f0
add esp, 0x18
mov eax, dword [ebp - 0x248]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027670
mov esp, ebp
pop ebp
ret
push 0xac
lea ecx, [ebp - 0x224]
push 0
push ecx
call fcn.10026c70
push 0x75
push 0
call fcn.10003620
add esp, 0x14
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea edx, [ebp - 0x224]
push edx
mov dword [ebp - 0x238], eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp case.0x1001c639.136
std
invalid
cmp dword [ebp - 0x238], ecx
je 0x1001c86f
mov edi, 0x53
mov dword [ebp - 0x230], edi
cmp edi, 0x53
je 0x1001c83c
cmp edi, 0x13c
jne 0x1001c857
cmp dword [ebp - 0x24c], 0xb7
je 0x1001c857
mov esi, dword [ebp - 0x22c]
mov ebx, 0xaa
cmp ebx, 0x2dd2
ja 0x1001c774
je 0x1001c769
cmp ebx, 0xaa
je 0x1001c74d
cmp ebx, 0x173e
jne 0x1001c828
mov eax, dword [0x10038705]
mov cl, byte [0x10038709]
mov dword [ebp - 0xe], eax
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], 0x65
jmp 0x1001c828
push 2
lea edx, [ebp - 0x10]
push 0x100386d7
push edx
mov byte [ebp - 0x10], 0
call fcn.10027280
add esp, 0xc
jmp 0x1001c828
mov word [ebp - 8], 0x70
jmp 0x1001c828
cmp ebx, 0x4466
je 0x1001c794
cmp ebx, 0x5afa
jne 0x1001c828
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1001c828
lea eax, [ebp - 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0x50
lea ecx, [ebp - 0x234]
push ecx
push 0
mov edi, eax
mov dword [ebp - 0x234], esi
call fcn.10012980
add esp, 0xc
test al, al
jne 0x1001c80e
mov esi, 0xbe
mov eax, esi
sub eax, 0xbe
je 0x1001c7da
dec eax
jne 0x1001c805
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x158]
push ecx
mov dword [ebp - 0x260], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
inc esi
cmp esi, 0xc0
jb 0x1001c7c6
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x22c]
mov edi, dword [ebp - 0x230]
add ebx, 0x1694
cmp ebx, 0x70e4
jbe 0x1001c715
jmp 0x1001c857
xor eax, eax
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_GetTrusteeFormW]
add edi, 0xe9
mov dword [ebp - 0x230], edi
cmp edi, 0x225
jb 0x1001c6e5
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [ebp - 0x238], 0
jne 0x1001c8f0
mov esi, 3
lea ebx, [ebx]
cmp esi, 3
ja case.default.0x1001c895
jmp dword [esi*4 + 0x1001cd84]
mov byte [ebp - 0x225], 1
jmp case.default.0x1001c895
cmp byte [ebp - 0x225], 0
je case.default.0x1001c895
mov edi, dword [ebp - 0x264]
push edi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push edi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
jmp case.default.0x1001c895
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 0x264], eax
test eax, eax
jne case.default.0x1001c895
mov byte [ebp - 0x225], al
dec esi
lea ecx, [esi + 0x68]
cmp ecx, 0x67
ja 0x1001c890
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x16c], eax
jmp case.0x1001c639.136
mov dword [ebp - 0x244], ecx
cmp ebx, ecx
jne case.0x1001c639.136
push str.ProcLink_only
push 0x1003455f
push 0
push 0x1003455f
push 0x100345f0
push 2
call fcn.100021f0
add esp, 0x18
mov dword [ebp - 0x244], 3
jmp 0x1001ccf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24c], eax
jmp case.0x1001c639.136
mov dword [ebp - 0x22c], ecx
jmp case.0x1001c639.136
cmp dword [ebp - 0x238], ecx
je 0x1001cc43
mov edi, 0xe6
mov dword [ebp - 0x234], edi
mov eax, edi
sub eax, 0xe6
je 0x1001cc01
sub eax, 0x1f
jne 0x1001cc2e
cmp dword [ebp - 0x24c], 0xb7
je 0x1001cc2e
mov edi, 4
mov dword [ebp - 0x230], 0x69
mov dword [ebp - 0x254], edi
lea esp, [esp]
cmp edi, 4
ja case.default.0x1001c9d9
jmp dword [edi*4 + 0x1001cd94]
mov byte [ebp - 0x25c], 0
jmp case.default.0x1001c9d9
mov edx, dword [ebp - 0x25c]
push edx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_SaferiIsExecutableFileType]
cmp dword [ebp - 0x22c], 0
jne case.default.0x1001c9d9
mov ebx, 5
nop
cmp ebx, 5
ja case.default.0x1001ca19
jmp dword [ebx*4 + 0x1001cda8]
push 6
lea ecx, [ebp - 0x30]
push 0x100386b8
push ecx
mov dword [ebp - 0x32], 0x72
call fcn.10026900
add esp, 0xc
jmp case.default.0x1001ca19
xor edx, edx
lea edi, [ebp - 0x34]
mov word [ebp - 0x34], dx
add edi, 0xfffffffe
jmp 0x1001ca50
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1001ca50
mov eax, dword [0x100386b4]
mov dword [edi], eax
jmp case.default.0x1001ca19
push 2
lea ecx, [ebp - 0x2a]
push 0x100386b0
push ecx
call fcn.1002883c
lea eax, [ebp - 0x34]
add esp, 0xc
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1001ca81
mov edx, dword [str.MyJobO]
mov ecx, dword [0x100386a4]
mov dword [eax], edx
mov edx, dword [0x100386a8]
mov dword [eax + 4], ecx
mov cx, word [0x100386ac]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
lea eax, [ebp - 0x34]
add eax, 0xfffffffe
jmp 0x1001cac0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1001cac0
mov edx, dword [0x10038698]
mov cx, word [0x1003869c]
mov dword [eax], edx
push 6
lea edx, [ebp - 0x18]
push 0x10038690
push edx
mov word [eax + 4], cx
call fcn.10026900
add esp, 0xc
jmp case.default.0x1001ca19
push 4
lea eax, [ebp - 0x14]
push 0x1003868c
push eax
call fcn.10026900
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push eax
call esi
jmp case.default.0x1001ca19
mov dword [ebp - 0x2c], 0x74
dec ebx
lea edx, [ebx + 0xeb]
cmp edx, 0xea
ja 0x1001ca10
mov ebx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x254]
jmp case.default.0x1001c9d9
xor eax, eax
jmp 0x1001cb50
movzx ecx, word [eax + 0x10037b48]
mov word [ebp + eax - 0x3c], cx
add eax, 2
test cx, cx
jne 0x1001cb50
push 0
push 0xb5
push 0
call fcn.1001c470
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x22c], eax
jmp case.default.0x1001c9d9
push 4
lea eax, [ebp - 0x4c]
push 0x10038688
push eax
call fcn.10026900
push 3
lea ecx, [ebp - 0x4a]
push 0x10038680
push ecx
call fcn.1002883c
push 6
lea edx, [ebp - 0x46]
push 0x10038678
push edx
call fcn.10026900
push 4
lea eax, [ebp - 0x42]
push 0x10038670
push eax
call fcn.1002883c
add esp, 0x30
jmp case.default.0x1001c9d9
push 5
lea ecx, [ebp - 0x54]
push str.Name
push ecx
call fcn.1002883c
add esp, 0xc
mov eax, dword [ebp - 0x230]
dec eax
dec edi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x254], edi
cmp eax, 0x64
ja 0x1001c9d0
mov edi, dword [ebp - 0x234]
jmp 0x1001cc2e
xor eax, eax
lea edx, [ebp - 0x278]
push edx
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorLength]
add edi, 0x1f
mov dword [ebp - 0x234], edi
cmp edi, 0x124
jb 0x1001c991
mov edi, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
jmp case.0x1001c639.136
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x240], eax
jmp case.0x1001c639.136
mov dword [ebp - 0x238], ecx
jmp case.0x1001c639.136
mov eax, 0x7f
cmp eax, 0x7f
je 0x1001cc98
cmp eax, 0x53d7
je 0x1001c673
jmp 0x1001cca1
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x248], ecx
add eax, 0x5358
cmp eax, 0xa6b0
jbe 0x1001cc86
lea edx, [ebp - 0x178]
push edx
lea eax, [ebp - 0x168]
push eax
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
push 0
push 0x30
call fcn.10024930
add esp, 8
jmp case.0x1001c639.136
push 0x60
push 0
push 0
call fcn.1000f0c0
add esp, 0xc
jmp case.0x1001c639.136
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], eax
mov edi, 0x95
inc edi
mov dword [ebp - 0x23c], edi
cmp edi, dword [ebp - 0x258]
jb 0x1001c621
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x240]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10027670
mov esp, ebp
pop ebp
ret