Function at 0x58e4c0
Capabilities:
Access pe header
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6c2da0]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x58e536
mov ecx, 0x878ee0
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58e540
sub ecx, edx
mov eax, 0
push ebx
sete al
push esi
push edi
cmp eax, 0x1e
jge 0x58ea74
xorps xmm0, xmm0
mov byte [0x878f00], 0
movdqa xmmword [0x878ee0], xmm0
movdqa xmmword [0x878ef0], xmm0
jmp 0x58e5dd
jmp 0x58e643
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
jmp 0x58e6ba
test edi, edi
je 0x58eed7
jmp 0x58e728
movzx ecx, word [edi + 0x14]
lea ebx, [edi + 0x18]
add ebx, ecx
jmp 0x58e797
xor eax, eax
xor esi, esi
cmp ax, word [edi + 6]
jae 0x58eed7
jmp 0x58e80b
movzx eax, si
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x7865742e
mov word [ebp - 8], 0x74
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x58e844
test dl, dl
je 0x58e840
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x58e844
add eax, 2
add ecx, 2
test dl, dl
jne 0x58e824
xor eax, eax
jmp 0x58e849
sbb eax, eax
or eax, 1
test eax, eax
sete al
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
test al, al
jne 0x58e877
inc esi
cmp si, word [edi + 6]
jb 0x58e7a5
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
jmp 0x58e8dd
jmp 0x58e943
jmp 0x58e9a9
movzx eax, si
lea eax, [eax + eax*4]
mov edx, dword [ebx + eax*8 + 0xc]
add edx, dword [edi + 0x34]
jmp 0x58ea1c
push dword [ebx + eax*8 + 8]
lea ecx, [ebp - 0x28]
call 0x595b90
mov ecx, eax
add esp, 4
cmp dword [ecx + 0x14], 0x10
jb 0x58ea35
mov ecx, dword [ecx]
mov edx, 0x878ee0
lea ebx, [ebx]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x58ea40
cmp dword [ebp - 0x14], 0x10
jb 0x58eed7
push dword [ebp - 0x28]
call fcn.00598830
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
jmp 0x58eada
jmp 0x58eb40
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edi, eax
jmp 0x58ebb7
test edi, edi
je 0x58eed7
jmp 0x58ec25
movzx ecx, word [edi + 0x14]
lea ebx, [edi + 0x18]
add ebx, ecx
jmp 0x58ec94
xor eax, eax
xor esi, esi
cmp ax, word [edi + 6]
jae 0x58eed7
jmp 0x58ed08
movzx eax, si
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0x7865742e
mov word [ebp - 8], 0x74
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x58ed41
test dl, dl
je 0x58ed3d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x58ed41
add eax, 2
add ecx, 2
test dl, dl
jne 0x58ed21
xor eax, eax
jmp 0x58ed46
sbb eax, eax
or eax, 1
test eax, eax
sete al
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
test al, al
jne 0x58ed74
inc esi
cmp si, word [edi + 6]
jb 0x58eca2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
movzx eax, si
lea eax, [eax + eax*4]
mov edx, dword [ebx + eax*8 + 0xc]
add edx, dword [edi + 0x34]
jmp 0x58ede7
push dword [ebx + eax*8 + 8]
lea ecx, [ebp - 0x28]
call 0x595b90
add esp, 4
cmp dword [eax + 0x14], 0x10
jb 0x58edfe
mov eax, dword [eax]
push eax
push 0x878ee0
call fcn.005bc240
add esp, 8
test eax, eax
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x58ee22
push dword [ebp - 0x28]
call fcn.00598830
add esp, 4
test bl, bl
je 0x58ee71
push 0x65d05cb1
lea ecx, [ebp - 0x34]
call fcn.005946b0
mov ecx, str.RELMQ_
mov esi, eax
sub ecx, 0x18e348e2
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00594720
mov edi, eax
mov dword [ebp - 0xc], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58ee57
sub ecx, edx
mov edx, esi
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x58ee65
jmp 0x58eee8
jmp 0x58eed7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005bb4c3
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0xc]
sub edx, ebx
push eax
push 0
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSSendMessageA]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.005c3f70
int3