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

Disassembly:
push 0x2dc
mov eax, 0x42076b
call fcn.0041faba
push 0x200
call fcn.0040b1d8
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 0x403726
push edi
call fcn.0040b1e1
pop ecx
xor ecx, ecx
mov eax, ebx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b1d8
pop ecx
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x200
call fcn.0040b1d8
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 0x403789
push ebx
call fcn.0040b1e1
mov eax, dword [ebp - 0x2ac]
pop ecx
xor ecx, ecx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b1d8
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.00402b38
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 [0x429949], 0
mov dword [ebp - 0x2ac], eax
pop ecx
jne 0x403897
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 0x403890
push 4
pop ebx
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx + 0x38]
xor byte [ecx + 0x429938], al
inc edi
cmp edi, 0x11
jne 0x403871
mov ebx, dword [ebp - 0x2a8]
mov eax, dword [ebp - 0x2ac]
mov byte [0x429949], 1
push eax
push ebx
push 0x429938
mov edi, 0x42be68
push edi
call fcn.0040243b
add esp, 0xc
mov ecx, edi
call fcn.00402492
push edi
lea ecx, [ebp - 0x2c0]
call fcn.004023a9
push ecx
lea ecx, [ebp - 0x2d4]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004024c5
xor ebx, ebx
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
call fcn.0040224a
lea ecx, [ebp - 0x2d4]
call fcn.0040242c
push ecx
push eax
lea ecx, [ebp - 0x2e8]
call fcn.004025f9
push 0x4271e8
push ecx
mov byte [ebp - 4], 4
call fcn.00402518
pop ecx
push eax
call fcn.00411705
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403945
push edi
push dword [0x429e8c]
mov ecx, 0x429e78
push 1
call fcn.00402227
push eax
call fcn.00411954
push edi
call fcn.00411a22
xor esi, esi
add esp, 0x14
inc esi
jmp 0x403c8e
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 0x403a54
pop eax
cmp dword [ebp - 0x290], eax
cmovae ebx, dword [ebp - 0x2a4]
cmp byte [0x429930], 0
jne 0x403a49
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 0x403a42
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx + 0x38]
xor byte [ecx + 0x429920], al
inc edi
cmp edi, 0x10
jne 0x403a2e
mov byte [0x429930], 1
lea eax, [ebp - 0x11c]
jmp 0x403bb3
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], 0x3b66037b
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 0x403ad0
push eax
pop ebx
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx + 0x38]
xor byte [ebp + ecx - 0x28c], al
inc edi
cmp edi, ebx
jne 0x403ab1
mov ebx, dword [ebp - 0x2a8]
push 4
pop eax
push 0x10
pop ecx
cmp byte [0x429930], 0
mov byte [ebp - 0x288], 1
jne 0x403bad
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 0x403ba6
push 4
pop ebx
push 0x10
pop esi
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx + 0x38]
xor byte [ecx + 0x429920], al
inc edi
cmp edi, esi
jne 0x403b8b
mov ebx, dword [ebp - 0x2a8]
push 2
pop esi
mov byte [0x429930], 1
lea eax, [ebp - 0x28c]
push ebx
push eax
push 0x429920
mov edi, 0x42be7c
push edi
call fcn.0040243b
add esp, 0x10
lea ecx, [ebp - 0x280]
push edi
call fcn.004023a9
push ecx
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.004024c5
xor ebx, ebx
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], ebx
call fcn.0040224a
lea ecx, [ebp - 0x2c0]
call fcn.0040242c
push ecx
push eax
lea ecx, [ebp - 0x280]
call fcn.004025f9
push 0x4271e8
push ecx
mov byte [ebp - 4], 8
call fcn.00402518
pop ecx
push eax
call fcn.00411705
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403c70
push edi
push dword [0x429e8c]
mov ecx, 0x429e78
push 1
call fcn.00402227
push eax
call fcn.00411954
push edi
call fcn.00411a22
add esp, 0x14
lea ecx, [ebp - 0x280]
call fcn.004025a7
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
call fcn.0040224a
jmp 0x403c8e
lea ecx, [ebp - 0x280]
call fcn.004025a7
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
call fcn.0040224a
mov esi, ebx
lea ecx, [ebp - 0x2e8]
call fcn.004025a7
lea ecx, [ebp - 0x2d4]
mov dword [ebp - 0x2c4], ebx
call fcn.0040224a
push ebx
push 1
lea ecx, [ebp - 0x2a4]
call fcn.0040a761
mov eax, esi
call fcn.0041fa75
ret