Function at 0x42f77e
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb0
mov eax, dword [ebp + 0x7c]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp + 0x58], ecx
mov dword [ebp + 0x48], eax
mov byte [ebp + 0x5f], bl
call fcn.0040fe01
mov eax, dword [ebp + 0x7c]
mov byte [0x4dac32], bl
cmp word [eax], 0x2a
lea eax, [ebp + 0x7c]
push eax
sete byte [ebp + 0x67]
call fcn.00409168
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 0x42f7d1
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.00446a34
add esp, 0xc
test al, al
jne 0x42f87d
push 2
lea eax, [ebp + 0x7c]
push eax
push 0x4c5594
call fcn.00446a34
add esp, 0xc
test al, al
jne 0x42f87d
mov eax, dword [ebp + 0x4c]
movsx ecx, byte [ebp + 0x6f]
movzx edx, word [eax]
cmp ecx, edx
jne 0x42f888
movzx edx, word [eax + 2]
cmp ecx, edx
jne 0x42f888
add eax, 4
mov dword [ebp + 0x4c], eax
push 4
lea eax, [ebp + 0x4c]
push eax
push str.user
call fcn.00446a34
add esp, 0xc
test al, al
jne 0x42f86f
push esi
lea eax, [ebp + 0x4c]
push eax
push 0x4c5410
call fcn.00446a34
add esp, 0xc
test al, al
jne 0x42f86f
push 4
lea eax, [ebp + 0x4c]
push eax
push 0x4c0ecc
call fcn.00446a34
add esp, 0xc
test al, al
je 0x42f888
mov byte [ebp + 0x5f], 1
jmp 0x42f872
mov dword [ebp + 0x68], esi
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x7c], eax
jmp 0x42f7d4
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x68], esi
jmp 0x42f7d4
cmp dword [ebp + 0x68], ebx
je 0x42f896
mov dword [ebp + 0x54], str.UCallBackhWnd
jmp 0x42f89e
mov eax, dword [0x4d92ec]
mov dword [ebp + 0x54], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
mov byte [ebp - 4], bl
lea edi, [ebp - 3]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x30]
push eax
mov dword [ebp + 0x2c], 0xc
mov dword [ebp + 0x34], ebx
call fcn.004410f7
cmp dword [ebp + 0x68], ebx
pop ecx
mov eax, str.GlobalPECMD:main_u
jne 0x42f8dd
mov eax, str.GlobalPECMD:main
push eax
push esi
lea eax, [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp esi, ebx
je 0x42f905
mov ecx, 0xb7
cmp eax, ecx
jne 0x42f905
mov eax, ecx
jmp 0x4300b4
cmp dword [ebp + 0x68], ebx
je 0x42f913
mov byte [0x4de003], 0x20
jmp 0x42f923
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
setne al
add al, 0x10
mov byte [0x4de003], al
cmp dword [ebp + 0x68], ebx
push 0xd
pop ecx
mov esi, str.LOGS__D:DebugPeMain2.log
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x42f93d
mov word [ebp - 0x12], 0x55
cmp dword [0x4dacf0], ebx
mov edi, 0x4db0e0
jne 0x42f965
lea eax, [ebp - 0x2e]
push eax
call fcn.004ac751
test eax, eax
pop ecx
je 0x42f965
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.0041b2e5
movsx eax, byte [0x4de003]
push eax
push dword [ebp + 0x48]
push str.MAIN___s__0x_X_r_n
push edi
call fcn.00410ec8
push dword [0x4db258]
push str.MAIN:_pecmd::RegDeleteKeyExW0x_p_r_n
push edi
call fcn.00410ec8
add esp, 0x1c
call fcn.00418fba
cmp byte [ebp + 0x67], bl
je 0x42f9a0
mov byte [0x4de001], 1
cmp dword [ebp + 0x68], ebx
mov esi, 0x80000002
jne 0x42fb2a
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x42fb46
mov dword [ebp + 0x70], ebx
call fcn.0040fe01
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4dac14]
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 0x42f9f6
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp + 0x60], 0x3fd
je 0x42fa0c
push str.SOFTWAREPELOGONRAMDATA
push esi
call fcn.0044f2c4
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4dac14]
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 0x42fa3e
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4dac14]
push ebx
or eax, 1
push eax
push ebx
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY__PECMD_TEST
push esi
mov byte [0x4db17d], 1
mov dword [ebp + 0x70], ebx
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
cmp dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], eax
je 0x42fa79
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp + 0x60], 0x3fd
je 0x42fa8f
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
call fcn.0044f2c4
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4dac14]
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 0x42fac1
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x50]
push eax
movzx eax, word [0x4dac14]
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 0x42faf2
push dword [ebp + 0x50]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 0x2e3f
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
push 0x2e41
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
call fcn.0040fcb6
push 0x2e43
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
add esp, 0x24
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x42fb46
mov ecx, dword [ebp + 0x58]
push ebx
push 0x24
push ebx
push 0x4bfa2c
call fcn.0041ff6f
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x2a
mov dword [ebp + 0x44], ecx
jne 0x42fb68
add eax, 2
cmp word [eax], 0x23
je 0x42fb68
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x7c], eax
call fcn.0040f813
mov eax, 0x4bfa2c
push eax
push eax
call sym.PECMD.exe_LoadEnvi
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
pop ecx
pop ecx
jne 0x42fb85
mov byte [0x4db48c], 1
call fcn.0043ee25
call fcn.0042ac09
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 4
mov dword [ebp + 0x3c], eax
lea eax, [ebp + 0x3c]
push eax
push 4
push str.MainPECMDPID
push str.SOFTWAREPELOGON
push esi
call fcn.0043f6e8
push 0x2e4d
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
push ebx
push 0x4db0e0
call fcn.0049d20b
mov eax, dword [ebp + 0x58]
add esp, 0x2c
cmp dword [eax + 0x44], ebx
jne 0x42fc48
test byte [0x4db1a0], 1
jne 0x42fbf7
or dword [0x4db1a0], 1
push 0x4be8ba
mov dword [0x4db19c], ebx
call fcn.004ad296
pop ecx
mov ecx, dword [ebp + 0x58]
push 0x10000
mov dword [ecx + 0x44], 0x4db19c
call fcn.00443243
lea ecx, [ebp + 0x60]
call fcn.00444a10
push dword [ebp + 0x60]
mov ecx, 0x4db19c
call fcn.0047694d
mov eax, dword [0x4db19c]
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.00450d54
mov eax, dword [ebp + 0x58]
lea ecx, [ebp + 0x60]
mov dword [eax + 0x50], ebx
call fcn.0043e48d
push 0x2e59
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
add esp, 0xc
cmp dword [ebp + 0x68], ebx
jne 0x42fc83
mov al, byte [0x4de003]
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.0043f6e8
add esp, 0x18
push 0x2e5d
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
mov eax, dword [ebp + 0x7c]
add esp, 0xc
cmp word [eax], bx
je 0x42fca3
call fcn.00412c66
push 4
push 0x4daf9c
push 4
push dword [ebp + 0x54]
push str.SOFTWAREPELOGON
push esi
call fcn.0043f6e8
add esp, 0x18
cmp word [ebp + 0x44], bx
jne 0x42fcc8
cmp dword [ebp + 0x68], ebx
je 0x42fccd
call fcn.00420689
mov ecx, dword [ebp + 0x58]
call fcn.00418aa7
push 0x8000
call fcn.004532ec
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
pop ecx
jne 0x42fced
cmp dword [ebp + 0x68], ebx
je 0x42fd34
push 0x2e68
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
push ebx
push 0x4dac18
push 0x10000
push 0x80000
push ebx
push 0x42f45e
call fcn.0043e57d
add esp, 0x24
jmp 0x42fd31
lea ecx, [eax + 2]
cmp word [ecx], 0x23
je 0x42fd3a
mov dword [ebp + 0x7c], ecx
lea ecx, [ebp + 0x7c]
call fcn.0040f813
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x2a
je 0x42fd1d
cmp word [eax], bx
je 0x43007c
push 0x2e70
push str.MAIN_DBG:_d_r_n
push edi
call fcn.00410fbb
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.00444a2e
mov eax, dword [ebp + 0x48]
mov word [eax], bx
mov edi, dword [ebp + 0x48]
push 0x104
add edi, 0x280
mov dword [ebp + 0x38], 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 0x42fdab
mov dword [ebp + 0x60], edi
jmp 0x42fdaf
add dword [ebp + 0x60], 2
push dword [ebp + 0x7c]
call fcn.0041234d
test eax, eax
pop ecx
lea ecx, [ebp + 0x54]
je 0x42fdff
push dword [ebp + 0x7c]
call fcn.0044df7a
push 4
push dword [ebp + 0x7c]
push 0x4c549c
call fcn.0043f884
add esp, 0xc
test al, al
je 0x42fde4
mov byte [0x4db02d], 1
mov ecx, dword [ebp + 0x58]
push ebx
push ebx
push ebx
push dword [ebp + 0x54]
call fcn.00433da9
lea ecx, [ebp + 0x54]
call fcn.0043e48d
jmp 0x430074
mov eax, dword [ebp + 0x7c]
mov byte [ebp + 0x6f], bl
mov dword [ebp + 0x70], eax
call fcn.00444a10
mov ecx, dword [ebp + 0x58]
push ebx
push 0x1000
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004395a0
push 0x400
lea ecx, [ebp + 0x50]
call fcn.00444a2e
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 + 0x40]
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x70], eax
mov dword [ebp + 0x40], ebx
call fcn.00405a2a
push ebx
lea eax, [ebp + 0x44]
push eax
push 0x7fe
push dword [ebp + 0x50]
push dword [ebp + 0x40]
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 0x42fe89
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 0x42fefb
add dword [ebp + 0x70], 0xe
jmp 0x42feed
lea eax, [ebp + 0x70]
push eax
call fcn.00405a01
mov eax, dword [ebp + 0x70]
pop ecx
mov cx, word [eax]
cmp cx, 0x20
je 0x42febf
cmp cx, 9
jne 0x42fec6
inc eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x42feb0
movzx eax, word [eax]
push eax
call fcn.0043e40e
add esp, 4
test al, al
jne 0x42fefb
push 0xd
lea eax, [ebp + 0x70]
push eax
push str.__inline_main
call fcn.0043e51d
add esp, 0xc
test eax, eax
jne 0x42fef7
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x42fea3
jmp 0x42fefb
mov byte [ebp + 0x6f], 1
lea ecx, [ebp + 0x40]
call fcn.00402cb5
lea ecx, [ebp + 0x50]
call fcn.0043e48d
lea ecx, [ebp + 0x54]
call fcn.0043e48d
cmp byte [ebp + 0x6f], bl
je 0x42ff46
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 [0x4db02d], 1
call fcn.00433da9
jmp 0x430074
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 + 0x38]
add esp, 0xc
cmp word [eax], bx
je 0x43005f
mov dword [ebp + 0x70], ebx
call fcn.0040fe01
mov edi, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4dac14]
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 + 0x38], eax
je 0x42ffc4
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp dword [ebp + 0x38], 0x3fd
je 0x42ffda
push str.SOFTWAREPELOGONRAMDATA
push esi
call fcn.0044f2c4
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4dac14]
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 0x430008
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x4dac14]
push ebx
or eax, 1
push eax
push 1
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
mov byte [0x4db17d], 1
mov dword [ebp + 0x70], ebx
call edi
cmp dword [ebp + 0x70], ebx
je 0x43003d
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 4
lea eax, [ebp + 0x3c]
push eax
push 4
push str.SysStartuped
push str.SOFTWAREPELOGONRAMDATA
push esi
mov dword [ebp + 0x3c], 1
call fcn.0043f6e8
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.0040a660
lea ecx, [ebp + 0x48]
call fcn.0043e48d
mov esi, dword [sym.imp.user32.dll_GetMessageW]
jmp 0x430098
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.user32.dll_TranslateMessage]
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.user32.dll_DispatchMessageW]
push ebx
push ebx
lea eax, [ebp + 0x10]
push ebx
push eax
call esi
test eax, eax
jne 0x430084
push dword [0x4daf88]
call dword [sym.imp.user32.dll_UnhookWindowsHookEx]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4