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

Disassembly:
push 0x2ec
mov eax, 0x4610ed
call fcn.00460ae4
push 0x200
call fcn.00444252
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
pop ecx
push esi
push 0x100
call ebx
mov edi, eax
cmp edi, 0xff
jle 0x402edb
push esi
call fcn.0044425b
pop ecx
xor ecx, ecx
mov eax, edi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444252
pop ecx
mov esi, eax
push esi
push edi
call ebx
push 0x200
call fcn.00444252
mov edi, eax
mov dword [esp], 0x100
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov ebx, eax
cmp ebx, 0xff
jle 0x402f29
push edi
call fcn.0044425b
pop ecx
xor ecx, ecx
mov eax, ebx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444252
pop ecx
push ebx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x2a4]
call fcn.004028bb
and dword [ebp - 4], 0
push ecx
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00401fe3
push 0x10
pop ecx
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x2a4]
cmp dword [ebp - 0x290], ecx
push 4
cmovae ebx, dword [ebp - 0x2a4]
cmp byte [0x476bb9], 0
mov dword [ebp - 0x2a8], ebx
pop eax
jne 0x403045
and dword [ebp - 0x280], 0
xor esi, esi
push 2
pop edx
push 0x11
mov dword [ebp - 0x270], eax
pop eax
mov dword [ebp - 0x278], edx
lea edx, [ebp - 0x280]
mov dword [ebp - 0x27c], 1
mov dword [ebp - 0x274], 3
mov dword [ebp - 0x26c], 5
mov dword [ebp - 0x268], 6
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x260], 8
mov dword [ebp - 0x25c], 9
mov dword [ebp - 0x258], 0xa
mov dword [ebp - 0x254], 0xb
mov dword [ebp - 0x250], 0xc
mov dword [ebp - 0x24c], 0xd
mov dword [ebp - 0x248], 0xe
mov dword [ebp - 0x244], 0xf
mov dword [ebp - 0x240], ecx
test eax, eax
je 0x40303e
push 4
pop ebx
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx + 0x36]
xor byte [ecx + 0x476ba8], al
inc esi
cmp esi, 0x11
jne 0x403025
mov ebx, dword [ebp - 0x2a8]
mov byte [0x476bb9], 1
push ebx
push edi
lea eax, [ebp - 0x2bc]
push 0x476ba8
push eax
call fcn.004021ad
add esp, 0xc
lea ecx, [ebp - 0x2bc]
call fcn.00402205
push 0x10
push str.Fatal_Error
lea ecx, [ebp - 0x2bc]
call fcn.0040219e
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040211b
push 2
pop ecx
push ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x2f8]
push ecx
mov ecx, eax
call fcn.00402238
and dword [ebp - 0x2d4], 0
lea ecx, [ebp - 0x2e4]
call fcn.00401fbc
lea ecx, [ebp - 0x2f8]
call fcn.0040219e
mov ebx, 0x473158
mov dword [ebp - 0x2c0], 4
test eax, eax
mov ecx, ebx
cmovne ecx, eax
xor eax, eax
mov dword [ebp - 0x2d0], ecx
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], eax
mov word [ebp - 0x2c4], ax
mov byte [ebp - 0x2c2], al
push 0x473280
push ecx
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 5
call fcn.0040228b
pop ecx
push eax
call fcn.0044e564
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403147
push esi
push dword [0x476ddc]
mov ecx, 0x476dc8
push 1
call fcn.00401f99
push eax
call fcn.0044e7ca
push esi
call fcn.0044e898
add esp, 0x14
jmp 0x4034af
push 0x104
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
lea edi, [ebp - 0x2a4]
push 0x10
test eax, eax
je 0x403260
pop eax
cmp dword [ebp - 0x290], eax
cmovae edi, dword [ebp - 0x2a4]
cmp byte [0x476ba0], 0
jne 0x403255
and dword [ebp - 0x280], 0
lea edx, [ebp - 0x280]
push 2
pop ecx
xor esi, esi
mov dword [ebp - 0x27c], 1
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], 3
mov dword [ebp - 0x270], 4
mov dword [ebp - 0x26c], 5
mov dword [ebp - 0x268], 6
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x260], 8
mov dword [ebp - 0x25c], 9
mov dword [ebp - 0x258], 0xa
mov dword [ebp - 0x254], 0xb
mov dword [ebp - 0x250], 0xc
mov dword [ebp - 0x24c], 0xd
mov dword [ebp - 0x248], 0xe
mov dword [ebp - 0x244], 0xf
test eax, eax
je 0x40324e
push 0x10
pop ebx
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx + 0x36]
xor byte [ecx + 0x476b90], al
inc esi
cmp esi, ebx
jne 0x403236
mov ebx, 0x473158
mov byte [0x476ba0], 1
lea eax, [ebp - 0x118]
jmp 0x4033c6
pop ecx
cmp dword [ebp - 0x290], ecx
push 4
cmovae edi, dword [ebp - 0x2a4]
xor esi, esi
and dword [ebp - 0x230], 0
pop eax
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x28c], 0x39640d75
mov byte [ebp - 0x288], 0
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x224], 3
push 2
pop edx
mov dword [ebp - 0x228], edx
lea edx, [ebp - 0x230]
test eax, eax
je 0x4032de
push eax
pop ebx
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx + 0x36]
xor byte [ebp + ecx - 0x28c], al
inc esi
cmp esi, ebx
jne 0x4032c0
push 4
pop eax
push 0x10
mov ebx, 0x473158
pop ecx
cmp byte [0x476ba0], 0
mov byte [ebp - 0x288], 1
jne 0x4033c0
and dword [ebp - 0x280], 0
xor esi, esi
mov dword [ebp - 0x27c], 1
mov dword [ebp - 0x274], 3
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 5
mov dword [ebp - 0x268], 6
mov dword [ebp - 0x264], 7
mov dword [ebp - 0x260], 8
mov dword [ebp - 0x25c], 9
mov dword [ebp - 0x258], 0xa
mov dword [ebp - 0x254], 0xb
mov dword [ebp - 0x250], 0xc
mov dword [ebp - 0x24c], 0xd
mov dword [ebp - 0x248], 0xe
mov dword [ebp - 0x244], 0xf
push 2
pop edx
mov dword [ebp - 0x278], edx
lea edx, [ebp - 0x280]
test ecx, ecx
je 0x4033b9
push 4
pop ebx
push 0x10
pop edi
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx + 0x36]
xor byte [ecx + 0x476b90], al
inc esi
cmp esi, edi
jne 0x40339c
mov edi, dword [ebp - 0x2a8]
mov ebx, 0x473158
mov byte [0x476ba0], 1
lea eax, [ebp - 0x28c]
push edi
push eax
lea eax, [ebp - 0x2bc]
push 0x476b90
push eax
call fcn.004021ad
add esp, 0x10
lea eax, [ebp - 0x2bc]
lea ecx, [ebp - 0x234]
push eax
call fcn.0040211b
push ecx
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
call fcn.00402238
and dword [ebp - 0x224], 0
lea ecx, [ebp - 0x234]
call fcn.00401fbc
lea ecx, [ebp - 0x2e4]
call fcn.0040219e
test eax, eax
push 4
cmovne ebx, eax
mov dword [ebp - 0x234], ebx
xor ebx, ebx
pop eax
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x228], bx
mov byte [ebp - 0x226], bl
mov dword [ebp - 0x224], eax
push 0x473280
push ecx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 9
call fcn.0040228b
pop ecx
push eax
call fcn.0044e564
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4034b3
push esi
push dword [0x476ddc]
mov ecx, 0x476dc8
push 1
call fcn.00401f99
push eax
call fcn.0044e7ca
push esi
call fcn.0044e898
add esp, 0x14
lea ecx, [ebp - 0x234]
call fcn.0040231a
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x2d4], ebx
call fcn.00401fbc
mov bl, 1
jmp 0x4034cf
lea ecx, [ebp - 0x234]
call fcn.0040231a
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x2d4], ebx
call fcn.00401fbc
lea ecx, [ebp - 0x2d0]
call fcn.0040231a
xor esi, esi
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x2e8], esi
call fcn.00401fbc
lea ecx, [ebp - 0x2bc]
mov dword [ebp - 0x2ac], esi
call fcn.00401fbc
push esi
push 1
lea ecx, [ebp - 0x2a4]
call fcn.004085d4
mov al, bl
call fcn.00460a9f
ret