Function at 0x4678c0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x58e5a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.WINDIR
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ecx - 1]
cmp eax, 0xfff
ja 0x467b2a
push edi
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.00466370
test eax, eax
je 0x467b15
test esi, esi
je 0x467b15
cmp esi, 0x104
jae 0x467b15
mov ecx, 0x104
lea eax, [ebp - 0x20c]
nop dword [eax]
cmp word [eax], bx
je 0x46795d
add eax, 2
sub ecx, 1
jne 0x467950
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x467b15
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x4679a9
mov edi, str._sysnative_rundll32.exe
mov eax, SysReAllocString
sub edi, ecx
nop
test eax, eax
je 0x4679a9
movzx esi, word [edi + ecx]
test si, si
je 0x4679a9
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x467990
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x467b15
mov esi, dword [ebp - 0x41c]
lea eax, [esi + 0xc]
push eax
push str.rundll32.exe___hs__1
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00407f20
add esp, 0x10
test eax, eax
js 0x467b15
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x470], 0x44
push eax
lea eax, [ebp - 0x470]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x414]
movlpd qword [ebp - 0x46c], xmm0
push eax
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x464], xmm0
push eax
movups xmmword [ebp - 0x42c], xmm0
movlpd qword [ebp - 0x45c], xmm0
movlpd qword [ebp - 0x454], xmm0
movlpd qword [ebp - 0x44c], xmm0
movlpd qword [ebp - 0x444], xmm0
movlpd qword [ebp - 0x43c], xmm0
movlpd qword [ebp - 0x434], xmm0
call dword [ebp - 0x418]
test eax, eax
je 0x467b15
push dword [esi]
push esi
push 0x5427b0
push dword [ebp - 0x42c]
call fcn.00466d80
test eax, eax
jne 0x467ab0
push 0xffffffffffffffff
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
jmp 0x467b15
push dword [ebp - 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [ebp - 0x428]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x1f4
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
cmp dword [ebp - 0x418], ebx
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x467b32
push eax
call fcn.004d2aa1
add esp, 4
jmp 0x467b32
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2a60
mov esp, ebp
pop ebp
ret 0x10