Function at 0x10030c71
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.1000fe40
mov eax, dword [ebp + 0x7c]
mov byte [0x100e2c3e], bl
cmp word [eax], 0x2a
lea eax, [ebp + 0x7c]
push eax
sete byte [ebp + 0x67]
call fcn.10008e60
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 0x10030cc4
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.10048195
add esp, 0xc
test al, al
jne 0x10030d70
push 2
lea eax, [ebp + 0x7c]
push eax
push 0x100cc7a4
call fcn.10048195
add esp, 0xc
test al, al
jne 0x10030d70
mov eax, dword [ebp + 0x4c]
movsx ecx, byte [ebp + 0x6f]
movzx edx, word [eax]
cmp ecx, edx
jne 0x10030d7b
movzx edx, word [eax + 2]
cmp ecx, edx
jne 0x10030d7b
add eax, 4
mov dword [ebp + 0x4c], eax
push 4
lea eax, [ebp + 0x4c]
push eax
push 0x100cc79c
call fcn.10048195
add esp, 0xc
test al, al
jne 0x10030d62
push esi
lea eax, [ebp + 0x4c]
push eax
push 0x100cc620
call fcn.10048195
add esp, 0xc
test al, al
jne 0x10030d62
push 4
lea eax, [ebp + 0x4c]
push eax
push 0x100c7f84
call fcn.10048195
add esp, 0xc
test al, al
je 0x10030d7b
mov byte [ebp + 0x5f], 1
jmp 0x10030d65
mov dword [ebp + 0x68], esi
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x7c], eax
jmp 0x10030cc7
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x68], esi
jmp 0x10030cc7
cmp dword [ebp + 0x68], ebx
je 0x10030d89
mov dword [ebp + 0x54], str.UCallBackhWnd
jmp 0x10030d91
mov eax, dword [0x100e12fc]
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.1004276f
cmp dword [ebp + 0x68], ebx
pop ecx
mov eax, str.GlobalPECMD:main_u
jne 0x10030dd0
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 0x10030df8
mov ecx, 0xb7
cmp eax, ecx
jne 0x10030df8
mov eax, ecx
jmp 0x10031613
cmp dword [ebp + 0x68], ebx
je 0x10030e06
mov byte [0x100e6003], 0x20
jmp 0x10030e16
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
setne al
add al, 0x10
mov byte [0x100e6003], 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 0x10030e30
mov word [ebp - 0x12], 0x55
cmp dword [0x100e2cf8], ebx
mov esi, 0x100e3108
jne 0x10030e58
lea eax, [ebp - 0x2e]
push eax
call fcn.100b3871
test eax, eax
pop ecx
je 0x10030e58
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
mov ecx, esi
call fcn.1001b6a3
cmp byte [0x100e2e70], bl
je 0x10030e95
movsx eax, byte [0x100e6003]
push eax
push dword [ebp + 0x48]
push str.MAIN___s__0x_X_r_n
push esi
call fcn.10010f36
add esp, 0x10
cmp byte [0x100e2e70], bl
je 0x10030e95
push dword [0x100e3280]
push str.MAIN:_pecmd::RegDeleteKeyExW0x_p_r_n
push esi
call fcn.10010f36
add esp, 0xc
call fcn.100195a8
cmp byte [ebp + 0x67], bl
je 0x10030ea6
mov byte [0x100e6001], 1
cmp dword [ebp + 0x68], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x80000002
jne 0x10031049
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x10031065
mov dword [ebp + 0x70], ebx
call fcn.1000fe40
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x100e2c20]
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 + 0x60], eax
je 0x10030efe
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x60], 0x3fd
je 0x10030f14
push str.SOFTWAREPELOGONRAMDATA
push esi
call fcn.10051530
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x100e2c20]
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 0x10030f42
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x100e2c20]
push ebx
or eax, 1
push eax
push ebx
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY__PECMD_TEST
push esi
mov byte [0x100e31a5], 1
mov dword [ebp + 0x70], ebx
call edi
cmp dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], eax
je 0x10030f79
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x60], 0x3fd
je 0x10030f8f
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
call fcn.10051530
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x100e2c20]
push ebx
or eax, 1
push eax
push 1
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
mov dword [ebp + 0x70], ebx
call edi
cmp dword [ebp + 0x70], ebx
je 0x10030fbd
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x50]
push eax
movzx eax, word [0x100e2c20]
push ebx
or eax, 1
push eax
push ebx
push ebx
push ebx
push str.SOFTWAREPELOGON
push esi
mov dword [ebp + 0x50], ebx
call edi
cmp dword [ebp + 0x50], ebx
je 0x10030fea
push dword [ebp + 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [0x100e2e70], bl
je 0x10031025
push 0x2f1c
push str.MAIN_DBG:_d_r_n
mov edi, 0x100e3108
push edi
call fcn.10011029
add esp, 0xc
cmp byte [0x100e2e70], bl
je 0x10031025
push 0x2f1e
push str.MAIN_DBG:_d_r_n
push edi
call fcn.10011029
add esp, 0xc
call fcn.1000fcf5
cmp byte [0x100e2e70], bl
je 0x10031049
push 0x2f20
push str.MAIN_DBG:_d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0xc
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x10031065
mov ecx, dword [ebp + 0x58]
push ebx
push 0x24
push ebx
push 0x100c6a64
call fcn.10020af3
mov eax, dword [ebp + 0x7c]
xor ecx, ecx
mov cx, word [eax]
cmp cx, 0x2a
mov dword [ebp + 0x44], ecx
jne 0x10031087
add eax, 2
cmp word [eax], 0x23
je 0x10031087
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x7c], eax
call fcn.1000f804
mov eax, 0x100c6a64
push eax
push eax
call sym.PECMD.DLL_LoadEnvi
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
pop ecx
pop ecx
jne 0x100310a4
mov byte [0x100e34b8], 1
call fcn.10040396
call fcn.1002b7c3
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
mov edi, str.SOFTWAREPELOGON
push edi
push esi
call fcn.10040c59
add esp, 0x18
cmp byte [0x100e2e70], bl
je 0x100310f2
push 0x2f2a
push str.MAIN_DBG:_d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0xc
push ebx
push 0x100e3108
call fcn.100a37bc
mov eax, dword [ebp + 0x58]
cmp dword [eax + 0x44], ebx
pop ecx
pop ecx
jne 0x1003117b
test byte [0x100e31c8], 1
jne 0x10031128
or dword [0x100e31c8], 1
push 0x100c5ac2
mov dword [0x100e31c4], ebx
call fcn.100b4426
pop ecx
mov ecx, dword [ebp + 0x58]
mov edi, 0x100e31c4
push 0x10000
mov dword [ecx + 0x44], edi
call fcn.10044a42
lea ecx, [ebp + 0x60]
call fcn.10046123
push dword [ebp + 0x60]
mov ecx, edi
call fcn.10079b6f
mov eax, dword [0x100e31c4]
mov edi, dword [ebp + 0x58]
push 1
push dword [ebp + 0x48]
mov dword [ebp + 0x60], ebx
mov eax, dword [eax]
mov ecx, edi
mov dword [edi + 0x48], eax
call fcn.10053203
lea ecx, [ebp + 0x60]
mov dword [edi + 0x50], ebx
call fcn.1003f96c
mov edi, str.SOFTWAREPELOGON
cmp byte [0x100e2e70], bl
je 0x1003119a
push 0x2f36
push str.MAIN_DBG:_d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0xc
cmp dword [ebp + 0x68], ebx
jne 0x100311be
mov al, byte [0x100e6003]
push 1
mov byte [ebp + 0x67], al
lea eax, [ebp + 0x67]
push eax
push 3
push str.bInMain
push edi
push esi
call fcn.10040c59
add esp, 0x18
cmp byte [0x100e2e70], bl
je 0x100311dd
push 0x2f3a
push str.MAIN_DBG:_d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0xc
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
je 0x100311ea
call fcn.10012e84
push 4
push 0x100e2fc4
push 4
push dword [ebp + 0x54]
push edi
push esi
call fcn.10040c59
add esp, 0x18
cmp word [ebp + 0x44], bx
jne 0x1003120b
cmp dword [ebp + 0x68], ebx
je 0x10031210
call fcn.1002120d
mov ecx, dword [ebp + 0x58]
call fcn.10019095
push 0x8000
call fcn.100559ed
mov eax, dword [ebp + 0x7c]
cmp word [eax], bx
pop ecx
jne 0x10031230
cmp dword [ebp + 0x68], ebx
je 0x10031286
cmp byte [0x100e2e70], bl
je 0x1003124f
push 0x2f45
push str.MAIN_DBG:_d_r_n
push 0x100e3108
call fcn.10011029
add esp, 0xc
push ebx
push 0x100e2c24
push 0x10000
push 0x80000
push ebx
push 0x10030948
call fcn.1003fafe
add esp, 0x18
jmp 0x10031283
lea ecx, [eax + 2]
cmp word [ecx], 0x23
je 0x1003128c
mov dword [ebp + 0x7c], ecx
lea ecx, [ebp + 0x7c]
call fcn.1000f804
mov eax, dword [ebp + 0x7c]
cmp word [eax], 0x2a
je 0x1003126f
cmp word [eax], bx
je 0x100315db
cmp byte [0x100e2e70], bl
je 0x100312b7
push 0x2f4d
push str.MAIN_DBG:_d_r_n
push 0x100e3108
call fcn.10011029
mov eax, dword [ebp + 0x7c]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0x5c8
push eax
lea ecx, [ebp + 0x48]
call fcn.10046141
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 0x1003130a
mov dword [ebp + 0x60], edi
jmp 0x1003130e
add dword [ebp + 0x60], 2
push dword [ebp + 0x7c]
call fcn.10012569
test eax, eax
pop ecx
lea ecx, [ebp + 0x54]
je 0x1003135e
push dword [ebp + 0x7c]
call fcn.100501eb
push 4
push dword [ebp + 0x7c]
push 0x100cc6a8
call fcn.10040df5
add esp, 0xc
test al, al
je 0x10031343
mov byte [0x100e3055], 1
mov ecx, dword [ebp + 0x58]
push ebx
push ebx
push ebx
push dword [ebp + 0x54]
call fcn.10034bed
lea ecx, [ebp + 0x54]
call fcn.1003f96c
jmp 0x100315d3
mov eax, dword [ebp + 0x7c]
mov byte [ebp + 0x6f], bl
mov dword [ebp + 0x70], eax
call fcn.10046123
mov ecx, dword [ebp + 0x58]
push ebx
push 0x1000
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.1003aaa0
push 0x400
lea ecx, [ebp + 0x50]
call fcn.10046141
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.10005b9d
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 0x100313e8
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 0x1003145a
add dword [ebp + 0x70], 0xe
jmp 0x1003144c
lea eax, [ebp + 0x70]
push eax
call fcn.10005b74
mov eax, dword [ebp + 0x70]
pop ecx
mov cx, word [eax]
cmp cx, 0x20
je 0x1003141e
cmp cx, 9
jne 0x10031425
inc eax
inc eax
mov dword [ebp + 0x70], eax
jmp 0x1003140f
movzx eax, word [eax]
push eax
call fcn.1000f7ed
add esp, 4
test al, al
jne 0x1003145a
push 0xd
lea eax, [ebp + 0x70]
push eax
push str.__inline_main
call fcn.1003faa9
add esp, 0xc
test eax, eax
jne 0x10031456
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x10031402
jmp 0x1003145a
mov byte [ebp + 0x6f], 1
lea ecx, [ebp + 0x40]
call fcn.10002d56
lea ecx, [ebp + 0x50]
call fcn.1003f96c
lea ecx, [ebp + 0x54]
call fcn.1003f96c
cmp byte [ebp + 0x6f], bl
je 0x100314a5
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 [0x100e3055], 1
call fcn.10034bed
jmp 0x100315d3
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 0x100315be
mov dword [ebp + 0x70], ebx
call fcn.1000fe40
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x100e2c20]
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 0x10031523
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x38], 0x3fd
je 0x10031539
push str.SOFTWAREPELOGONRAMDATA
push esi
call fcn.10051530
pop ecx
pop ecx
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x100e2c20]
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 0x10031567
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp + 0x70]
push eax
movzx eax, word [0x100e2c20]
push ebx
or eax, 1
push eax
push 1
push ebx
push ebx
push str.SOFTWAREPELOGONRAMDATAHOTKEY
push esi
mov byte [0x100e31a5], 1
mov dword [ebp + 0x70], ebx
call edi
cmp dword [ebp + 0x70], ebx
je 0x1003159c
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.10040c59
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.1000a5c9
lea ecx, [ebp + 0x48]
call fcn.1003f96c
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x100315f7
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 0x100315e3
push dword [0x100e2fb0]
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4