Function at 0x403ac5
Capabilities:
Copy file
Delete file
Read .ini file
Shutdown system
Terminate process

Disassembly:
sub esp, 0x180
mov eax, dword [0x407e54]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov dword [esp + 0x10], ebp
je 0x403afe
push eax
push 0xa
call dword [sym.imp.SMEM32.DLL_Share32Unlock]
push dword [0x407e54]
push 0xa
call dword [sym.imp.SMEM32.DLL_Share32Free]
add esp, 0x10
mov dword [0x407e54], ebp
push ebp
push 0x14
call dword [sym.imp.DWNDHAND.DLL__hwndDllWndHandGetWndHand_8]
push str.ATM.INI
push ebp
push str.SetupStatus
push str.ATM_Setup
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor ebx, ebx
inc ebx
cmp dword [0x408250], ebx
mov dword [0x407580], eax
jne 0x403b38
cmp eax, ebp
jne 0x403b49
call fcn.00402d76
cmp dword [0x407580], ebp
jne 0x403b49
call fcn.00402d76
test eax, eax
jne 0x403b51
cmp dword [0x407580], ebx
jne 0x403b58
push ebx
call fcn.00402871
pop ecx
cmp esi, ebp
je 0x403c49
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x403c49
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x18]
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [esp + 0x14]
push eax
movzx eax, word [esp + 0x198]
push 0x1388
push 2
push ebp
push eax
push 0x43e
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
cmp eax, ebx
jne 0x403bdc
cmp edi, ebp
je 0x403c42
cmp dword [0x407dd8], ebp
mov eax, 0x7530
je 0x403bcb
or eax, 0xffffffff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x403c42
xor eax, eax
cmp eax, ebp
jne 0x403c42
push ebp
push str.BRAST
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebp
je 0x403c0d
push ebp
push ebp
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x403c0d
push 0xffffffffffffffff
push dword [0x4070e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x40824c], ebp
je 0x403c36
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [esp + 0x14], 0x103
jne 0x403c42
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x403c42
cmp edi, ebp
je 0x403c42
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x407580]
cmp eax, ebp
je 0x403c5a
cmp eax, ebx
je 0x403c5a
mov dword [esp + 0x10], ebx
cmp word [esp + 0x198], bp
jne 0x403d6c
push ebp
push ebx
push 0xa
call fcn.004032d3
add esp, 0xc
test eax, eax
push 0x5a
pop ebx
jne 0x403d4f
mov cl, byte [0x407e93]
mov al, cl
shr al, 4
mov dl, 6
imul dl
sub cl, al
movzx eax, cl
mov cl, byte [0x407e92]
mov dword [esp + 0x2c], eax
mov al, cl
shr al, 4
imul dl
sub cl, al
movzx eax, cl
mov cl, byte [0x407e91]
mov dword [esp + 0x30], eax
mov al, cl
shr al, 4
imul dl
sub cl, al
movzx eax, cl
mov cl, byte [0x407e90]
mov dword [esp + 0x34], eax
mov al, cl
shr al, 4
imul dl
sub cl, al
movzx eax, cl
mov cl, byte [0x407e8f]
mov dword [esp + 0x38], eax
mov al, cl
shr al, 4
imul dl
sub cl, al
movzx eax, cl
mov cl, byte [0x407e8e]
dec eax
mov dword [esp + 0x3c], eax
mov al, cl
shr al, 4
imul dl
sub cl, al
cmp cl, bl
jae 0x403d06
add cl, 0x64
or dword [esp + 0x4c], 0xffffffff
movzx eax, cl
mov dword [esp + 0x40], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.MSVCR71.dll__mktime64]
pop ecx
mov ecx, eax
and ecx, edx
cmp ecx, 0xffffffff
mov dword [0x408240], eax
mov dword [0x408244], edx
je 0x403d4f
add eax, 0x69
push ebp
adc edx, ebp
push 1
push 9
mov dword [0x408240], eax
mov dword [0x408244], edx
call fcn.004032d3
add esp, 0xc
push str.ATM.INI
push 0xe10
push str.Shutdown
mov esi, str.TIMESET
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x403d94
cmp word [esp + 0x198], bx
jne 0x403dc9
push str.ATM.INI
push 0xe10
push str.Shutdown
mov esi, str.TIMESET
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x5a
pop ebx
cmp eax, ebx
mov dword [0x407020], eax
jae 0x403da3
mov dword [0x407020], ebx
push ebp
push 1
push 8
call fcn.004032d3
add esp, 0xc
push str.SPConfig.ini
push 0x405af0
push str.EndSessionShoriNeed
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
xor ebx, ebx
inc ebx
call fcn.00403ab1
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
push ebp
push str.BRAST
call esi
cmp eax, ebp
je 0x403dfd
push ebp
push ebp
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x403dfd
push 0xffffffffffffffff
push dword [0x4070e0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x405ad8
push ebp
call esi
cmp eax, ebp
je 0x403e26
push ebp
push ebp
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x403e26
push 0xffffffffffffffff
push dword [0x4070f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.EMUHOST
push ebp
call esi
cmp eax, ebp
je 0x403e4f
push ebp
push ebp
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
test eax, eax
je 0x403e4f
push 0xffffffffffffffff
push dword [0x407514]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp word [esp + 0x10], bx
jne 0x403f38
mov eax, dword [0x407580]
cmp eax, 4
jne 0x403ec6
push 0x407530
mov edi, 0x4082b0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, str.ATMINSTHARMONYATMCOPY.EXE
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x403f31
push 2
push 0x408060
mov esi, 0x408270
push esi
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x403f31
cmp eax, 0x15
je 0x403f31
cmp eax, 0x16
je 0x403f31
push str.C:BK1
mov esi, 0x408270
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, str.ATMINSTHARMONYATMCOPY.EXE
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x403f31
push 2
push 0x408060
mov edi, 0x4082b0
push edi
call sub.MSVCR71.dll_memcpy
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
call ebx
call fcn.00402513
jmp 0x403fa9
cmp dword [0x407dd8], ebp
jne 0x403fa9
push 2
pop esi
cmp word [esp + 0x198], si
je 0x403fa9
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 0x20]
push eax
push str.SeShutdownPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebp
push ebp
push 0x10
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x24]
mov dword [esp + 0x40], esi
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [esp + 0x34], ebx
call esi
push ebp
push 0xd
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push ebp
push ebp
push 0x10
lea eax, [esp + 0x28]
push eax
push ebx
push dword [esp + 0x24]
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]