Function at 0x300057a0
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x30211cc0
push 0x3015b760
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x30215e88]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x140], edi
xor esi, esi
mov dword [ebp - 0x138], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [0x3026ed44]
test eax, eax
jne 0x3000582c
push 0x3026ed40
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x3026ed44]
test eax, eax
jne 0x3000582c
push str.DoProcessDump:_Failed_to_obtain_system_page_size._n
call fcn.3000a0f0
add esp, 4
xor eax, eax
jmp 0x30005f25
cmp dword [0x3026ed70], esi
jne 0x30005825
mov dword [0x3026ed3c], esi
cmp dword [0x3026b298], esi
je 0x30005a8b
mov ecx, dword [0x30267728]
test ecx, ecx
je 0x3000585e
mov dword [0x3026ec90], ecx
mov edi, dword [0x3026a618]
jmp 0x3000588e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov dword [ebp - 0x138], eax
mov ecx, dword [0x3026ec90]
test ecx, ecx
je 0x30005888
mov eax, ecx
sub eax, esi
neg eax
sbb eax, eax
and esi, eax
mov dword [ebp - 0x138], esi
mov edi, dword [0x3026d8a8]
call fcn.30002a00
test eax, eax
je 0x300058ca
mov eax, dword [0x3026b298]
cmp eax, 1
jg 0x30005920
mov edx, edi
mov ecx, dword [0x3026ec90]
call fcn.30004900
cmp eax, 1
jl 0x3000591b
push str.DoProcessDump:_Skipping_process_dump_as_code_is_identical_on_disk._n
call fcn.3000a0d0
add esp, 4
mov dword [0x3026ed70], 1
test esi, esi
je 0x30005a4c
mov ecx, esi
call fcn.30002a00
test eax, eax
je 0x30005a4c
push esi
push str.DoProcessDump:_Dumping_new_Imagebase_at_0x_p._n
call fcn.3000a0d0
add esp, 8
mov eax, dword [0x3026ed74]
mov dword [eax + 0x10], 1
mov dword [ebp - 4], 1
mov ecx, esi
cmp dword [0x3026b2a0], 0
je 0x30005a3b
call fcn.30005780
jmp 0x30005a40
mov eax, dword [0x3026b298]
push dword [0x3026ec90]
cmp eax, 2
jge 0x30005932
push str.DoProcessDump:_Code_modification_detected__dumping_Imagebase_at_0x_p._n
jmp 0x30005937
push str.DoProcessDump:_Dumping_Imagebase_at_0x_p._n
call fcn.3000a0d0
add esp, 8
mov eax, dword [0x3026ed74]
mov dword [eax + 0x10], 1
mov dword [ebp - 4], 0
mov ecx, dword [0x3026ec90]
cmp dword [0x3026b2a0], 0
je 0x30005977
call fcn.30005780
mov dword [0x3026ed70], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x300058ca
call fcn.30005530
mov dword [0x3026ed70], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x300058ca
mov ebx, dword [ebp - 0x134]
cmp dword [0x3026b29c], 0
je 0x30005f20
mov eax, dword [ebp - 0x12c]
test eax, eax
je 0x30005ef8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x30005a30
push 0x104
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.3015cdc0
add esp, 0xc
push ebx
push str.FILE_DUMP:_s
push 0xffffffffffffffff
push 0x104
lea eax, [ebp - 0x128]
push eax
call fcn.30009fe0
add esp, 0x14
lea ecx, [ebp - 0x128]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x30005a17
sub ecx, edx
push ecx
lea eax, [ebp - 0x128]
push eax
call fcn.300509d0
add esp, 8
push ebx
push str.DoProcessDump:_Full_process_memory_dump_saved_to_file:__s._n
jmp 0x30005efe
call fcn.30005530
mov dword [0x3026ed70], eax
mov dword [ebp - 4], 0xfffffffe
cmp dword [0x3026ed70], 0
jne 0x30005a85
push dword [0x3026ec90]
push str.DoProcessDump:_Attempting_raw_dump_of_Imagebase_at_0x_p._n
call fcn.3000a0d0
add esp, 8
mov ecx, dword [0x3026ec90]
call fcn.30002650
mov edx, eax
mov ecx, dword [0x3026ec90]
call fcn.30005170
mov dword [0x3026ed70], eax
mov edi, dword [ebp - 0x12c]
cmp dword [0x3026b29c], 0
je 0x30005b4b
mov ecx, str.memory
call fcn.30003500
mov ebx, eax
mov dword [ebp - 0x134], ebx
test ebx, ebx
jne 0x30005ad9
push str.DoProcessDump:_Unable_to_get_path_to_dump_file_directory._n
call fcn.3000a0d0
add esp, 4
jmp 0x300059b6
mov edx, 1
mov ecx, 0x104
call fcn.300011a0
mov edi, eax
mov dword [ebp - 0x140], edi
mov eax, dword [0x3026ed74]
push dword [eax + 8]
push str._u.dmp
push 0x104
push edi
call fcn.30001ff0
add esp, 0x10
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x12c], edi
cmp edi, 0xffffffff
jne 0x30005b4b
push str.DoProcessDump:_Unable_to_create_dump_file_for_full_process_memory_dump._n
call fcn.3000a0d0
add esp, 4
jmp 0x300059b6
cmp dword [0x3026b298], 0
jne 0x30005b61
cmp dword [0x3026b29c], 0
je 0x30005f20
mov ebx, dword [0x3026ed48]
mov dword [ebp - 0x13c], ebx
cmp ebx, dword [0x3026ed4c]
jae 0x300059b0
push 0x1c
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x30005b95
add ebx, dword [0x3026ed44]
jmp 0x30005b67
test dword [ebp - 0x14c], 0x1000
je 0x30005eed
test dword [ebp - 0x144], 0x1060000
je 0x30005eed
cmp dword [0x3026b298], 0
je 0x30005d2b
mov eax, dword [ebp - 0x15c]
cmp eax, dword [0x3026ec90]
je 0x30005d2b
cmp eax, esi
je 0x30005d2b
mov ecx, ebx
call fcn.3004da30
test eax, eax
jne 0x30005d2b
mov ecx, 7
lea esi, [ebp - 0x15c]
lea edi, [ebp - 0x184]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x30005d25
cmp eax, dword [0x30267724]
je 0x30005d25
push 0x1c
lea ecx, [ebp - 0x1a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x30005d25
mov eax, dword [ebp - 0x18c]
test al, 0xee
je 0x30005d25
test eax, 0x101
jne 0x30005d25
test eax, eax
je 0x30005d25
push 0x104
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x180]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetMappedFileNameA]
mov edi, eax
mov esi, dword [ebp - 0x184]
mov ecx, esi
call fcn.300041b0
test eax, eax
je 0x30005ccf
test edi, edi
jne 0x30005ccf
cmp dword [ebp - 0x170], 4
jne 0x30005ccf
cmp dword [ebp - 0x16c], 0x40000
jne 0x30005ccf
cmp dword [ebp - 0x174], 0x1000
jne 0x30005ccf
push esi
push str.DumpInterestingRegions:_Dumping_.NET_image_at_0x_p._n
call fcn.3000a0d0
add esp, 8
mov eax, dword [0x3026ed74]
mov dword [eax + 4], edi
mov dword [eax + 0x10], 8
mov dword [eax + 0x1c], esi
mov ecx, esi
call fcn.30005530
mov eax, dword [0x302697b8]
test eax, eax
je 0x30005d25
cmp dword [eax + 4], esi
je 0x30005ce5
mov eax, dword [eax]
test eax, eax
jne 0x30005cd8
jmp 0x30005d25
add eax, 0xc
je 0x30005d25
push esi
push str.DumpInterestingRegions:_Dumping_.NET_JIT_native_cache_at_0x_p._n
call fcn.3000a0d0
add esp, 8
mov eax, dword [0x3026ed74]
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x24], str..NET_JIT_native_cache__32_bit_
mov dword [eax + 0x1c], esi
mov ecx, esi
call fcn.30002650
mov edx, eax
mov ecx, esi
call fcn.30005170
mov edi, dword [ebp - 0x12c]
cmp dword [0x3026b29c], 0
je 0x30005ed6
mov ecx, ebx
call fcn.3004da30
test eax, eax
jne 0x30005ed6
call fcn.30002a00
test eax, eax
je 0x30005ed6
mov esi, dword [0x3026d8b8]
mov dword [0x3026d8b8], 0
mov dword [0x3026d8bc], 0
mov edx, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x15c]
call fcn.3001eb20
mov dword [0x3026d8b8], esi
cmp dword [0x3026d8bc], 0
jne 0x30005ed6
mov eax, ebx
cdq
mov dword [ebp - 0x168], eax
mov dword [ebp - 0x164], edx
mov edx, 1
mov ecx, dword [ebp - 0x150]
call fcn.300011a0
mov esi, eax
mov dword [ebp - 0x160], esi
test esi, esi
jne 0x30005ddb
push dword [ebp - 0x150]
push dword [ebp - 0x15c]
push str.DoProcessDump:_Error_allocating_memory_for_copy_of_region_at_0x_p__size_0x_x._n
call fcn.3000a0d0
add esp, 0xc
jmp 0x300059b0
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x30005dfc
push dword [ebp - 0x150]
push eax
push esi
call fcn.3015c210
add esp, 0xc
push 0
lea eax, [ebp - 0x130]
push eax
push 8
lea eax, [ebp - 0x168]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x144]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push 4
lea eax, [ebp - 0x148]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x130]
push eax
push dword [ebp - 0x150]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
call fcn.300011f0
mov dword [ebp - 4], 0xfffffffe
add ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x138]
mov edi, dword [ebp - 0x12c]
jmp 0x30005b67
add ebx, dword [ebp - 0x150]
mov esi, dword [ebp - 0x138]
mov edi, dword [ebp - 0x12c]
jmp 0x30005b67
add ebx, dword [ebp - 0x150]
jmp 0x30005b67
push ebx
push str.DoProcessDump:_There_was_a_problem_saving_full_process_memory_dump_to:__s._n
call fcn.3000a0d0
add esp, 8
mov ecx, dword [ebp - 0x140]
test ecx, ecx
je 0x30005f15
call fcn.300011f0
test ebx, ebx
je 0x30005f20
mov ecx, ebx
call fcn.300011f0
mov eax, dword [0x3026ed70]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.30159c2d
mov esp, ebp
pop ebp
ret