Function at 0x4034ad
Capabilities:
Contain obfuscated stackstrings
Query environment variable
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x79c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push edi
push str.Kernel32.dll
call esi
push str.GetModuleFileNameA
push eax
call fcn.00401781
pop ecx
mov edx, eax
pop ecx
xor ebx, ebx
push pe_nt_image_headers32
xor eax, eax
pop ecx
lea edi, [ebp - 0x287]
mov byte [ebp - 0x288], 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 - 0x183]
mov byte [ebp - 0x184], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x79b]
mov byte [ebp - 0x79c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push pe_nt_image_headers32
xor eax, eax
pop ecx
lea edi, [ebp - 0x38b]
mov byte [ebp - 0x38c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
lea eax, [ebp - 0x288]
push edi
push eax
push ebx
call edx
lea eax, [ebp - 0x38c]
push edi
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
xor ecx, ecx
push edi
cmp ecx, eax
lea ecx, [ebp - 0x38c]
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
push dword [ebp - 0x7c]
lea eax, [ebp - 0x184]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x184]
push 0x40605c
push eax
call sub.MSVCRT.dll_strcat
mov byte [ebp - 0x50], 0x74
mov byte [ebp - 0x4f], 0x65
mov byte [ebp - 0x4e], 0x6d
mov byte [ebp - 0x4d], 0x70
mov byte [ebp - 0x4c], 0x56
mov byte [ebp - 0x4b], 0x69
lea eax, [ebp - 0x50]
mov byte [ebp - 0x4a], 0x64
push eax
lea eax, [ebp - 0x184]
push eax
mov byte [ebp - 0x49], 0x69
mov byte [ebp - 0x48], 0x6f
mov byte [ebp - 0x47], 0x2e
mov byte [ebp - 0x46], 0x62
mov byte [ebp - 0x45], 0x61
mov byte [ebp - 0x44], 0x74
mov byte [ebp - 0x43], bl
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x78]
mov byte [ebp - 0x78], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x79c]
push eax
mov byte [ebp - 0x77], 0x65
mov byte [ebp - 0x76], 0x63
mov byte [ebp - 0x75], 0x68
mov byte [ebp - 0x74], 0x6f
mov byte [ebp - 0x73], 0x20
mov byte [ebp - 0x72], 0x20
mov byte [ebp - 0x71], 0x6f
mov byte [ebp - 0x70], 0x66
mov byte [ebp - 0x6f], 0x66
mov byte [ebp - 0x6e], 0xd
mov byte [ebp - 0x6d], 0xa
mov byte [ebp - 0x6c], 0x3a
mov byte [ebp - 0x6b], 0x74
mov byte [ebp - 0x6a], 0x72
mov byte [ebp - 0x69], 0x79
mov byte [ebp - 0x68], 0xd
mov byte [ebp - 0x67], 0xa
mov byte [ebp - 0x66], 0x64
mov byte [ebp - 0x65], 0x65
mov byte [ebp - 0x64], 0x6c
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x20
mov byte [ebp - 0x61], bl
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x79c]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x60]
mov byte [ebp - 0x60], 0xd
push eax
lea eax, [ebp - 0x79c]
push eax
mov byte [ebp - 0x5f], 0xa
mov byte [ebp - 0x5e], 0x69
mov byte [ebp - 0x5d], 0x66
mov byte [ebp - 0x5c], 0x20
mov byte [ebp - 0x5b], 0x20
mov byte [ebp - 0x5a], 0x20
mov byte [ebp - 0x59], 0x65
mov byte [ebp - 0x58], 0x78
mov byte [ebp - 0x57], 0x69
mov byte [ebp - 0x56], 0x73
mov byte [ebp - 0x55], 0x74
mov byte [ebp - 0x54], 0x20
mov byte [ebp - 0x53], 0x20
mov byte [ebp - 0x52], 0x20
mov byte [ebp - 0x51], bl
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x79c]
push eax
call sub.MSVCRT.dll_strcat
mov byte [ebp - 0x30], 0x20
mov byte [ebp - 0x2f], 0x20
mov byte [ebp - 0x2e], 0x67
mov byte [ebp - 0x2d], 0x6f
mov byte [ebp - 0x2c], 0x74
mov byte [ebp - 0x2b], 0x6f
mov byte [ebp - 0x2a], 0x20
mov byte [ebp - 0x29], 0x20
lea eax, [ebp - 0x30]
mov byte [ebp - 0x28], 0x74
push eax
lea eax, [ebp - 0x79c]
push eax
mov byte [ebp - 0x27], 0x72
mov byte [ebp - 0x26], 0x79
mov byte [ebp - 0x25], 0xd
mov byte [ebp - 0x24], 0xa
mov byte [ebp - 0x23], bl
call sub.MSVCRT.dll_strcat
add esp, 0x40
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xd
mov byte [ebp - 3], 0xa
push eax
lea eax, [ebp - 0x79c]
push eax
mov byte [ebp - 2], bl
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x79c]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0x64
push eax
lea eax, [ebp - 0x79c]
push eax
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x6c
mov byte [ebp - 0x11], 0x20
mov byte [ebp - 0x10], 0x20
mov byte [ebp - 0xf], bl
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x79c]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x20
push str.CreateFileA
push str.Kernel32.dll
call esi
push eax
call fcn.00401781
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push 3
lea ecx, [ebp - 0x184]
push 0xc0000000
push ecx
call eax
mov edi, eax
lea eax, [ebp - 0x80]
push ebx
push eax
lea eax, [ebp - 0x79c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x79c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 0xb], 0x70
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x6e
mov byte [ebp - 8], bl
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0x68
mov byte [ebp - 0x1e], 0x65
lea eax, [ebp - 0x20]
mov byte [ebp - 0x1d], 0x6c
push eax
mov byte [ebp - 0x1c], 0x6c
mov byte [ebp - 0x1b], 0x33
mov byte [ebp - 0x1a], 0x32
mov byte [ebp - 0x19], 0x2e
mov byte [ebp - 0x18], 0x64
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], bl
call esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], 0x53
push ecx
push eax
mov byte [ebp - 0x3f], 0x68
mov byte [ebp - 0x3e], 0x65
mov byte [ebp - 0x3d], 0x6c
mov byte [ebp - 0x3c], 0x6c
mov byte [ebp - 0x3b], 0x45
mov byte [ebp - 0x3a], 0x78
mov byte [ebp - 0x39], 0x65
mov byte [ebp - 0x38], 0x63
mov byte [ebp - 0x37], 0x75
mov byte [ebp - 0x36], 0x74
mov byte [ebp - 0x35], 0x65
mov byte [ebp - 0x34], 0x41
mov byte [ebp - 0x33], bl
call fcn.00401781
pop ecx
pop ecx
push ebx
push ebx
lea ecx, [ebp - 0x184]
push ebx
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
call eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]