Function at 0x4106f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov ebx, dword [0x4ad5f8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
test ebx, ebx
je 0x410bb0
mov dword [esp + 4], 1
mov dword [esp], 0x3e8
mov dword [ebp - 0x24], 0
mov dword [im.modules], 0
mov dword [ebp - 0x20], 0
call sym._SymSetExtendedOption_8
sub esp, 8
mov ebx, eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], eax
mov eax, dword [0x4ad5f8]
mov dword [esp + 4], dbg.info_mod_cb
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._SymEnumerateModules64_12
sub esp, 0xc
mov dword [esp + 4], ebx
mov dword [esp], 0x3e8
call sym._SymSetExtendedOption_8
mov eax, dword [im.modules]
sub esp, 8
test eax, eax
jne 0x410790
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], dbg.module_compare
mov dword [esp], eax
mov dword [esp + 8], 0x6d0
call dword [sym.imp.ucrtbase.dll_qsort]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax + 0x688]
mov dword [ebp - 0x6c], edx
mov esi, edx
test ecx, ecx
jne 0x410bc8
mov ebx, dword [im.modules]
test ebx, ebx
je 0x4107f9
imul ecx, ebx, 0x6d0
xor ebx, ebx
add ecx, eax
jmp 0x4107e6
mov edx, dword [eax + 0x688]
cmp esi, edx
sete dl
add eax, 0x6d0
movzx edx, dl
add ebx, edx
cmp ecx, eax
jne 0x4107e0
mov edx, dword [0x4ad5f8]
mov eax, 0x43dc80
test edx, edx
je 0x410817
mov edx, dword [edx + 0x2c]
cmp dword [edx + 4], 8
mov edx, 0x43de7e
cmove eax, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str.Module_tAddress_t_t_t_sDebug_info_tName___d_modules
call dbg.dbg_printf
mov eax, dword [im.modules]
cmp eax, ebx
jne 0x410b90
mov dword [esp], 0x43df41
call dbg.dbg_printf
mov eax, dword [im.modules]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x68], 0
mov ebx, 1
mov edx, dword [ebp - 0x48]
or edx, dword [ebp - 0x58]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x54], edx
test eax, eax
je 0x410a0c
lea esi, [esi]
imul eax, dword [ebp - 0x34], 0x6d0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
add esi, eax
test edi, edi
je 0x4108ba
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0x58]
mov edx, dword [esi + 0xc]
mov ebx, dword [ebp - 0x48]
cmp edi, eax
sbb ebx, edx
jb 0x4109f4
mov ecx, dword [esi + 0x10]
xor ebx, ebx
add ecx, eax
mov eax, dword [ebp - 0x48]
adc ebx, edx
cmp edi, ecx
sbb eax, ebx
jae 0x4109f4
mov ebx, dword [ebp - 0x44]
test ebx, ebx
jne 0x4108d0
mov eax, dword [ebp - 0x6c]
cmp dword [esi + 0x688], eax
jne 0x4109f4
lea eax, [esi + 0x690]
mov dword [esp + 4], 0x43df44
mov dword [ebp - 0x64], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strstr]
test eax, eax
je 0x410a70
mov dword [esp], str.ELF_t
xor edi, edi
call dbg.dbg_printf
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
xor edx, edx
add eax, dword [ebp - 0x24]
call dbg.module_print_info
mov eax, dword [im.modules]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
test eax, eax
jne 0x410934
jmp 0x4109f0
add edi, 1
cmp dword [ebp - 0x2c], edi
jbe 0x4109f0
imul ebx, edi, 0x6d0
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0x43df44
lea esi, [eax + ebx]
lea eax, [esi + 0x690]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strstr]
test eax, eax
jne 0x410928
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x40], edx
mov edx, dword [esi + 8]
mov dword [ebp - 0x4c], ecx
cmp edx, dword [ebp - 0x40]
sbb ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x50], edx
jb 0x410928
mov eax, dword [eax + 0x10]
xor edx, edx
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], edx
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x10]
add eax, dword [ebp - 0x50]
adc edx, dword [ebp - 0x4c]
cmp dword [ebp - 0x40], eax
sbb ecx, edx
jb 0x410928
mov dword [esp], str.___PE_t
add edi, 1
call dbg.dbg_printf
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
mov edx, 1
add eax, ebx
call dbg.module_print_info
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [im.modules]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
ja 0x410934
lea esi, [esi]
add dword [ebp - 0x68], 1
add dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jb 0x410878
mov eax, dword [ebp - 0x68]
test eax, eax
sete bl
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x58]
or eax, dword [ebp - 0x48]
je 0x410783
test bl, bl
je 0x410783
mov edx, dword [0x4ad5f8]
mov eax, 8
test edx, edx
je 0x410a43
mov eax, dword [edx + 0x2c]
mov eax, dword [eax + 4]
add eax, eax
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x58]
mov dword [esp + 4], eax
mov dword [esp], str.0x_0I64x_is_not_a_valid_module_address_n
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
call dbg.dbg_printf
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
lea edi, [eax + 0x690]
test ecx, ecx
je 0x410afe
mov dword [ebp - 0x40], esi
mov esi, edx
mov dword [esp + 4], 0x43df44
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strstr]
test eax, eax
je 0x410b50
mov ecx, dword [ebp - 0x40]
mov eax, dword [edi - 0x688]
mov edx, dword [edi - 0x684]
mov ebx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
cmp ecx, eax
mov dword [ebp - 0x4c], ebx
sbb ebx, edx
mov dword [ebp - 0x50], ecx
jb 0x410b50
mov ecx, dword [edi - 0x680]
xor ebx, ebx
add eax, ecx
adc edx, ebx
mov ebx, dword [ebp - 0x40]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebp - 0x60]
xor edx, edx
mov eax, dword [ebx + 0x10]
mov ebx, dword [ebp - 0x5c]
add eax, dword [ebp - 0x50]
adc edx, dword [ebp - 0x4c]
cmp ecx, eax
mov ecx, ebx
sbb ecx, edx
jb 0x410b50
mov ecx, dword [ebp - 0x2c]
cmp esi, ecx
jb 0x4109f4
mov ebx, dword [ebp - 0x64]
mov dword [esp + 4], 0x43df57
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strstr]
test eax, eax
je 0x410b68
mov dword [esp], str.ELF_t
call dbg.dbg_printf
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x38]
xor edx, edx
add eax, dword [ebp - 0x24]
call dbg.module_print_info
mov eax, dword [im.modules]
add dword [ebp - 0x68], 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
jmp 0x4109f4
add esi, 1
add edi, 0x6d0
cmp esi, dword [ebp - 0x2c]
jne 0x410a87
jmp 0x410afe
mov dword [esp + 4], 0x3c
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strchr]
test eax, eax
jne 0x410b16
mov dword [esp], 0x43df5b
call dbg.dbg_printf
jmp 0x410b22
sub eax, ebx
mov dword [esp], str.___u_for_wow64_not_listed
mov dword [esp + 4], eax
call dbg.dbg_printf
jmp 0x410836
mov dword [ebp + 8], str.Cannot_get_info_on_module_while_no_process_is_loaded_n
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.dbg_printf
mov eax, dword [im.modules]
mov dword [esp], str.Module_tAddress_t_t_t_t_tMachine_tDebug_info_tName___d_modules__n
mov dword [esp + 4], eax
call dbg.dbg_printf
jmp 0x410842