Function at 0x1001401d
Capabilities:
Delete file
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x334]
sub esp, 0x3b4
mov eax, dword [0x1008bc20]
xor eax, ebp
mov dword [ebp + 0x330], eax
push ebx
mov ebx, dword [ebp + 0x340]
push esi
xor esi, esi
push edi
cmp dword [ebp + 0x33c], esi
jne 0x1001422c
cmp ebx, esi
je 0x10014091
push ebx
call fcn.100462a9
pop ecx
test eax, eax
je 0x10014091
cmp word [ebx], 0x2d
jne 0x1001407e
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 2
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x100142f6
push ebx
call fcn.1004629e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100142f6
call fcn.1003076d
push esi
push esi
mov ecx, 0x10094a08
call fcn.1003fbf5
test eax, eax
je 0x100142f6
mov edi, 0x104
push edi
lea eax, [ebp + 0x22c]
push eax
push dword [0x1008ec84]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10014225
push edi
lea eax, [ebp + 0x22c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x10014225
push esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], esi
call fcn.10013588
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], esi
call fcn.10013588
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], esi
call fcn.10013588
push esi
push str._i:1000__u
lea eax, [ebp + 0x22c]
push eax
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.10040603
lea eax, [ebp + 0x22c]
push eax
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push dword [ebp - 0x70]
push str._c_start__wait__s__s__del__s
push eax
call fcn.10013b39
add esp, 0x2c
lea ecx, [ebp - 0x68]
call fcn.100135de
lea ecx, [ebp - 0x68]
call fcn.100136b3
lea ecx, [ebp - 0x68]
call fcn.100136be
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea ecx, [ebp - 0x68]
call fcn.10013709
test eax, eax
jne 0x10014199
lea ecx, [ebp - 0x68]
call fcn.10013623
push dword [ebp - 0x78]
call fcn.1004523d
push dword [ebp - 0x80]
call fcn.1004523d
push dword [ebp - 0x70]
call fcn.1004523d
add esp, 0xc
mov eax, esi
jmp 0x100142f9
lea eax, [ebp + 0x22c]
push esi
push eax
push eax
call fcn.1003fea5
add esp, 0xc
lea eax, [ebp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea eax, [ebp + 0x128]
push eax
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x100141e1
lea eax, [ebp + 0x128]
push str.cmd.exe
push eax
call fcn.10046190
pop ecx
pop ecx
push esi
push esi
push esi
push dword [ebp - 0x78]
lea eax, [ebp + 0x128]
push eax
call fcn.10040071
add esp, 0x14
test eax, eax
je 0x10014202
xor esi, esi
inc esi
jmp 0x1001416f
lea ecx, [ebp - 0x68]
call fcn.10013623
push dword [ebp - 0x78]
call fcn.1004523d
push dword [ebp - 0x80]
call fcn.1004523d
push dword [ebp - 0x70]
call fcn.1004523d
add esp, 0xc
xor eax, eax
jmp 0x100142f9
call fcn.1003076d
push esi
mov edi, 0x10094a08
push esi
mov ecx, edi
call fcn.1003fbf5
test eax, eax
je 0x100142f6
cmp ebx, esi
je 0x10014287
push ebx
call fcn.100462a9
pop ecx
test eax, eax
je 0x10014287
movzx eax, word [ebx]
cmp ax, 0x48
jne 0x10014275
add ebx, 2
push ebx
call fcn.1004629e
push eax
call fcn.10017f88
pop ecx
pop ecx
jmp 0x100142f9
cmp ax, 0x44
jne 0x10014225
add ebx, 2
push ebx
call fcn.10013a8e
pop ecx
jmp 0x10014225
push esi
push 8
mov ecx, edi
call fcn.1003fbf5
cmp eax, 1
je 0x100142ad
push esi
push 8
mov ecx, edi
call fcn.1003fbf5
test eax, eax
je 0x100142b6
call fcn.1001b4da
test eax, eax
je 0x100142b6
call fcn.1001cb61
test eax, eax
jne 0x100142f6
lea ecx, [ebp - 0x68]
call fcn.100135de
lea ecx, [ebp - 0x68]
call fcn.10013b4c
lea ecx, [ebp - 0x68]
test eax, eax
jne 0x100142e5
call fcn.10013623
jmp 0x10014225
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x68]
call fcn.10013f35
test eax, eax
je 0x100142d7
lea ecx, [ebp - 0x68]
call fcn.10013623
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x330]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045c30
add ebp, 0x334
leave
ret