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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x4d9694]
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 - 0x620], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.WINDIR
mov dword [ebp - 0x624], ebx
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ecx, dword [ebp + 0xc]
mov esi, eax
lea eax, [ecx - 1]
cmp eax, 0xfff
ja 0x41b4cb
push edi
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x624]
push eax
call fcn.00419770
test eax, eax
je 0x41b4b6
test esi, esi
je 0x41b4b6
cmp esi, 0x104
jae 0x41b4b6
mov ecx, 0x104
lea eax, [ebp - 0x20c]
nop dword [eax + eax]
cmp word [eax], bx
je 0x41b2dd
add eax, 2
sub ecx, 1
jne 0x41b2d0
mov edx, 0x104
mov esi, ecx
mov eax, edx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x41b4b6
lea ecx, [ebp - 0x20c]
lea ecx, [ecx + esi*2]
sub edx, esi
je 0x41b329
mov edi, str._sysnative_rundll32.exe
mov eax, CreateSecurityPage
sub edi, ecx
nop
test eax, eax
je 0x41b329
movzx esi, word [edi + ecx]
test si, si
je 0x41b329
mov word [ecx], si
dec eax
add ecx, 2
sub edx, 1
jne 0x41b310
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x41b4b6
mov esi, dword [ebp - 0x624]
lea eax, [ebp - 0x414]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [esi + 0xc]
push eax
push ecx
push ecx
call sub.KERNEL32.dll_MultiByteToWideChar
cmp eax, 0x104
jae 0x41b4b6
test eax, eax
jle 0x41b4b6
lea eax, [ebp - 0x414]
push eax
push str.rundll32.exe___s__1
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00419c50
add esp, 0x10
test eax, eax
js 0x41b4b6
lea eax, [ebp - 0x634]
mov dword [ebp - 0x678], 0x44
push eax
lea eax, [ebp - 0x678]
xorps xmm0, xmm0
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
movlpd qword [ebp - 0x674], xmm0
push eax
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x66c], xmm0
push eax
movups xmmword [ebp - 0x634], xmm0
movlpd qword [ebp - 0x664], xmm0
movlpd qword [ebp - 0x65c], xmm0
movlpd qword [ebp - 0x654], xmm0
movlpd qword [ebp - 0x64c], xmm0
movlpd qword [ebp - 0x644], xmm0
movlpd qword [ebp - 0x63c], xmm0
call dword [ebp - 0x620]
test eax, eax
je 0x41b4b6
push dword [esi]
push esi
push 0x4bca00
push dword [ebp - 0x634]
call fcn.0041a440
test eax, eax
jne 0x41b45e
push 0xffffffffffffffff
push dword [ebp - 0x634]
call sub.KERNEL32.dll_TerminateProcess
push dword [ebp - 0x634]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x630]
call sub.KERNEL32.dll_CloseHandle
jmp 0x41b4b6
push dword [ebp - 0x630]
call sub.KERNEL32.dll_ResumeThread
push 0xffffffffffffffff
push dword [ebp - 0x634]
call sub.KERNEL32.dll_WaitForSingleObject
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], 0x1f4
push eax
push dword [ebp - 0x634]
call sub.KERNEL32.dll_GetExitCodeProcess
push dword [ebp - 0x634]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x630]
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x620], ebx
mov eax, 1
cmove ebx, eax
mov eax, dword [ebp - 0x624]
test eax, eax
je 0x41b4d2
push eax
call fcn.0044990a
add esp, 4
jmp 0x41b4d2
push 0x57
call sub.KERNEL32.dll_SetLastError
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00448f14
mov esp, ebp
pop ebp
ret 0x10