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

Disassembly:
push 0x2cc
mov eax, 0x4206f6
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 0x403136
push edi
call fcn.0040b1e1
xor ecx, ecx
mov eax, ebx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b1d8
pop ecx
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 - 0x298], ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov dword [ebp - 0x29c], eax
cmp eax, 0xff
jle 0x403199
push ebx
call fcn.0040b1e1
mov eax, dword [ebp - 0x29c]
xor ecx, ecx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b1d8
pop ecx
pop ecx
push dword [ebp - 0x29c]
mov ebx, eax
push ebx
push edi
mov dword [ebp - 0x298], ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x294]
call fcn.00402b38
and dword [ebp - 4], 0
lea eax, [ebp - 0x294]
push 0x10
pop edx
cmp dword [ebp - 0x280], edx
push 4
cmovae eax, dword [ebp - 0x294]
cmp byte [0x429949], 0
mov dword [ebp - 0x29c], eax
pop ecx
jne 0x4032a7
and dword [ebp - 0x25c], 0
xor edi, edi
push 0x11
mov dword [ebp - 0x24c], ecx
pop ecx
mov dword [ebp - 0x21c], edx
lea edx, [ebp - 0x25c]
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x250], 3
mov dword [ebp - 0x248], 5
mov dword [ebp - 0x244], 6
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x23c], 8
mov dword [ebp - 0x238], 9
mov dword [ebp - 0x234], 0xa
mov dword [ebp - 0x230], 0xb
mov dword [ebp - 0x22c], 0xc
mov dword [ebp - 0x228], 0xd
mov dword [ebp - 0x224], 0xe
mov dword [ebp - 0x220], 0xf
test ecx, ecx
je 0x4032a0
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 0x403281
mov ebx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x29c]
mov byte [0x429949], 1
push eax
push ebx
push 0x429938
mov edi, 0x42be40
push edi
call fcn.0040243b
add esp, 0xc
mov ecx, edi
call fcn.00402492
push edi
lea ecx, [ebp - 0x2b0]
call fcn.004023a9
push ecx
lea ecx, [ebp - 0x2c4]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004024c5
xor ebx, ebx
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2a0], ebx
call fcn.0040224a
lea ecx, [ebp - 0x2c4]
call fcn.0040242c
push ecx
push eax
lea ecx, [ebp - 0x2d8]
call fcn.004025f9
push 0x4271e8
mov byte [ebp - 4], 4
call fcn.00402518
push eax
call fcn.00411705
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x403353
push edi
push dword [0x429e64]
mov ecx, 0x429e50
push 1
call fcn.00402227
push eax
call fcn.00411954
push edi
call fcn.00411a22
xor esi, esi
add esp, 0x14
inc esi
jmp 0x40369a
push 0x104
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
lea ebx, [ebp - 0x294]
push 0x10
test eax, eax
je 0x403462
pop eax
cmp dword [ebp - 0x280], eax
cmovae ebx, dword [ebp - 0x294]
cmp byte [0x429930], 0
jne 0x403457
and dword [ebp - 0x258], 0
lea edx, [ebp - 0x258]
xor edi, edi
mov dword [ebp - 0x254], 1
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], 3
mov dword [ebp - 0x248], 4
mov dword [ebp - 0x244], 5
mov dword [ebp - 0x240], 6
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x238], 8
mov dword [ebp - 0x234], 9
mov dword [ebp - 0x230], 0xa
mov dword [ebp - 0x22c], 0xb
mov dword [ebp - 0x228], 0xc
mov dword [ebp - 0x224], 0xd
mov dword [ebp - 0x220], 0xe
mov dword [ebp - 0x21c], 0xf
test eax, eax
je 0x403450
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx + 0x38]
xor byte [ecx + 0x429920], al
inc edi
cmp edi, 0x10
jne 0x40343c
mov byte [0x429930], 1
lea eax, [ebp - 0x114]
jmp 0x4035c1
pop ecx
cmp dword [ebp - 0x280], ecx
lea edx, [ebp - 0x26c]
push 4
cmovae ebx, dword [ebp - 0x294]
xor edi, edi
and dword [ebp - 0x26c], 0
pop eax
mov dword [ebp - 0x298], ebx
mov dword [ebp - 0x27c], 0x3b66037b
mov byte [ebp - 0x278], 0
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], 3
test eax, eax
je 0x4034de
push eax
pop ebx
mov ecx, dword [edx]
add edx, ebx
lea eax, [ecx + 0x38]
xor byte [ebp + ecx - 0x27c], al
inc edi
cmp edi, ebx
jne 0x4034bf
mov ebx, dword [ebp - 0x298]
push 4
pop eax
push 0x10
pop ecx
cmp byte [0x429930], 0
mov byte [ebp - 0x278], 1
jne 0x4035bb
and dword [ebp - 0x258], 0
lea edx, [ebp - 0x258]
xor edi, edi
mov dword [ebp - 0x254], 1
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], 3
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x244], 5
mov dword [ebp - 0x240], 6
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x238], 8
mov dword [ebp - 0x234], 9
mov dword [ebp - 0x230], 0xa
mov dword [ebp - 0x22c], 0xb
mov dword [ebp - 0x228], 0xc
mov dword [ebp - 0x224], 0xd
mov dword [ebp - 0x220], 0xe
mov dword [ebp - 0x21c], 0xf
test ecx, ecx
je 0x4035b4
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 0x403599
mov ebx, dword [ebp - 0x298]
push 2
pop esi
mov byte [0x429930], 1
lea eax, [ebp - 0x27c]
push ebx
push eax
push 0x429920
mov edi, 0x42be54
push edi
call fcn.0040243b
add esp, 0x10
lea ecx, [ebp - 0x270]
push edi
call fcn.004023a9
push ecx
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.004024c5
xor ebx, ebx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x260], ebx
call fcn.0040224a
lea ecx, [ebp - 0x2b0]
call fcn.0040242c
push ecx
push eax
lea ecx, [ebp - 0x270]
call fcn.004025f9
push 0x4271e8
mov byte [ebp - 4], 8
call fcn.00402518
push eax
call fcn.00411705
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40367c
push edi
push dword [0x429e64]
mov ecx, 0x429e50
push 1
call fcn.00402227
push eax
call fcn.00411954
push edi
call fcn.00411a22
add esp, 0x14
lea ecx, [ebp - 0x270]
call fcn.004025a7
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2a0], ebx
call fcn.0040224a
jmp 0x40369a
lea ecx, [ebp - 0x270]
call fcn.004025a7
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x2a0], ebx
call fcn.0040224a
mov esi, ebx
lea ecx, [ebp - 0x2d8]
call fcn.004025a7
lea ecx, [ebp - 0x2c4]
mov dword [ebp - 0x2b4], ebx
call fcn.0040224a
push ebx
push 1
lea ecx, [ebp - 0x294]
call fcn.0040a761
mov eax, esi
call fcn.0041fa75
ret