Function at 0x623c7a1d
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x7c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x623c7a7e
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
je 0x623c7a9c
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_lock_
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x20]
and eax, 1
test eax, eax
je 0x623c7ab2
mov dword [ebp - 0x68], 1
jmp 0x623c7b13
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x623c7b13
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._evbuffer_file_segment_materialize
test eax, eax
jns 0x623c7b13
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
je 0x623c7ae9
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x623c7b09
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, 0xffffffff
jmp 0x623c7e50
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 4]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x70]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
test eax, eax
je 0x623c7b40
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, dword [ebp - 0x6c]
movzx eax, byte [eax + 0x1c]
and eax, 4
test al, al
jne 0x623c7e16
cmp dword [ebp - 0x7c], 0
jns 0x623c7b84
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
cmp eax, dword [ebp - 0x78]
mov eax, edx
sbb eax, dword [ebp - 0x74]
jl 0x623c7e19
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
sub eax, dword [ebp - 0x78]
sbb edx, dword [ebp - 0x74]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov ecx, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
add ecx, eax
adc ebx, edx
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
cmp eax, ecx
mov eax, edx
sbb eax, ebx
jl 0x623c7e1c
mov dword [esp], 8
call sym._evbuffer_chain_new
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
je 0x623c7e1f
mov eax, dword [ebp - 0x64]
add eax, 0x20
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x14]
or eax, 9
mov edx, eax
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x14], edx
cmp dword [ebp - 0x68], 0
je 0x623c7c43
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax + 0xc]
and eax, 1
test al, al
je 0x623c7c43
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x14]
or eax, 2
mov edx, eax
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
add eax, ecx
adc edx, ebx
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x64]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 0x80]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x64]
mov dword [eax + 4], edx
jmp 0x623c7db5
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax + 0xc]
and eax, 2
test al, al
je 0x623c7d92
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 0x28]
mov ebx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x48]
xor ah, 0
mov esi, eax
mov eax, dword [ebp - 0x44]
xor ah, 0
mov edi, eax
mov eax, edi
or eax, esi
test eax, eax
je 0x623c7d09
mov dword [esp + 8], 0x24
mov dword [esp + 4], 0
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
sub esp, 4
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___umoddi3
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, dword [ebp - 0x50]
sbb edx, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x50]
lea ebx, [edx + eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
mov eax, edx
xor edx, edx
mov edx, eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 4
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x623c7d61
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_free_
jmp 0x623c7e20
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x50]
add edx, eax
mov eax, dword [ebp - 0x64]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x64]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x10], edx
jmp 0x623c7db5
mov eax, dword [ebp - 0x70]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x78]
add edx, eax
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x64]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x64]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x70]
mov dword [eax], edx
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x10]
mov edx, eax
mov eax, dword [ebp - 0x80]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x6c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._evbuffer_chain_insert
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evbuffer_invoke_callbacks_
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x623c7e0f
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, 0
jmp 0x623c7e50
nop
jmp 0x623c7e20
nop
jmp 0x623c7e20
nop
jmp 0x623c7e20
nop
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x623c7e40
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym.libevent_2_1_6.dll_evthreadimpl_lock_unlock_
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_evbuffer_file_segment_free
mov eax, 0xffffffff
mov edi, dword [ebp - 0x1c]
xor edi, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x623c7e60
call sym.___stack_chk_fail
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret