Function at 0x4d2b00
Capabilities:
Accept command line arguments
Get file size
Get token membership
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push ebx
push esi
push edi
push 0x208
lea eax, [esp + 0x24]
push 0
push eax
call fcn.004d7120
add esp, 0xc
mov edi, 0x2710
call fcn.0045f670
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x3c]
mov word [esp + 0x40], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4d2bc9
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 0x10]
neg eax
sbb eax, eax
and dword [esp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], 0
je 0x4d2bc9
push 0x17
push 0x554b7c
push 0
push 9
call fcn.00454e70
add esp, 0x10
xor dl, dl
mov cl, 1
call fcn.004c3d20
mov eax, dword [0x5ab0dc]
or eax, 0x17
push eax
call esi
push eax
call ebx
call fcn.004c2fc0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x5c125c
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, dword [0x5c125c]
mov edx, eax
mov dword [0x5c1044], edx
cmp ecx, 2
jle 0x4d2e07
cmp ecx, 3
jl 0x4d2c9e
mov esi, 1
lea eax, [ecx - 1]
cmp eax, esi
jle 0x4d2c98
push dword [edx + esi*4]
push str.timer
call fcn.004d581b
add esp, 8
test eax, eax
je 0x4d2c80
mov eax, dword [0x5c1044]
inc esi
push dword [eax + esi*4]
call fcn.004ea8b5
mov edi, eax
add esp, 4
test edi, edi
jg 0x4d2c6b
push 0x39
push 0x554b7c
push 0
push 9
call fcn.00454e70
add esp, 0x10
xor dl, dl
mov cl, 1
call fcn.004c3d20
mov eax, dword [0x5ab0dc]
or eax, 0x39
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
jmp 0x4d2c79
cmp edi, 0x2710
mov eax, 0x2710
cmovg edi, eax
mov byte [0x5c1264], 0
mov ecx, dword [0x5c125c]
inc esi
mov edx, dword [0x5c1044]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x4d2c10
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xffffffffffffffff
push dword [edx + ecx*4 - 4]
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.0050c95c
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.004d28d0
call fcn.004c72b0
push 0
push 0x80
push 3
push 0
push 1
push ParseURLA
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x4d2d18
push 0x26
push 0x554b7c
push 0
push 9
call fcn.00454e70
add esp, 0x10
xor dl, dl
mov cl, 1
call fcn.004c3d20
mov eax, dword [0x5ab0dc]
or eax, 0x26
push eax
call esi
push eax
call ebx
mov eax, dword [esp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4d2d58
push 0xe
push 0x554b7c
push 0
push 9
call fcn.00454e70
add esp, 0x10
xor dl, dl
mov cl, 1
call fcn.004c3d20
mov eax, dword [0x5ab0dc]
or eax, 0xe
push eax
call esi
push eax
call ebx
mov eax, dword [esp + 0x10]
mov ecx, eax
call fcn.004562c0
push 0
lea ecx, [esp + 0x20]
mov dword [0x5c1258], eax
push ecx
push dword [esp + 0x18]
mov dword [esp + 0x28], 0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d2daf
push 0x10
push 0x554b7c
push eax
push 9
call fcn.00454e70
add esp, 0x10
xor dl, dl
mov cl, 1
call fcn.004c3d20
mov eax, dword [0x5ab0dc]
or eax, 0x10
push eax
call esi
push eax
call ebx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push 0x400
push 0x5c1020
mov dword [0x5ab0f4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x4d2df0
mov ecx, str.IE_20
call fcn.004c65c0
mov ecx, edi
call fcn.004d2390
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov byte [0x5c101e], 1
call fcn.004d2390
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x4d2e9c
push dword [edx + 4]
push str.version
call fcn.004d581b
movzx ecx, byte [0x5c1251]
test eax, eax
mov eax, dword [0x5c1044]
mov edx, 1
cmovne ecx, edx
mov byte [0x5c1251], cl
push dword [eax + 4]
push str.reseed
call fcn.004d581b
add esp, 0x10
test eax, eax
je 0x4d2e65
call fcn.0045f670
mov ecx, dword [0x5ad894]
test al, al
mov edx, main
cmove ecx, edx
push ecx
call esi
push eax
call ebx
mov eax, dword [0x5c1044]
push dword [eax + 4]
push str.secure
call fcn.004d581b
add esp, 8
test eax, eax
je 0x4d2e9c
mov cl, 1
call fcn.004d2440
test al, al
je 0x4d2e9c
xor dl, dl
xor cl, cl
call fcn.004c3d20
push 0xc0de900d
call esi
push eax
call ebx
call fcn.004d2330
int3