Function at 0x4015b0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x30c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0xf8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call ebx
test eax, eax
jne 0x405917
lea eax, [esp + 0xf8]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
mov esi, eax
call ebx
test eax, eax
jne 0x405917
test esi, esi
je 0x40162f
mov byte [esi + 1], al
push str.fl4g_f0r_y0u.txt
lea eax, [esp + 0xfc]
push eax
push str._s_s
lea eax, [esp + 0x714]
push 0x104
push eax
call fcn.00401360
add esp, 0x14
lea eax, [esp + 0x708]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call ebx
test eax, eax
jne 0x405917
cmp esi, 0xffffffff
je 0x4058a1
push eax
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov esi, 0x10
and eax, 0xf
sub esi, eax
call ebx
test eax, eax
jne 0x405917
xor edi, edi
test esi, esi
je 0x4016e9
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x308]
push esi
add eax, ecx
mov edi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 0x10], eax
cmp eax, 0x400
jae 0x40591f
lea edx, [esp + 0xd8]
mov byte [esp + eax + 0x308], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0xd8], 0xa9a51f0d
mov dword [esp + 0xdc], 0x80cf669f
mov dword [esp + 0xe0], 0x63e7175c
mov dword [esp + 0xe4], 0xbdcd557a
mov dword [esp + 0xe8], 0xe696f133
mov dword [esp + 0xec], 0x4fcc2511
mov dword [esp + 0xf0], 0xc21903ba
mov dword [esp + 0xf4], 0xd3fe4530
call section..text
call ebx
test eax, eax
jne 0x405917
mov edx, dword [esp + 0x10]
mov esi, edx
shr esi, 4
test esi, esi
je 0x4017a7
lea edi, [esp + 0x308]
nop dword [eax]
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.00401140
add edi, 0x10
sub esi, 1
jne 0x401790
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0xd8], 0x3d5f678c
mov dword [esp + 0xdc], 0x31ef3ef1
mov dword [esp + 0xe0], 0xd752def0
mov dword [esp + 0xe4], 0x944dacc8
mov dword [esp + 0xe8], 0xe0b79816
mov dword [esp + 0xec], 0xd2ae632
mov dword [esp + 0xf0], 0x9bcc5374
mov dword [esp + 0xf4], 0x3a8a5b06
test edx, edx
je 0x401826
mov eax, ecx
and eax, 0x8000001f
jns 0x401813
dec eax
or eax, 0xffffffe0
inc eax
mov al, byte [esp + eax + 0xd8]
xor byte [esp + ecx + 0x308], al
inc ecx
cmp ecx, edx
jb 0x401805
call ebx
test eax, eax
jne 0x405917
call ebx
test eax, eax
jne 0x405917
call ebx
test eax, eax
jne 0x405917
lea eax, [esp + 0x308]
mov ebx, 0x1c
xor ecx, ecx
xor edx, edx
add edx, 4
mov dword [ecx], ecx
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00405925
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00405a55
int3