Function at 0x418f04
Capabilities:
Delete file
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa84
mov eax, dword [0x5aff20]
xor eax, esp
mov dword [esp + 0xa80], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
xor ebx, ebx
lea eax, [esp + 0x67c]
push ebx
push eax
call fcn.00527ca0
xor eax, eax
push 0x206
mov word [esp + 0x480], ax
lea eax, [esp + 0x482]
push ebx
push eax
call fcn.00527ca0
add esp, 0x18
push esi
lea eax, [esp + 0x474]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [esp + 0x470]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x418f75
mov esi, str.Desktop
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
movzx ecx, word [esp + eax + 0x470]
mov word [esp + eax + 0x880], cx
add eax, 2
cmp cx, bx
jne 0x418f8e
lea edi, [esp + 0x880]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x418fb0
mov esi, 0x586004
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
movzx ecx, word [esp + eax + 0x470]
mov word [esp + eax + 0x268], cx
add eax, 2
cmp cx, bx
jne 0x418fc6
lea edi, [esp + 0x268]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x418fe8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x884]
mov esi, 0x585004
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x41902d
xor al, al
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005220b2
mov esp, ebp
pop ebp
ret
xor eax, eax
movzx ecx, word [esp + eax + 0x268]
mov word [esp + eax + 0x880], cx
add eax, 2
cmp cx, bx
jne 0x41902f
mov byte [esp + 0x13], 1
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4191e9
push ebx
call fcn.00401edb
pop ecx
mov ecx, 0x585000
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x419099
cmp dx, bx
je 0x419095
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x419099
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x419073
xor eax, eax
jmp 0x41909e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4191f8
mov ecx, 0x585d7c
lea eax, [esp + 0x44]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4190d5
cmp dx, bx
je 0x4190d1
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4190d5
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4190af
xor eax, eax
jmp 0x4190da
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4191f8
lea eax, [esp + 0x44]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4190e8
lea edi, [esp + 0x268]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4190ff
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x268]
and ecx, 3
push str..lnk
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.005233e6
pop ecx
pop ecx
test eax, eax
je 0x4191b1
push ebx
call fcn.00402c67
pop ecx
lea eax, [esp + 0x268]
push eax
lea ecx, [esp + 0x67c]
call fcn.0040d44b
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, 1
jne 0x4191b1
lea eax, [esp + 0x678]
push str.Leplus.exe
push eax
call fcn.005233e6
pop ecx
pop ecx
test eax, eax
jne 0x41918b
lea eax, [esp + 0x678]
push 0x585148
push eax
call fcn.005233e6
pop ecx
pop ecx
test eax, eax
je 0x4191b1
lea eax, [esp + 0x268]
push 0x80
push eax
call fcn.005266b4
pop ecx
pop ecx
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x419215
xor eax, eax
movzx ecx, word [esp + eax + 0x470]
mov word [esp + eax + 0x268], cx
add eax, 2
cmp cx, bx
jne 0x4191b3
lea edi, [esp + 0x268]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4191d5
mov esi, 0x585004
movsd dword es:[edi], dword [esi]
jmp 0x4191f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x419204
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
jne 0x41904c
mov bl, 1
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x419018
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x419016