Function at 0x10030cb
Capabilities:
Copy file
Create process on windows
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1c78
call fcn.01003800
mov eax, dword [0x1004074]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c24], eax
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x1c78]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x1c34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, 0x100
xor eax, eax
mov ecx, edx
xor esi, esi
lea edi, [ebp - 0x804]
rep stosd dword es:[edi], eax
push 0x200
lea eax, [ebp - 0x1c04]
push eax
push dword [0x100402c]
xor ebx, ebx
inc ebx
mov word [ebp - 0x404], si
mov word [ebp - 0x1804], si
mov dword [ebp - 0x1c14], esi
mov dword [ebp - 0x1c10], esi
mov dword [ebp - 0x1c0c], esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c18], ebx
mov dword [ebp - 0x1c1c], ebx
mov dword [ebp - 0x1c78], 0x44
mov dword [ebp - 0x1c4c], edx
mov word [ebp - 0x1c48], 0xa
call esi
push 0x800
lea eax, [ebp - 0x1804]
push eax
push dword [0x1004030]
call esi
xor esi, esi
cmp dword [ebp + 8], 2
mov dword [ebp - 0x1c20], eax
mov word [ebp - 0x806], si
jl 0x100343d
cmp dword [ebp + 8], ebx
mov dword [ebp - 0x1c08], ebx
jle 0x100343d
mov eax, dword [ebp - 0x1c24]
mov ecx, dword [ebp - 0x1c08]
lea ebx, [eax + ecx*4]
mov esi, dword [ebx]
push esi
call dword [sym.imp.msvcrt.dll__wcslwr]
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [esp], 0x1001d38
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1003220
push 0x1001d2c
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1003220
push 0x1001d20
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1003220
push 0x1001d14
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1003220
push 0x1001d08
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x10032c2
cmp dword [ebp - 0x1c0c], 0
jne 0x10033d5
cmp word [ebp - 0x804], 0
jne 0x1003247
lea edi, [ebp - 0x804]
mov ecx, 0x1001d68
call fcn.0100304e
push dword [ebx]
lea edi, [ebp - 0x1c10]
lea ecx, [ebp - 0x804]
call fcn.01002e62
test eax, eax
mov dword [ebp - 0x1c18], eax
je 0x10032ad
cmp dword [ebp - 0x1c10], 3
je 0x100327b
cmp dword [ebp - 0x1c10], 2
mov eax, dword [0x100403c]
jne 0x1003280
mov eax, dword [0x1004038]
lea ecx, [ebp - 0x804]
push ecx
push eax
push dword [0x1004034]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
mov dword [ebp - 0x1c0c], 1
jmp 0x10033d5
and word [ebp - 0x404], 0
and word [ebp - 0x402], 0
jmp 0x10033d5
push 0x1001d5c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10032ea
push 0x1001d44
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x10033d5
mov eax, dword [ebx]
cmp word [eax], 0x2f
jne 0x10033bd
mov cx, word [eax + 2]
cmp cx, 0x48
je 0x100330a
cmp cx, 0x68
jne 0x10033bd
mov cx, word [eax + 4]
cmp cx, 0x54
je 0x100331e
cmp cx, 0x74
jne 0x10033bd
mov cx, word [eax + 6]
cmp cx, 0x4d
je 0x1003332
cmp cx, 0x6d
jne 0x10033bd
mov cx, word [eax + 8]
cmp cx, 0x4c
je 0x1003342
cmp cx, 0x6c
jne 0x10033bd
mov cx, word [eax + 0xa]
cmp cx, 0x46
je 0x1003352
cmp cx, 0x66
jne 0x10033bd
mov cx, word [eax + 0xc]
cmp cx, 0x49
je 0x1003362
cmp cx, 0x69
jne 0x10033bd
mov cx, word [eax + 0xe]
cmp cx, 0x4c
je 0x1003372
cmp cx, 0x6c
jne 0x10033bd
mov cx, word [eax + 0x10]
cmp cx, 0x45
je 0x1003382
cmp cx, 0x65
jne 0x10033bd
cmp word [eax + 0x12], 0x3a
jne 0x10033bd
xor esi, esi
add eax, 0x14
cmp dword [ebp - 0x1c0c], esi
je 0x10033a7
push esi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x10033d5
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x1c1c], esi
jmp 0x10033d5
push 0x1ff
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
and word [ebp - 6], 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x1c20]
inc eax
lea esi, [eax + ecx]
cmp esi, 0x800
jae 0x1003432
lea eax, [ebp + ecx*2 - 0x1804]
mov edx, 0x7fe
sub edx, ecx
push edx
lea ecx, [ebp - 0x404]
push ecx
push eax
mov word [eax - 2], 0x20
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
inc dword [ebp - 0x1c08]
mov eax, dword [ebp - 0x1c08]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x1c20], esi
jl 0x10031b6
cmp dword [ebp - 0x1c18], 0
je 0x10034b6
xor esi, esi
lea eax, [ebp - 0x1c34]
push eax
lea eax, [ebp - 0x1c78]
push eax
push esi
push esi
push 8
push esi
push esi
push esi
lea eax, [ebp - 0x1804]
push eax
lea eax, [ebp - 0x1c04]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1003478
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c14], eax
jmp 0x1003499
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x1c34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1c30]
call edi
cmp dword [ebp - 0x1c0c], esi
je 0x10034b6
cmp dword [ebp - 0x1c1c], esi
je 0x10034b6
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c14]
pop edi
pop esi
pop ebx
call fcn.01003541
leave
ret