Function at 0x402f84
Capabilities:
Encode data using xor
Get common file path
Write file on windows

Disassembly:
push 0x2dc
mov eax, 0x4647ff
call fcn.00464204
push 0x200
call fcn.00446888
pop ecx
mov edi, eax
push edi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
push 2
pop esi
cmp ebx, 0xff
jle 0x402fde
push edi
call fcn.00446891
pop ecx
xor ecx, ecx
mov eax, ebx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00446888
pop ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x200
call fcn.00446888
mov ebx, eax
mov dword [esp], 0x100
push ebx
push edi
mov dword [ebp - 0x2a8], ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp - 0x2ac], eax
cmp eax, 0xff
jle 0x403041
push ebx
call fcn.00446891
mov eax, dword [ebp - 0x2ac]
pop ecx
xor ecx, ecx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00446888
pop ecx
push dword [ebp - 0x2ac]
mov ebx, eax
push ebx
push edi
mov dword [ebp - 0x2a8], ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x2a4]
call fcn.004028fa
and dword [ebp - 4], 0
lea eax, [ebp - 0x2a4]
push 0x10
pop edx
cmp dword [ebp - 0x290], edx
push 4
cmovae eax, dword [ebp - 0x2a4]
cmp byte [0x479a39], 0
mov dword [ebp - 0x2ac], eax
pop ecx
jne 0x40314f
and dword [ebp - 0x26c], 0
xor edi, edi
push 0x11
mov dword [ebp - 0x25c], ecx
pop ecx
mov dword [ebp - 0x22c], edx
lea edx, [ebp - 0x26c]
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 3
mov dword [ebp - 0x258], 5
mov dword [ebp - 0x254], 6
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x24c], 8
mov dword [ebp - 0x248], 9
mov dword [ebp - 0x244], 0xa
mov dword [ebp - 0x240], 0xb
mov dword [ebp - 0x23c], 0xc
mov dword [ebp - 0x238], 0xd
mov dword [ebp - 0x234], 0xe
mov dword [ebp - 0x230], 0xf
test ecx, ecx
je 0x403148
push 4
pop ebx
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx - 0x65]
xor byte [ecx + 0x479a28], al
inc edi
cmp edi, 0x11
jne 0x403129
mov ebx, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x2ac]
mov byte [0x479a39], 1
push eax
push ebx
push 0x479a28
mov edi, 0x47ae54
push edi
call fcn.00402214
add esp, 0xc
mov ecx, edi
call fcn.0040226c
push edi
lea ecx, [ebp - 0x2c0]
call fcn.00402182
push ecx
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.0040229f
xor ebx, ebx
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
call fcn.00402023
lea ecx, [ebp - 0x2d4]
call fcn.00402205
push ecx
push eax
lea ecx, [ebp - 0x2e8]
call fcn.004023d3
push 0x4762f0
push ecx
mov byte [ebp - 4], 4
call fcn.004022f2
pop ecx
push eax
call fcn.00450b13
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4031fd
push edi
push dword [0x479f64]
mov ecx, 0x479f50
push 1
call fcn.00402000
push eax
call fcn.00450d79
push edi
call fcn.00450e47
xor esi, esi
add esp, 0x14
inc esi
jmp 0x403546
push 0x104
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
lea ebx, [ebp - 0x2a4]
push 0x10
test eax, eax
je 0x40330c
pop eax
cmp dword [ebp - 0x290], eax
cmovae ebx, dword [ebp - 0x2a4]
cmp byte [0x479a20], 0
jne 0x403301
and dword [ebp - 0x26c], 0
lea edx, [ebp - 0x26c]
xor edi, edi
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 3
mov dword [ebp - 0x25c], 4
mov dword [ebp - 0x258], 5
mov dword [ebp - 0x254], 6
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x24c], 8
mov dword [ebp - 0x248], 9
mov dword [ebp - 0x244], 0xa
mov dword [ebp - 0x240], 0xb
mov dword [ebp - 0x23c], 0xc
mov dword [ebp - 0x238], 0xd
mov dword [ebp - 0x234], 0xe
mov dword [ebp - 0x230], 0xf
test eax, eax
je 0x4032fa
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx - 0x65]
xor byte [ecx + 0x479a10], al
inc edi
cmp edi, 0x10
jne 0x4032e6
mov byte [0x479a20], 1
lea eax, [ebp - 0x11c]
jmp 0x40346b
pop ecx
cmp dword [ebp - 0x290], ecx
lea edx, [ebp - 0x27c]
push 4
cmovae ebx, dword [ebp - 0x2a4]
xor edi, edi
and dword [ebp - 0x27c], 0
pop eax
mov dword [ebp - 0x2a8], ebx
mov dword [ebp - 0x28c], 0x9ec1a6d8
mov byte [ebp - 0x288], 0
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x278], 1
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], 3
test eax, eax
je 0x403388
push eax
pop ebx
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx - 0x65]
xor byte [ebp + ecx - 0x28c], al
inc edi
cmp edi, ebx
jne 0x403369
mov ebx, dword [ebp - 0x2a8]
push 4
pop eax
push 0x10
pop ecx
cmp byte [0x479a20], 0
mov byte [ebp - 0x288], 1
jne 0x403465
and dword [ebp - 0x26c], 0
lea edx, [ebp - 0x26c]
xor edi, edi
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 3
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], 5
mov dword [ebp - 0x254], 6
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x24c], 8
mov dword [ebp - 0x248], 9
mov dword [ebp - 0x244], 0xa
mov dword [ebp - 0x240], 0xb
mov dword [ebp - 0x23c], 0xc
mov dword [ebp - 0x238], 0xd
mov dword [ebp - 0x234], 0xe
mov dword [ebp - 0x230], 0xf
test ecx, ecx
je 0x40345e
push 4
pop ebx
push 0x10
pop esi
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx - 0x65]
xor byte [ecx + 0x479a10], al
inc edi
cmp edi, esi
jne 0x403443
mov ebx, dword [ebp - 0x2a8]
push 2
pop esi
mov byte [0x479a20], 1
lea eax, [ebp - 0x28c]
push ebx
push eax
push 0x479a10
mov edi, 0x47c188
push edi
call fcn.00402214
add esp, 0x10
lea ecx, [ebp - 0x280]
push edi
call fcn.00402182
push ecx
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.0040229f
xor ebx, ebx
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], ebx
call fcn.00402023
lea ecx, [ebp - 0x2c0]
call fcn.00402205
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.004023d3
push 0x4762f0
push ecx
mov byte [ebp - 4], 8
call fcn.004022f2
pop ecx
push eax
call fcn.00450b13
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403528
push edi
push dword [0x479f64]
mov ecx, 0x479f50
push 1
call fcn.00402000
push eax
call fcn.00450d79
push edi
call fcn.00450e47
add esp, 0x14
lea ecx, [ebp - 0x280]
call fcn.00402381
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
call fcn.00402023
jmp 0x403546
lea ecx, [ebp - 0x280]
call fcn.00402381
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
call fcn.00402023
mov esi, ebx
lea ecx, [ebp - 0x2e8]
call fcn.00402381
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2c4], ebx
call fcn.00402023
push ebx
push 1
lea ecx, [ebp - 0x2a4]
call fcn.0040ac01
mov eax, esi
call fcn.004641bf
ret