Function at 0x402aa0
Capabilities:
Enumerate processes
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4121f5
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x41b068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x402cdf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xorps xmm0, xmm0
mov dword [ebp - 0x254], eax
movlpd qword [ebp - 0x18], xmm0
push 0x2c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00405a24
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movlpd qword [ebp - 0x20], xmm0
push 0x18
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00405a24
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x20], eax
push 0x228
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
push 0
push eax
mov dword [ebp - 0x250], 0x22c
call fcn.004068e0
add esp, 0x14
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402c57
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403b10
lea ecx, [ebp - 0x22c]
mov edx, eax
lea esi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402bc0
sub ecx, esi
lea eax, [ebp - 0x22c]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.00404d30
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403a30
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
mov eax, dword [ebp - 0x254]
cmp dword [ebp - 0x248], eax
jne 0x402c45
mov esi, dword [ebp - 0x18]
mov ecx, esi
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x402c34
nop word [eax + eax]
cmp dword [eax + 0x10], edx
jae 0x402c2a
mov eax, dword [eax + 8]
jmp 0x402c2e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x402c20
cmp byte [ecx + 0xd], 0
jne 0x402c3f
cmp edx, dword [ecx + 0x10]
jae 0x402c41
mov ecx, esi
cmp ecx, esi
jne 0x402c57
lea eax, [ebp - 0x250]
push eax
push edi
call ebx
test eax, eax
jne 0x402ba0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x402c84
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403b10
cmp dword [eax + 0x14], 8
jb 0x402c78
mov eax, dword [eax]
push eax
push 0x418374
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x402cb6
push dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
mov ecx, eax
call fcn.00404860
mov eax, esi
mov esi, dword [esi]
push 0x18
push eax
call fcn.00405a11
add esp, 8
cmp byte [esi + 0xd], 0
je 0x402c90
mov eax, dword [ebp - 0x20]
push 0x18
push eax
call fcn.00405a11
mov eax, dword [ebp - 0x18]
add esp, 8
push dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
mov ecx, eax
call fcn.004048a0
push 0x2c
push dword [ebp - 0x18]
call fcn.00405a11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004059e0
mov esp, ebp
pop ebp
ret