Function at 0x42ad85
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x90
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
push esi
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x48], eax
mov byte [ebp + 0x5f], bl
call fcn.0040ef95
mov eax, dword [ebp + 0x7c]
mov byte [0x4c8bea], bl
cmp word [eax], 0x2a
lea eax, [ebp + 0x7c]
push eax
sete byte [ebp + 0x67]
call fcn.00405444
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x4c], eax
cmp word [eax], 0x2d
pop ecx
mov dword [ebp + 0x68], ebx
mov byte [ebp + 0x6f], 0x2a
jne 0x42add7
mov byte [ebp + 0x6f], 0x2d
xor esi, esi
inc esi
mov dword [ebp + 0x4c], eax
push 5
lea eax, [ebp + 0x7c]
push eax
push str._user
call fcn.00441bc4
add esp, 0xc
test al, al
jne 0x42ae83
push 2
lea eax, [ebp + 0x7c]
push eax
push 0x4b41ac
call fcn.00441bc4
add esp, 0xc
test al, al
jne 0x42ae83
mov eax, dword [ebp + 0x4c]
movsx ecx, byte [ebp + 0x6f]
movzx edx, word [eax]
cmp ecx, edx
jne 0x42ae8e
movzx edx, word [eax + 2]
cmp ecx, edx
jne 0x42ae8e
add eax, 4
mov dword [ebp + 0x4c], eax
push 4
lea eax, [ebp + 0x4c]
push eax
push str.user
call fcn.00441bc4
add esp, 0xc
test al, al
jne 0x42ae75
push esi
lea eax, [ebp + 0x4c]
push eax
push 0x4b34d0
call fcn.00441bc4
add esp, 0xc
test al, al
jne 0x42ae75
push 4
lea eax, [ebp + 0x4c]
push eax
push 0x4afcdc
call fcn.00441bc4
add esp, 0xc
test al, al
je 0x42ae8e
mov byte [ebp + 0x5f], 1
jmp 0x42ae78
mov dword [ebp + 0x68], esi
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x7c], eax
jmp 0x42adda
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x68], esi
jmp 0x42adda
cmp dword [ebp + 0x68], ebx
je 0x42ae9c
mov dword [ebp + 0x54], str.UCallBackhWnd
jmp 0x42aea4
mov eax, dword [0x4c72cc]
mov dword [ebp + 0x54], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp + 0x68], ebx
mov eax, str.GlobalPECMD:main_u
jne 0x42aeba
mov eax, str.GlobalPECMD:main
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp esi, ebx
je 0x42aedf
mov ecx, 0xb7
cmp eax, ecx
jne 0x42aedf
mov eax, ecx
jmp 0x42b68e
cmp dword [ebp + 0x68], ebx
je 0x42aeed
mov byte [0x4cc003], 0x20
jmp 0x42aefd
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
setne al
add al, 0x10
mov byte [0x4cc003], al
cmp dword [0x4c8ca0], ebx
push edi
push 0xd
pop ecx
mov esi, str.LOGS__D:DebugPeMain2.log
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, 0x4c9048
jne 0x42af35
lea eax, [ebp - 0xe]
push eax
call fcn.0049a075
test eax, eax
pop ecx
je 0x42af35
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0041c5e5
movsx eax, byte [0x4cc003]
push eax
push dword [ebp + 0x48]
push str.MAIN___s__0x_X_r_n
push edi
call fcn.0040ffa7
push dword [0x4c9198]
push str.MAIN:_pecmd::RegDeleteKeyExW0x_p_r_n
push edi
call fcn.0040ffa7
add esp, 0x1c
call fcn.0041900e
cmp byte [ebp + 0x67], bl
je 0x42af70
mov byte [0x4cc001], 1
cmp dword [ebp + 0x68], ebx
mov esi, 0x80000002
jne 0x42b0fa
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x42b116
mov dword [ebp + 0x70], ebx
call fcn.0040ef95
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push ebx
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATA__PECMD_TEST
push esi
mov dword [ebp + 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], eax
je 0x42afc6
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x60], 0x3fd
je 0x42afdc
push str.SOFTWAREPELOGONRAMDATA
push esi
call fcn.00449745
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push 1
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATA
push esi
mov dword [ebp + 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x70], ebx
je 0x42b00e
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push ebx
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY__PECMD_TEST
push esi
mov byte [0x4c90e5], 1
mov dword [ebp + 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], eax
je 0x42b049
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x60], 0x3fd
je 0x42b05f
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
call fcn.00449745
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push 1
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
mov dword [ebp + 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x70], ebx
je 0x42b091
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x50]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push ebx
push ebx
push ebx
push str.SOFTWAREPELOGON
push esi
mov dword [ebp + 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x50], ebx
je 0x42b0c2
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2a68
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
push 0x2a6a
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
call fcn.0040ee67
push 0x2a6c
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
add esp, 0x24
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x42b116
mov ecx, dword [ebp + 0x58]
push ebx
push 0x24
push ebx
push 0x4ae9fc
call fcn.00421ea1
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x2a
mov dword [ebp + 0x44], ecx
jne 0x42b138
add eax, 2
cmp word [eax], 0x23
je 0x42b138
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x7c], eax
call fcn.0040ea44
mov eax, 0x4ae9fc
push eax
push eax
call sym.PECMD.exe_LoadEnvi
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
pop ecx
pop ecx
jne 0x42b155
mov byte [0x4c93b4], 1
call fcn.0043a580
call fcn.0042ad3a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 4
mov dword [ebp + 0x38], eax
lea eax, [ebp + 0x38]
push eax
push 4
push str.MainPECMDPID
push str.SOFTWAREPELOGON
push esi
call fcn.0043add9
push 0x2a76
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
push ebx
push 0x4c9048
call fcn.0048f260
mov eax, dword [ebp + 0x58]
add esp, 0x2c
cmp dword [eax + 0x44], ebx
jne 0x42b218
test byte [0x4c9104], 1
jne 0x42b1c7
or dword [0x4c9104], 1
push 0x4ad56d
mov dword [0x4c9100], ebx
call fcn.0049ab16
pop ecx
mov ecx, dword [ebp + 0x58]
push 0x10000
mov dword [ecx + 0x44], 0x4c9100
call fcn.0043e808
lea ecx, [ebp + 0x60]
call fcn.0043fd9a
push dword [ebp + 0x60]
mov ecx, 0x4c9100
call fcn.0046c594
mov eax, dword [0x4c9100]
mov ecx, dword [ebp + 0x58]
push 1
push dword [ebp + 0x48]
mov dword [ebp + 0x60], ebx
mov eax, dword [eax]
mov dword [ecx + 0x48], eax
call fcn.0044adac
mov eax, dword [ebp + 0x58]
lea ecx, [ebp + 0x60]
mov dword [eax + 0x50], ebx
call fcn.00439cfd
push 0x2a82
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
add esp, 0xc
cmp dword [ebp + 0x68], ebx
jne 0x42b253
mov al, byte [0x4cc003]
push 1
mov byte [ebp + 0x67], al
lea eax, [ebp + 0x67]
push eax
push 3
push str.bInMain
push str.SOFTWAREPELOGON
push esi
call fcn.0043add9
add esp, 0x18
push 0x2a86
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
mov eax, dword [ebp + 0x7c]
add esp, 0xc
cmp word [eax], bx
je 0x42b273
call fcn.00411aec
push 4
push 0x4c8f08
push 4
push dword [ebp + 0x54]
push str.SOFTWAREPELOGON
push esi
call fcn.0043add9
add esp, 0x18
cmp word [ebp + 0x44], bx
jne 0x42b298
cmp dword [ebp + 0x68], ebx
je 0x42b29d
call fcn.004225b5
mov ecx, dword [ebp + 0x58]
call fcn.00418813
push 0x8000
call fcn.0044c73c
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
pop ecx
jne 0x42b2bd
cmp dword [ebp + 0x68], ebx
je 0x42b304
push 0x2a91
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
push ebx
push 0x4c8bd0
push 0x10000
push 0x80000
push ebx
push 0x42ad5f
call fcn.00439dc6
add esp, 0x24
jmp 0x42b301
lea ecx, [eax + 2]
cmp word [ecx], 0x23
je 0x42b30a
mov dword [ebp + 0x7c], ecx
lea ecx, [ebp + 0x7c]
call fcn.0040ea44
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x2a
je 0x42b2ed
cmp word [eax], bx
je 0x42b64c
push 0x2a99
push str.MAIN_DBG:_d_r_n
push edi
call fcn.0041009a
add esp, 0xc
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, 0x5c8
push eax
lea ecx, [ebp + 0x48]
call fcn.0043fdb8
mov eax, dword [ebp + 0x48]
mov word [eax], bx
mov edi, dword [ebp + 0x48]
push 0x104
add edi, 0x280
mov dword [ebp + 0x40], eax
push edi
lea eax, [edi + 0x488]
push ebx
mov dword [ebp + 0x68], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0x5c
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp eax, ebx
mov dword [ebp + 0x60], eax
jne 0x42b37b
mov dword [ebp + 0x60], edi
jmp 0x42b37f
add dword [ebp + 0x60], 2
push dword [ebp + 0x7c]
call fcn.004111d3
test eax, eax
pop ecx
lea ecx, [ebp + 0x54]
je 0x42b3cf
push dword [ebp + 0x7c]
call fcn.00448399
push 4
push dword [ebp + 0x7c]
push 0x4b40b0
call fcn.0043af58
add esp, 0xc
test al, al
je 0x42b3b4
mov byte [0x4c8f95], 1
mov ecx, dword [ebp + 0x58]
push ebx
push ebx
push ebx
push dword [ebp + 0x54]
call fcn.0042e6e7
lea ecx, [ebp + 0x54]
call fcn.00439cfd
jmp 0x42b644
mov eax, dword [ebp + 0x7c]
mov byte [ebp + 0x6f], bl
mov dword [ebp + 0x70], eax
call fcn.0043fd9a
mov ecx, dword [ebp + 0x58]
push ebx
push 0x1000
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004350f0
push 0x400
lea ecx, [ebp + 0x50]
call fcn.0043fdb8
mov eax, dword [ebp + 0x50]
push ebx
push ebx
push 3
push ebx
push 7
mov word [eax], bx
mov eax, dword [ebp + 0x50]
push 0x80000000
push dword [ebp + 0x54]
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x3c], ebx
call fcn.004054c4
push ebx
lea eax, [ebp + 0x44]
push eax
push 0x7fe
push dword [ebp + 0x50]
push dword [ebp + 0x3c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x70]
shr eax, 1
mov word [ecx + eax*2], bx
mov eax, dword [ebp + 0x70]
cmp word [eax], 0xfeff
jne 0x42b459
add dword [ebp + 0x70], 2
push 7
push dword [ebp + 0x70]
push str._pecmd
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x42b4cb
add dword [ebp + 0x70], 0xe
jmp 0x42b4bd
lea eax, [ebp + 0x70]
push eax
call fcn.0040549b
mov eax, dword [ebp + 0x70]
pop ecx
mov cx, word [eax]
cmp cx, 0x20
je 0x42b48f
cmp cx, 9
jne 0x42b496
inc eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x42b480
movzx eax, word [eax]
push eax
call fcn.00439c7e
add esp, 4
test al, al
jne 0x42b4cb
push 0xd
lea eax, [ebp + 0x70]
push eax
push str.__inline_main
call fcn.00439d66
add esp, 0xc
test eax, eax
jne 0x42b4c7
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x42b473
jmp 0x42b4cb
mov byte [ebp + 0x6f], 1
lea ecx, [ebp + 0x3c]
call fcn.00402c5b
lea ecx, [ebp + 0x50]
call fcn.00439cfd
lea ecx, [ebp + 0x54]
call fcn.00439cfd
cmp byte [ebp + 0x6f], bl
je 0x42b516
push dword [ebp + 0x7c]
push str.LOAD_sysinit__s
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 0x58]
add esp, 0xc
push ebx
push ebx
push ebx
push dword [ebp + 0x68]
mov byte [0x4c8f95], 1
call fcn.0042e6e7
jmp 0x42b644
push dword [ebp + 0x60]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push str.___exe:__s_____s_
push dword [ebp + 0x68]
call edi
add esp, 0x10
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x68]
lea eax, [ecx + eax*2]
push str.LOAD_sysinit__s
push eax
call edi
mov eax, dword [ebp + 0x40]
add esp, 0xc
cmp word [eax], bx
je 0x42b62f
mov dword [ebp + 0x70], ebx
call fcn.0040ef95
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push ebx
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATA__PECMD_TEST
push esi
mov dword [ebp + 0x70], ebx
call edi
cmp dword [ebp + 0x70], ebx
mov dword [ebp + 0x40], eax
je 0x42b594
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x40], 0x3fd
je 0x42b5aa
push str.SOFTWAREPELOGONRAMDATA
push esi
call fcn.00449745
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push 1
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATA
push esi
mov dword [ebp + 0x70], ebx
call edi
cmp dword [ebp + 0x70], ebx
je 0x42b5d8
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4c8bcc]
push ebx
or eax, 1
push eax
push 1
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
mov byte [0x4c90e5], 1
mov dword [ebp + 0x70], ebx
call edi
cmp dword [ebp + 0x70], ebx
je 0x42b60d
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
lea eax, [ebp + 0x38]
push eax
push 4
push str.SysStartuped
push str.SOFTWAREPELOGONRAMDATA
push esi
mov dword [ebp + 0x38], 1
call fcn.0043add9
add esp, 0x18
movsx eax, byte [ebp + 0x5f]
mov ecx, dword [ebp + 0x58]
push ebx
push ebx
push ebx
push eax
push ebx
push ecx
push dword [ebp + 0x68]
call fcn.00409c61
lea ecx, [ebp + 0x48]
call fcn.00439cfd
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
call esi
pop edi
jmp 0x42b67b
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1c]
push eax
call esi
test eax, eax
jne 0x42b65e
push dword [0x4c8ef4]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [ebp + 0x24]
pop esi
pop ebx
add ebp, 0x74
leave
ret 4