Function at 0x4038a0
Capabilities:
Create process on windows
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x403b11
push 0x104
push 0x4082f0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403b11
push ebx
push esi
push edi
push 0x4082f0
call fcn.00403020
add esp, 4
mov word [0x4083f4], 0x422a
lea ecx, [ebp - 0x214]
mov byte [0x4083f6], 0x2a
push 1
push 0x40
push 0x21
push 0x4082f0
call fcn.004014f0
cmp dword [ebp - 0x1b8], 0
je 0x403b03
push 2
push 0
push 0
lea ecx, [ebp - 0x214]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x214]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
mov ebx, dword [eax + 8]
lea ecx, [ebp - 0x214]
add ebx, dword [eax]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [0x4082e8], ecx
test ecx, ecx
je 0x403af9
mov eax, ebx
cdq
push edx
push eax
push ecx
lea ecx, [ebp - 0x214]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
jne 0x403af3
lea ecx, [ebp - 0x214]
call fcn.00402160
mov ecx, dword [0x4082e8]
lea esi, [ebx - 2]
xor edx, edx
test esi, esi
jle 0x4039e0
nop word [eax + eax]
movzx eax, word [ecx]
mov edi, 0x4083f4
cmp ax, word [edi]
jne 0x4039da
movzx eax, byte [ecx + 2]
cmp al, byte [edi + 2]
je 0x403ad6
inc edx
inc ecx
cmp edx, esi
jl 0x4039c0
xor ecx, ecx
lea eax, [ebp - 0x15c]
mov dword [0x4082ec], ecx
push eax
push 0x4053bc
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403b03
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax + eax]
push dword [0x4082e8]
lea eax, [ebp - 0x130]
push eax
call fcn.00402190
add esp, 8
lea eax, [ebp - 0x15c]
push eax
push esi
call edi
test eax, eax
jne 0x403a10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [0x4082ec], 0
je 0x403b03
lea eax, [ebp - 0x1c]
push eax
call fcn.004023f0
add esp, 4
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0xf
lea ecx, [ebp - 0x2c4]
cmova eax, dword [ebp - 0x1c]
push 1
push 0x40
push 0x22
push eax
call fcn.00401600
mov eax, dword [ebp - 0x2c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, dword [ebp - 0x2c4]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0x2c8], ecx
cmp dword [ebp - 0x274], 0
je 0x403ade
sub ebx, dword [0x408810]
lea ecx, [ebp - 0x2c4]
mov eax, ebx
cdq
add eax, 3
adc edx, 0
push edx
push eax
push dword [0x4082ec]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
je 0x403b24
jmp 0x403ade
add ecx, 3
jmp 0x4039e2
lea ecx, [ebp - 0x2c4]
call fcn.00401c20
lea ecx, [ebp - 0x1c]
call fcn.00401a00
jmp 0x403b03
mov ecx, dword [0x4082e8]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
lea ecx, [ebp - 0x214]
call fcn.00401b60
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
call fcn.00403c70
mov esp, ebp
pop ebp
ret 0x10
push 5
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004020c0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00402a80
int3